Article Content
Article Number | 000039469 |
Applies To | Product Set: Archer Product/Service Type: Archer Version/Condition: 6.X Platform: Windows |
Issue | When using Execute Search API to get all the contents of an application/questionnaire, we noticed that the results are not consistent and we miss some random content record every time. |
Cause |
<SearchReport> <PageSize>10</PageSize> <MaxRecordCount>10000</MaxRecordCount> <DisplayFields> <DisplayField name="Tracking ID">23266</DisplayField> <DisplayField name="Text Area">23274</DisplayField> <DisplayField name="Policy Ref">23269</DisplayField> <DisplayField name="Name">23285</DisplayField> </DisplayFields> <Criteria> <ModuleCriteria> <Module name="_test">545</Module> <SortFields> <SortField name="Sort1"> <Field name="Last Updated">23268</Field> <SortType>Ascending</SortType> </SortField> </SortFields> </ModuleCriteria> <Filter> <Conditions /> </Filter> </Criteria> </SearchReport> {code} The sort order caused the issue. When the content records in this application get updated while the API program is in flight, the order of records in each page gets changed and we miss some of the records. |
Resolution | Remove the "Last Updated" sort order from the code. |