cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the ODATA API restriction in SAP CPI

Hi,

I am facing some issue while working on ODATA API artifact. Please find the below for the details,

ODATA API, I am trying with GET operation, I am calling with email address of the employee. It now, we got cases, where we receive only 1 record for user, now we might receive 2 or 3 records for each employee. When ever I try with employee hvaing multiple EMPJOB records, iflow failing with error

java.lang.ClassCastException: java.util.ArrayList (loaded by <bootstrap>) cannot be cast to java.util.HashMap (loaded by <bootstrap>)

I tried using General splitter to split the record for each //PerPerson, still same error. Tried deplaying the sending the 2nd record by 1 minute, still for 2nd record, it's failing with same error.

I feel it's a ODATA side there might be some restriction because, only records having multiple active EMPJOB records then only iflow getting failed, for single records it's working fine.

Is there any way we can check for any restriction on ODATA API?

Sample payload we use,

<?xml version="1.0" encoding="UTF-8"?>

<PerPersonSet>

<PerPerson>

<personId>1234</personId>

<personIdExternal>128548</personIdExternal>

<firstName>Hari</firstName>

<lastName>shankar</lastName>

<secondLastName/>

<email>hari@xyz.com</email>

<userId>128548</userId>

<managerId>047756</managerId>

<emplStatus>A</emplStatus>

<positionCode>128915</positionCode>

<positionName>Services Specialist</positionName>

<businessUnitCode>TEC</businessUnitCode>

<businessUnitName>TECHNOLOGY</businessUnitName>

<departmentCode>33159</departmentCode>

<departmentName>HR Pool</departmentName>

<divisionCode>17</divisionCode>

<divisionName>BUS SYSTEMS PLATFORM</divisionName>

<locationCode>64</locationCode>

<locationName>US</locationName>

<companyCode>90</companyCode>

<companyName>CHEM</companyName>

<companyCountry>USA</companyCountry>

<isInternal>true</isInternal>

<isCadre>true</isCadre>

<username>harish</username>

<PO2Flag>A</PO2Flag>

</PerPerson>

</PerPersonSet>

Accepted Solutions (0)

Answers (0)