Search

June 1, 2026

IgnoreDuplicateScriptDefinitions

The IgnoreDuplicateScriptDefinitions command prevents errors from being thrown when the same script template is included more than once during document assembly. When set to Yes, XpressDox will silently ignore any duplicate script definitions it encounters and continue assembling the document without error.

«IgnoreDuplicateScriptDefinitions(Yes)»

This command is useful for systems that already contain duplicate script definitions and allows those systems to continue running without errors. A typical scenario is where two or more templates were each built independently, with their own scripts defined, and worked perfectly in isolation. Later, when those templates are connected into a single system, for example via IncludeTemplate or IncludeCodeTemplate, some of the same scripts end up defined more than once within a single assembly. Without IgnoreDuplicateScriptDefinitions, this would cause an error and the template will fail to assemble. Adding the command to the script template itself is the recommended approach, ensuring it travels with the script wherever it is included.