FATAL ERROR SEC1001: Template contains code that cannot be used in a sandboxed environment
Symptoms
When you compose a document, you receive the following error:
- FATAL ERROR SEC1001: Template contains code that cannot be used in a sandboxed environment
Cause
By default, Kofax CCM runs document (pack) templates in a sandboxed environment. The sandbox prohibits any statements and functions that could interface with the server, such as WRITE, or the environment, such as session_parameter.
Any master template that contains prohibited statements is blocked before it is started with the above error message.
Resolution
To disable this setting add the setting ITPSANDBOX=N to the ITP.CFG file
- Locate and open itp.cfg in ..\CCM\Work\<version>\Instance_<instance number>\Core\Config\itp.cfg
- Change ITPSANDBOX=Y to ITPSANDBOX=N and save and close the file.
- Restart all CCM Core services. Open CCM Core Administrator.
- Go to menu File -> Restart CCM Core, to restart all CCM Core services.
More information
For more information, please refer to "Chapter 10: Document Composition" of the Core Developer's Guide.