This discussion is archived
1 Reply Latest reply: Sep 9, 2012 11:55 PM by 785515 RSS

"Required field is missing..." error encountered when inserting a CustomObj

785515 Newbie
Currently Being Moderated
Hi,

I am simply trying to insert a child Contact record for an existing CustomObject1 record. However, I am getting errors saying that a required field for Contact is missing a required field from the request. The field is clearly in the request. Moreover, I've checked the WSDL and I can verify that I am using the correct the field name. Can somebody tell me why this is happening? I've also tried inserting a child CustomObject 3 instance to a CustomObject 1 instance but still getting the same results. I really need to know what's going on - this does not happen when I'm using regular objects. Below is the request I'm using and the response I'm getting:

REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/customobject1/" xmlns:data="urn:/crmondemand/xml/customobject1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soapenv:Header>
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>###</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">###</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns:CustomObject1WS_CustomObject1InsertChild_Input>
<data:ListOfCustomObject1>
<data:CustomObject1>
<CustomObject1Id>ALTA-210YU3</CustomObject1Id>
<data:ListOfContact>
<data:Contact>
<ContactFirstName>FirstName</ContactFirstName>
<ContactLastName>LastName</ContactLastName>
</data:Contact>
</data:ListOfContact>
</data:CustomObject1>
</data:ListOfCustomObject1>
</ns:CustomObject1WS_CustomObject1InsertChild_Input>
</soapenv:Body>
</soapenv:Envelope>

RESPONSE
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Required field is missing in instance of Integration Component 'Contact' with the user key '': '&lt;field>Contact~First Name&lt;/field>' is a required field. Please enter a value for the field.
(SBL-DAT-00498)(SBL-EAI-04389)</faultstring>
<detail>
<siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
<siebelf:logfilename>OnDemandServicesObjMgr_enu_145561.log</siebelf:logfilename>
<siebelf:errorstack>
<siebelf:error>
<siebelf:errorcode>(SBL-DAT-00498)</siebelf:errorcode>
<siebelf:errorsymbol/>
<siebelf:errormsg>Required field is missing in instance of Integration Component 'Contact' with the user key '': '&lt;field>Contact~First Name&lt;/field>' is a required field. Please enter a value for the field.
(SBL-DAT-00498)(SBL-EAI-04389)</siebelf:errormsg>
</siebelf:error>
</siebelf:errorstack>
</siebelf:siebdetail>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thank you,
John

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points