Picture of Import Error: Exception during deserialization

Import Error: Exception during deserialization

Import Error: Exception during deserialization

When importing a .mex file into your product, you may encounter an error during deserialization that highlights a problem in the XML content (for example, 'There is an error in XML document (55, 72)'). This issue typically indicates that the file import process has identified malformed XML or parsing problems.

Several factors can contribute to this error, including incorrect bleed settings during export, the presence of special characters in resource file names, or compatibility issues with font or other resources. The error message referencing a specific line and position helps pinpoint the source of the issue.

This guide outlines key troubleshooting steps and settings adjustments to resolve these errors, ensuring a smooth import process and preventing future file import issues.

Use cases

  • An error is thrown during the upload of a .mex file due to malformed XML content.
  • Bleed values are set incorrectly in design software, leading to export issues.
  • Resource files with special characters in their names cause parsing errors during import.

Key settings in Infigo

  • Bleed Value: Located in the Export Settings of your design software (e.g., InDesign). Set to a minimal value such as 0.01px to prevent export anomalies.
  • Resource File Naming: Ensure all resource files use standard alphanumeric characters without special symbols.
  • Export Package Consistency: Verify that the package contains all necessary files in compatible formats and without any corrupted components.

Step-by-step guide

  1. Extract the contents of the .mex file by renaming it from .mex to .zip and open the template.xml file, paying particular attention to the indicated error line.
  2. This will indicate the problem that needs addressing. e.g, some cliparts might be corrupt and need replacing before rexporting.
  3. Alternatively, In InDesign, adjust the bleed value to 0.01px before re-exporting the package.
  4. Examine resource file names for any special characters or non-standard formatting. Rename files if necessary to use only standard characters.
  5. Re-export the design package to generate a new .mex file with the corrected settings.

Related links

For additional guidance, head over to the Infigo Academy or contact our Customer Support team.





Alternate Search Terms
mex file XML error troubleshooting, deserialization error fix, malformed XML import fix, error in XML document line, special characters file import issue, bleed value setting error, export package inconsistency, mex import troubleshooting guide, XML parsing error fix, resource naming issue
Incomplete