function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SushupsiSushupsi 

Upsert the Owner Id on a Custom Object Record

Hi All,

 

I have been trying to upsert Owner Id field on a custom object using SOAP UI. Facing some issue. Hope will find some advise here.... As always :D

 

I have tried upserting the data for Account Object via SOAP UI as follows:

 

      <urn:upsert>
         <urn:externalIDFieldName>Lonza_ID__c</urn:externalIDFieldName>
         <urn:sObjects xsi:type="Account">
            <Lonza_ID__c>sysadmin</Lonza_ID__c>
            <AccountNumber>6565</AccountNumber>
            <name>Str 3</name>
            <parent>
                <lonza_ID__c>0006-WAFR</lonza_ID__c>
            </parent>
            <Owner>
                <External_ID__c>sush</External_ID__c>
            </Owner>
            <Account_Group__c>Str</Account_Group__c>
            <Address_Number__c>Str 14</Address_Number__c>
         </urn:sObjects>
      </urn:upsert>

 

This did work and the Owner field got updated with user whose External  ID on user recrods matched the Value.

 

Where as when i am trying to do the same operation on the Custom object as follows i encountered an error :(

 

      <urn:upsert>
         <urn:externalIDFieldName>YTD_Summary_External_ID__c</urn:externalIDFieldName>
         <urn:sObjects xsi:type="Account_YTD_Summary__c">
            <YTD_Summary_External_ID__c>12343</YTD_Summary_External_ID__c>
            <Owner>
               <External_ID__c>sush</External_ID__c>
            </Owner>
         </urn:sObjects>
      </urn:upsert>

 

Issue :

 

      <soapenv:Fault>
         <faultcode>sf:INVALID_TYPE</faultcode>
         <faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring>
         <detail>
            <sf:InvalidSObjectFault xsi:type="sf:InvalidSObjectFault">
               <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
               <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
               <sf:row>-1</sf:row>
               <sf:column>-1</sf:column>
            </sf:InvalidSObjectFault>
         </detail>
      </soapenv:Fault>

The Data Type for the Field Owner on Account was "Complex", but then on the custom object mentioned above it is "Name". The custom object has look up relation to Account.

 

Please let me know which way to approach.

 

TIA.

 

- Sushupsi