Support Article
IndexOutOfBounds when extracting work objects with PageLists
SA-13517
Summary
When running a BIX extract, it fails to extract work object information in XML output format when there is data in Pagelists.
If the Pagelists are excluded, then it runs and extracts data successfully.
Error Messages
10:42:22,441 [company.com] ( internal.access.ExtractImpl) ERROR - Inskey of the corrupt Instance PEGA-TEST-WORK WO-21
10:42:22,441 [company.com] ( internal.access.ExtractImpl) ERROR - Unable to process while reading the source Db Pega-Test-Work-Class: Index: 4, Size: 0
java.lang.IndexOutOfBoundsException: Index: 4, Size: 0
Steps to Reproduce
Not applicable.
Root Cause
A defect in Pegasystems’ code or rules. If the work object being extracted has a Pagelist (embedded or otherwise) that has a value for a property in one particular index, but in any prior indexes there is no value for this property, the error occurs.
For example:
- <PageForPListTest>
<pxObjClass>PegaSample</pxObjClass>
- <PListTest REPEATINGTYPE="PageList">
- <rowdata REPEATINGINDEX="1">
<MyValue>1</MyValue>
<pxObjClass>PegaSample-A2418</pxObjClass>
</rowdata>
- <rowdata REPEATINGINDEX="2">
<MyValue>2</MyValue>
<pxObjClass>PegaSample-A2418</pxObjClass>
</rowdata>
- <rowdata REPEATINGINDEX="3">
<pxObjClass>PegaSample-A2418</pxObjClass>
</rowdata>
- <rowdata REPEATINGINDEX="4">
<pxObjClass>PegaSample-A2418</pxObjClass>
</rowdata>
- <rowdata REPEATINGINDEX="5">
<MyValue>5</MyValue>
<pxObjClass>PegaSample-A2418</pxObjClass>
</rowdata>
</PListTest>
</PageForPListTest>
MyValue has values in index 1 and 2, but not in 3 and 4, but then again has a value in index 5.
Resolution
Apply HFix-23212 to address this issue.
Published August 27, 2015 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.