Support Article
Error occurs in the log or Tracer when uploading a file
SA-55462
Summary
Error occurs in the log or Tracer when uploading a file. Unable to process the footer.
Error Messages
com.pega.pegarules.pub.PRException: Error while parsing: Not enough data to fulfill required parse step 2.
From: (unknown)
at com.pega.pegarules.integration.engine.internal.mapping.DelimitedParserBase.parse(DelimitedParserBase.java:452)
at com.pega.pegarules.integration.engine.internal.services.file.RuleServiceFile.parseRecordAtTime(RuleServiceFile.java:930)
Steps to Reproduce
Upload a file which contains a Header, Body and Footer to the file listener location.
Root Cause
An issue in the custom application code or rules.
The 'record at a time' process method was used to process a file which consisted os a header, body and footer format in the Service-File rule.
Resolution
Perform the following local-change:Use the 'By Record Type' process method to process the file in the Service-File rule.
Perform the below configurations in the Request tab of the Service-File rule:
- Enter the Header record type unique value in the Record Type
- Mark the check box and call the Skip method to process any record in the Record Type
- Call the Delimited Parse rule to process the body (multiple records)
- Enter the Footer record type unique value should be given in the Record Type
- Mark the check box and call the Skip method
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.