Skip to main content
Kofax

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

  1. Locate and open itp.cfg in ..\CCM\Work\<version>\Instance_<instance number>\Core\Config\itp.cfg
  2. Change ITPSANDBOX=Y to ITPSANDBOX=N and save and close the file.
  3. Restart all CCM Core services. Open CCM Core Administrator.
  4. 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.