Salesforce

SDL Language Cloud: Error when segmenting IDML file: "The document cannot be processed since it contains unexpected contents."

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentSDL Language Cloud Translation Management
SDL Trados Live Essentials
SDL Trados Live Team
Symptoms/Context
When creating a new project with an IDML source file, an error task is created. Upon inspection, the error task shows the following:
 
File processing error:
The document cannot be processed since it contains unexpected contents.
An error occurred while converting from source to BCM
An error occurred during the ConvertToJson Operation
Resolution

Workaround: Remove all Capitalization attributes

  1. Open a new File Explorer window, and navigate to the folder containing the IDML file.
     
  2. Click the View menu, and make sure there is a tick next to File name extensions. If there is not then tick the box.
     
  3. Click on the IDML file to select it, and then press F2 on the keyboard to rename it. Add .zip to the end of the filename e.g. myfile.idml becomes myfile.idml.zip and click Yes when asked if you are sure you want to change the filename extension.
     
  4. Right-click the renamed file and choose Extract All... followed by Extract.
     
  5. Open the newly extracted folder if it does not open automatically, and then navigate to the Stories subfolder.
     
  6. Open the first file in the folder in a text editor such as Notepad++.
     
  7. Search for the Capitalization attribute e.g. Capitalization="AllCaps" and remove it. Repeat this step until you have removed all Capitalization attributes from the file.
     
  8. Save the file.
     
  9. Repeat steps 6 to 8 for each file in the folder.
     
  10. Navigate one level back in File Explorer so you can see the contents of the folder created in step 4 e.g.

    Folder Contents
     
  11. Press CTRL and on the keyboard simultaneously to select all files.
     
  12. Right-click one of the selected files and choose Send to -> Compressed (zipped) folder.
     
  13. Rename the newly created ZIP file giving it a meaningful name, and replacing the .zip extension with .idml (e.g. XML.zip becomes myfile_fixed.idml). When asked to confirm if you want to change the filename extension, choose Yes.
     
  14. Attempt to create a new project using the fixed IDML file.
Root Cause
One or more CharacterStyleRange elements contain a Capitalization attribute which is not understood by the word count algorithm. A defect has been logged, and a fix is expected soon.
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by