Salesforce

WorldServer - Error 'Could not find a part of the path' when importing a Return package, saving a file in Browser Workbench after an import or at the next Save step. The path indicated in the error points to a local computer directory

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentWorldServer
Symptoms/Context
The error happens during the import of a return package. The Task History already reveals that the import failed (although it does not mention the exact error):

10/1/21 4:38 PM              Translator Name              Failed asset import        User username failed to import asset(s): c20d33e5-7755-4b80-a77c-a2666ee8ba00_xml.zip

If the translator ignores the error and completes the Translate task anyway, once the Task reaches the Save or Save target (or if you open the Task in Browser Workbench and do a Save there), the Task fails with this error:
 
Completed Save Target step of task 1 in time [00:00:00] on engine [ecl-us1-ws011:clone#569550723:engine#6] with result Error. 
Execution output: Error while executing automatic action: com.idiominc.wssdk.WSRuntimeException com.idiominc.ws.WSRuntimeException 
(covers com.idiominc.ws.ais.AISException (covers com.idiominc.wssdk.asset.WSAssetSegmentationException: (File Writing): 
Could not find a part of the path 'C:\ProgramData\SDL\SDLServer1\FPS\58b9d766\0xowx2e2.52b.xml'. 

Note that the path indicated in the error will vary, but it will always point to a local computer path and NOT to the WorldServer server DependencyFile path or Temp folder.
Resolution
Troubleshooting steps to fix the issue by fixing the sdlxliff file to be imported/uploaded to WorldServer:

1- Export the Task in Autoerror to a new WSXZ package or use the sdlxliff file from the Return package that might have been provided by the translator. If you export the Task to a WSXZ package, after the export, extract the package and open the SDLXLIFF file with Notepad ++ or any XML editor.

2- Once opened in Notepad or another editor, search for the path mentioned in the error. You will find it here:

o-path="C:\ProgramData\SDL\SDLServer1\FPS\58b9d766\0xowx2e2.52b.xml"

3- Remove the path from the o-path element, like this:

o-path=""

and save your change in the SDLXLIFF file.

4- Go back to the Task in Autoerror in WorldServer and download the source file (in this example, an xml file).

5- Start Trados Studio and open the SDLXLIFF file that you have modified in step #3 as a single file (File > Translate Single Document). When opening the file in Studio, you will be prompted with a Dependency file not found alert asking you for some an xml file from a Temp directory with a temp file name:



6- Click Yes and browse to the location where you have stored the source XML file downloaded from WorldServer. Studio will want you to find an xml file with exactly that name. Ignore that, set the search to generic *xml and select the source xml file and click Open:

User-added image

7- Trados Studio will prompt you with this question. Click Yes:



8- Now your SDLXLIFF file is opened in Studio. Go to File/Save as… to save it to a location of your choice (or simply click Save to override the previous version before you opened it and applied the steps above).

9- Go to the location where you have saved your fixed sdlxliff file, zip it and rename the zip file to *.wsxz. You have created a Return package that will be recognized by WorldServer. However, WorldServer will also recognize and import the zip file containing the SDLXLIFF file.

10- Now upload the Return package to WorldServer. The upload/import will be successful. There will be no errors during upload/import.

11- Complete the Autoerror. The Task will be saved correctly and will move to the next step.

 
Root Cause
The error has been introduced by the content of the SDLXLIFF file. The relevant information in this example is the path included in the error

'C:\ProgramData\SDL\SDLServer1\FPS\58b9d766\0xowx2e2.52b.xml'
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by