Translation errors occurred during execution of .Net translator

  • KM03718035
  • 28-Sep-2020
  • 30-Sep-2020


I am getting translation errors for a couple of the projects in our solution because the path to the translation file is too long. How can we fix this?


The translation errors occurred during execution of the .Net translator: It generated an unexpected exception while writing NST file C:\\Users\\<service account>\\AppData\\Local\\Fortify\\sca19.1\\build\\MySup\\scratch\\models\\model-Drive_MySupervisor_Plugins_APFs_ViewModels_CustomerEvaluationViewModel_CustomerEvaluationStringReplacementNeededHandler_CustomerEvaluationStringReplacementNeededHandler.cs.nst: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.


In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character.