Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 3 days ago

    This enhancement offers benefits for troubleshooting, identifies reasons for breaks in the workflow and assists in root-cause analysis. 

    To troubleshoot the issue where a task's XML file is overwritten with the previous task's XML file during processing by RuleRunner (RR) services in IBM Datacap, an enhanced configurable RR registry setting is available in the latest Datacap 9.1.9 fix pack.

    Enabling the registry setting is diagnostic only-it does not remediate any known defects; It can in some instances, assist in isolating contributing factors by logging detailed XML content before and after task execution.

    Use Case

    When the RuleRunner registry setting Dump DCO Files is enabled, the contents of the task's XML file - both before and after the task is executed - are written to the RuleRunner logs.

    This allows IBM Datacap developers and support teams to compare the XML structure and data at different stages of execution, helping to identify anomalies such as:

    • Unexpected overwrites
    • Missing or duplicated nodes
    • Task execution order issues

    Instructions to enable / disable the registry setting on the Rulerunner server machines. 

    §  Close the Datacap applications, and RR server services.  

    §  Under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Datacap\Rulerunner\Misc

    §  Create a DWORD (32-bit) value "Dump DCO Files" and assign a value of 1.

    §  Restart RR services.

    §  Reproduce the issue and upload the collected rulerunner logs to the case.  

    §  Disable the registry setting.

    Example: TravelDocs Application

    When using the TravelDocs application, enabling the RuleRunner registry setting Dump DCO Files causes the contents of the DCO (Document Control Object) files to be logged at several key points during task execution.

    This includes:

    • Before the task begins processing
    • After the task is completed
    • Any intermediate stages where the DCO is modified

    This visibility is especially useful in custom applications because it often involves complex document hierarchies and multiple task stages, making it easier to trace where and how the XML content changes.

    Before a task is executed

    In addition to the XML logging provided by the Dump DCO Files registry setting, the RuleRunner log now includes the process ID (PID) for the thread executing each task. For example:

    After identifying the Process ID (PID) in the RuleRunner logs, you can open Windows Task Manager on the RuleRunner machine to confirm which instance of RRProcessor.exe is associated with that PID.



    ------------------------------
    Paula Prusty
    ------------------------------


  • 2.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 3 days ago
    Edited by Shaun McDowall 2 days ago

    Hi Paula,

    I was happy to see this enhancement so I immediately tried it with a custom app we have in Datacap 9.1.9 IF07 but unfortunately it doesn't work for me. Searching the RRS Logs for the words "dump" and "process id" returns no hits.

    I checked the registry entry and restarted the machine, but that made no difference. I have also tested with TravelDocs. What am I doing wrong?

    Many thanks,

    Shaun



    ------------------------------
    Shaun McDowall
    ------------------------------



  • 3.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    Hello Shaun, 

    Did you physically create that registry key?  I think you have to create it. 



    ------------------------------
    Duke Lam
    ------------------------------



  • 4.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    Hi Shaun,

    Yes thanks for enabling the registry.  As Duke asked I see you have enabled the registry setting.  Please can you share your rulerunner log on with full logging enabled so I can see if the task xml's contents is dumped in there.  



    ------------------------------
    Paula Prusty
    ------------------------------



  • 5.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    Once the open up the Rulerunner0.log, with all the logging levels enabled, you should see something similar to the following entries:


    13:33:49.986 (0)    t:850C p:22FB3F8 CRRSWrapper::GetATaskModADCO: TaksID:[PageID]
    13:33:49.989 (0)    t:850C p:22FB3F8 CRRSWrapper::GetATaskModADCO: Project Path set to:[C:\Datacap\TravelDocs\dco_TravelDocs\PageID.set.xml]
    13:33:49.990 (0)    t:850C p:22FB3F8 CRRSWrapper::GetATaskModADCO: Selected pagefile [PageID.xml].
    13:33:49.990 (0)    t:850C p:22FB3F8 CRRSWrapper::GetATaskModADCO: Read page file [C:\Datacap\TravelDocs\batches\20250813.000005\PageID.xml].
    13:33:49.990 (0)    t:850C p:22FB3F8 [CRRSWrapper::PrepareBatch ]: Dump Content of XML file: [C:\Datacap\TravelDocs\batches\20250813.000005\PageID.xml]
    13:33:49.991 (0)    t:850C p:22FB3F8 [CRRSWrapper::PrepareBatch ]: <-start->
    [<B id="20250813.000005">
        <V n="TYPE">TravelDocs</V>
        <V n="CustomValue">Provider=SQLOLEDB;Server=HPDM4\SQLEXPRESS2008;Database=MySQLDB;UID=secret;PWD=password;</V>
        <V n="LAST_RR_TPROFILE">VScan:3</V>
        <P id="TM000001">
            <V n="TYPE">Other</V>
            <V n="IMAGEFILE">tm000001.tif</V>
            <V n="PageName">Car1</V>
            <V n="ScanSrcPath">C:\Datacap\TravelDocs\images\Car1.tif</V>
            <V n="STATUS">49</V>
        </P>
    </B>]
    <-end->
    13:33:50.012 (16)    t:850C p:22FB3F8 CRRSWrapper::PrepareBatch: Putting RRStateXML:[<s lib="TravelDocs" tprofile="PageID" wf="TravelDocs" script_reload="1" dco_reload="1" log_reflush="1" batch_log="1" service_log="5" action_log_level="0" log_override="0" log_timediff="1" log_time="1" log_appid="1" log_threadproc="1"></s>
    ]



    ------------------------------
    Paula Prusty
    ------------------------------



  • 6.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    My bad, it needs to be decimal.



    ------------------------------
    Paula Prusty
    ------------------------------



  • 7.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    Hi All,

    Thanks for your replies. @Paula Prusty I changed the Base to Decimal. I didn't realise that the logging level had to be turned up - that seems to have done the trick! Thank-you!

    Shaun



    ------------------------------
    Shaun McDowall
    ------------------------------



  • 8.  RE: What's New: Datacap Rulerunner Server Services now writes out the contents of the workflow tasks and the rulerunner process ID numbers to the logs.

    Posted 2 days ago

    This is a nice feature.  Thank you for adding it.  It works perfectly for me.



    ------------------------------
    Danny Mann
    ------------------------------