Skip to main content

Export Connector fails when trying to add it

Article # 3047863 - Page views: 256


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,, 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 ==


The issue is related to the Data Execution Prevention (DEP) from Microsoft Windows Server.



  1. Open the Control Panel
    Control Panel View
  2. Click System and Security > System > Advanced System Settings
    System and Security View
    System View
  3. Once you are on the Advanced tab click Settings
    System Properties View
  4. Click the tab called Data Execution Prevention
    Performance Options View
  5. Select Turn on DEP for essential Windows programs and services only
    Data Execution Prevention View


  6. Click OK. Make sure to restart your system in order to enable the change


How to check from CMD if DEP is enabled
  1. Open CMD
  2. Type the following command, then press ENTER:

    wmic OS Get DataExecutionPrevention_Available

    If the output is “TRUE”, hardware-enforced DEP is available.DEP CMD check View



Level of Complexity 



Applies to  

Product Version Build Environment Hardware
Kofax Capture



n/a n/a n/a


Article # 3047863