Question & Answer
Question
Why does search screen throw the error when we you are using the getTaskList API to retrieve records on your custom search console ?
Cause
With the following input XML to getTaskList API. The query to the table YFS_TASK_TYPE does not have a OrganizationCode filter set at TaskType level, hence it retrieves all the records for activity group Count and hence an error is seen.
<Task EnterpriseKey="DEFAULT" IgnoreOrdering="Y" MaximumRecords="200" OrganizationCode="N1" NodeKey="N1">
<TaskReferences CountRequestKey="2018112615113
ActivityGroupId="COUNT"/>
</Task>
Answer
You need to pass the Organization code at Task Type level as per the input below:
<Task EnterpriseKey="DEFAULT" IgnoreOrdering="Y" MaximumRecords="200" OrganizationCode="N1" NodeKey="N1">
<TaskReferences CountRequestKey="2018112615113
<TaskType OrganizationCode="N1" ActivityGroupId="COUNT"/>
</Task>
Was this topic helpful?
Document Information
Modified date:
31 December 2018
UID
ibm10791951