Skip to main content
Kofax

Retrieving interactive result fails with OnDemandAndInteractiveV8

3023698

Question / Problem: 

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".

Answer / Solution: 

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.

RESOLUTION

As a workaround you can use a different session variable:

  1. Open script AiaInteractiveFromSessionGetResultBasicV3
  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 library and redeploy it.

Applies to:  

Product Version
KCCM with OnDemandAndInteractiveV8 5.0 and newer