Skip to main content
Kofax

Retrieving interactive result fails with OnDemandAndInteractiveV8

Article # 3035789 - Page views: 10

Article # 3035789 - Page views: 10

Issue

When using OnDemandAndInteractiveV8 on KCCM 5.0 or higher, you'll run into a problem when retrieving the result of an interactive session via interface AiaInteractiveFromSessionGetDocxBasicV3Request or AiaInteractiveFromSessionGetPDFBasicV3Request

The error you receive from the Contract Manager is "An error occurred during the interactive run".

Cause

Both scripts use the script AiaInteractiveFromSessionGetResultBasicV3 for retrieving the result. The script uses get_sessionparameter to retrieve the result document location: 
    Const Text ResultDocument = get_sessionparameter("_itp_cloud_result");

The result is empty. Therefore the following IF statement triggers and produces the error.

Solution

As a workaround you can use a different session variable:

  1. Open script AiaInteractiveFromSessionGetResultBasicV3.dss
  2. Change
   Const Text ResultDocument = get_sessionparameter("_itp_cloud_result");

    To

   # Const Text ResultDocument = get_sessionparameter("_itp_cloud_result");
   Const Text ResultDocumentName = get_sessionparameter("_itpols_res_file_name");
   Const Text ResultDocument = ResultDocumentName [_sessiondir,];
  1.  Recompile your scripts or library and redeploy it.

Level of Complexity 

Moderate

Applies to  

Product Version Build Environment Hardware
Kofax Communications Manager 5.0 and newer n/a n/a n/a

 

  • Was this article helpful?