You would see below errors in the SFAPI audit log's SOAP_Response for the "Query" operation with API entity "Compound Employee".
- <faultstring>SFAPI Domain Error!</faultstring>
- errorMessage>Query failure! Error: Failed to query</ns2:errorMessage>
This issue occurs when the Compound Employee API queries a large number (over 999) of person_id_external in where clause.
phone_information FROM CompoundEmployee WHERE person_id_external IN ('120052','120053','120060','120061','120062','120063','120065',...........
This is an expected behavior of the product.
As of now, Database only supports upto a number of 999 ids passed in a list in the where clause of the query.
For larger requirement, It is advised to split or reduce the number of employees in the list for person ids.
Compound employee ,Query Failure , where clause limitation , sfapi query failure , KBA , LOD-SF-INT , Integrations , Problem