Hi Amit,
I have tried the above udf, but still stuck-up.
For the above structure shown in image, i have tested giving the following payload
<?xml version="1.0" encoding="UTF-8"?>
<ns0:upsertRequest xmlns:ns0="http://sap.com/xi/SFIHCM01">
<sessionId/>
<upsert>
<type/>
<sfobject>
<id>1</id>
<businessKeys>1</businessKeys>
<type>1</type>
<status>1</status>
<externalId>1</externalId>
<username>1</username>
<firstName>1</firstName>
<lastName>1</lastName>
<mi>1</mi>
<gender>1</gender>
<email>1</email>
<managerExternalId>1</managerExternalId>
<hrExternalId>1</hrExternalId>
<department/>
<jobCode/>
<division/>
<location/>
<timeZone>1</timeZone>
<hireDate/>
<empId/>
<title/>
<businessPhone/>
<fax/>
<addressLine1/>
<addressLine2/>
<city/>
<state/>
<country/>
<zipCode/>
<reviewFreq/>
<lastReviewDate/>
<matrixManagerExternalIds/>
<defaultLocale/>
<customManagerExternalIds/>
<secondManagerExternalId/>
<loginMethod/>
<proxy/>
</sfobject>
<sfobject>
<id>2</id>
<businessKeys>2</businessKeys>
<type>2</type>
<status>2</status>
<externalId>2</externalId>
<username>2</username>
<firstName>2</firstName>
<lastName>2</lastName>
<mi>2</mi>
<gender>2</gender>
<email>2</email>
<managerExternalId>2</managerExternalId>
<hrExternalId/>
<department/>
<jobCode/>
<division/>
<location/>
<timeZone/>
<hireDate/>
<empId/>
<title/>
<businessPhone/>
<fax/>
<addressLine1/>
<addressLine2/>
<city/>
<state/>
<country/>
<zipCode/>
<reviewFreq/>
<lastReviewDate/>
<matrixManagerExternalIds/>
<defaultLocale/>
<customManagerExternalIds/>
<secondManagerExternalId/>
<loginMethod/>
<proxy/>
</sfobject>
<processingParam>
<name/>
<value/>
</processingParam>
</upsert>
</ns0:upsertRequest>
No node is creating for success records, instead it throws exception that "externalid field is missing for the id": id for empty externalid field value in second record.
But my requirement is..... when i process 50 records, records with missing value for field externalid should raise an alert message to end user intimating him to check the externalid field for particular id. If the value for externalid field is present in incoming record/payload, then it should be passed to target system.
How can i implement this logic ?
Regards
Koti Reddy