Export Connector fails when trying to add it
Issue
If you try to add a custom Export Script to your document class an exception occurs and the following lines are logged:
2022-06-22 10:25:14, 0x00000018, 0, 0x00000000, 0x00000001, 0x00000000, C:\Program Files (x86)\Kofax\CaptureSS\ServLib\Bin, Admin, HOSTNAME:Sess 4, 11.1.0.1.0.569, ReleaseScriptController.cpp, 1640, Error running export connector "Custom Text Export" for batch class "Batch_Class_Name" and document class "Document_Class_Name", Return Value: -1 , === begin CallStack output ===77A6242C: <no module><no symbol>75055920: <no module><no symbol>=== end CallStack output ==
Cause
The issue is related to the Data Execution Prevention (DEP) from Microsoft Windows Server.
Solution
- Open the Control Panel
- Click System and Security > System > Advanced System Settings
- Once you are on the Advanced tab click Settings
- Click the tab called Data Execution Prevention
- Select Turn on DEP for essential Windows programs and services only
-
Click OK. Make sure to restart your system in order to enable the change
How to check from CMD if DEP is enabled
- Open CMD
-
Type the following command, then press ENTER:
wmic OS Get DataExecutionPrevention_Available
If the output is “TRUE”, hardware-enforced DEP is available.
Level of Complexity
Easy
Applies to
Product | Version | Build | Environment | Hardware |
---|---|---|---|---|
Kofax Capture |
11.0 11.1 |
n/a | n/a | n/a |
References
Microsoft Data Execution Prevention
https://docs.microsoft.com/en-us/windows/win32/memory/data-execution-prevention
Article # 3047863