PREP_PROCESS_REPORT not functioning correctly, lines truncated after 257 characters

Document ID : KB000087175
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

The PREP_PROCESS_REPORT script function uses filter criteria to retrieve the report lines of executable objects and provides the result for further processing in the form of an internal list (data sequence).  

Beginning with the Automation Engine (AE) v11.2, if the value that is being filtered is after the first 257 characters that is being returned by the PREP_PROCESS_REPORT function, it will be truncated and so the filter criteria cannot be retrieved.

Investigation

Following is an example of a PREP_PROCESS_REPORT Script in the Post-Process of a File Transfer:

 
:set &HND# = PREP_PROCESS_REPORT(,,'REP', '*Duration*') 
:process &HND# 
: set &zeile# = GET_PROCESS_LINE(&HND#) 
: print '&zeile#' 
: endprocess 

Results

Actual:  There are no results in the Post-Processing report due to the fact that the filter word is after the first 257 characters and so it is truncated.  In AE v12.0.2 the Post-Process report contains the following information:

 
2017-06-21 10:30:54 - U00020408 20170621/103044.000 - U00011133 OK '685110' Bytes, '8355' Records for file
'D:\Temp4\LongFileNameForTestingReasonsForAFileTransferWithPostProcessingReportInDifferentVersionsTest (824).txt'->'\\SWGFS01\Common\WAR\TEST\LongFileNameForTestingReasonsForAFil

Expected:  In comparison, if the same PREP_PROCESS_REPORT is executed in AE v10.0.8, the Post Processing report contains the following information: 
 
2017-06-20 16:31:24 - U0020408 20170620/163112.000 - U0011133 OK '685110' Bytes, '8355' Records for file
'D:\Temp4\LongFileNameForTestingReasonsForAFileTransferWithPostProcessingReportInDifferentVersionsTest (824).txt'->'\\SWGFS01\Common\WAR\TEST\LongFileNameForTestingReasonsForAFileTransferWithPostProcessingReportInDifferentVersionsTest (824).txt' transferred. Duration '00:00:00'.
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: Lines are truncated to 255 characters so the PREP_PROCESS_REPORT is unable to find anything after 255 characters.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Automation Engine 12.1.0 - Available
Automation Engine 12.0.3 - Available
Automation Engine 11.2.6 - Available
Additional Information:
Workaround :
N/A