Skip to Content
0
Dec 30, 2011 at 01:54 PM

Salesforce.com SOAP ERROR to PI 7.0: Missing entity type information

394 Views

Hi Experts,

the SFDC server connected to PI 7.0 is giving the following error

                <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Body>
- <soapenv:Fault>
  <faultcode>soapenv:Client</faultcode> 
  <faultstring>Missing entity type information. sObject requires a separate 'type' field be sent.</faultstring> 
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>

PI is getting this error when its trying to update/upsert the account information in SFDC.

The SFDC server has undergone refresh recently and the URL to the server has also changed. I changed the URL in SOAP ADAPTER to SFDC. Thus PI is able to login but cannot update user account information. I tried to perform same operation from SOAP UI but getting same fault.

Have you faced such errors in past? Could you please kindly share the solution if any to resolve such error.

The input SOAP message to SFDC is as shown below

<?xml version="1.0" encoding="utf-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Header>
- <SessionHeader xmlns:ns1="urn:horizon:sessionmgmt" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">
  <ns1:sessionId>00DW0000000CxdG!AQUAQGzweOCXpyMwAxIpSJvmmUwJ04vs9lluw9xOALp_cvUDmEhSRjDuKuMSWYXVaGSIbqp1UpptnKp7F2KkT3nZj6b_Yt1Q</ns1:sessionId> 
  </SessionHeader>
  </soapenv:Header>
- <<soapenv:Body>
- <upsert xmlns="urn:enterprise.soap.sforce.com">
  <externalIDFieldName>SAP_Customer__c</externalIDFieldName> 
- <sObjects xsi:type="ns1:Account" xmlns:ns1="urn:sobject.enterprise.soap.sforce.com">
  <ns1:fieldsToNull>Phone</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Fax</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Company_Email__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>NACE_Broad__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Sales_Tax__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>ShippingCity</ns1:fieldsToNull> 
  <ns1:fieldsToNull>ShippingPostalCode</ns1:fieldsToNull> 
  <ns1:fieldsToNull>ShippingStreet</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Shipping_Region__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>ShippingCountry</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Registered_City__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Registered_Zip_Postal_Code__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Registered_Street__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Registered_State_Province__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Registered_Country__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>NACE_Full__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Legal_Building_1__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Legal_Building_2__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Legal_Address_2__c</ns1:fieldsToNull> 
  <ns1:fieldsToNull>Legal_Address_3__c</ns1:fieldsToNull> 
  <ns1:Also_Known_As__c>TEST</ns1:Also_Known_As__c> 
  <ns1:CreditControllerID__c>ITBMO0</ns1:CreditControllerID__c> 
  <ns1:CurrencyIsoCode>EUR</ns1:CurrencyIsoCode> 
  <ns1:Customer_Category__c>I&C</ns1:Customer_Category__c> 
  <ns1:Hierarchy_Type__c>Account</ns1:Hierarchy_Type__c> 
  <ns1:Horizon_Segment__c>jhgjhgjg</ns1:Horizon_Segment__c> 
  <ns1:Horizon_Status__c>Registered in XYZ</ns1:Horizon_Status__c> 
  <ns1:Legal_Address_1__c>blank</ns1:Legal_Address_1__c> 
  <ns1:Legal_City__c>VBB</ns1:Legal_City__c> 
  <ns1:Legal_Country__c>Ijkkjhjk</ns1:Legal_Country__c> 
  <ns1:Legal_House__c>111</ns1:Legal_House__c> 
  <ns1:Legal_State_Province__c>wow</ns1:Legal_State_Province__c> 
  <ns1:Legal_Zip_Postal_Code__c>14800</ns1:Legal_Zip_Postal_Code__c> 
  <ns1:Name>test blank</ns1:Name> 
- <ns1:Owner>
  <ns1:User_ID__c>ITFCE0</ns1:User_ID__c> 
  </ns1:Owner>
  <ns1:RecordTypeId>01220000000DlR6AAK</ns1:RecordTypeId> 
  <ns1:SAP_Customer__c>10167091537</ns1:SAP_Customer__c> 
  <ns1:SalesSupportID__c>Mkjhkljh</ns1:SalesSupportID__c> 
  <ns1:Operating_Entity__c>TISE</ns1:Operating_Entity__c> 
  <ns1:Sub_Operating_Entity__c /> 
  </sObjects>
  </upsert>
  </soapenv:Body>
  </soapenv:Envelope>

This issue is in devlopment enviornment where as production is running as usual without any problems. Production PI server did not undergo any refresh. These interfaces has been functioning smoothly for last 5 -6 years, suddenly started giving errors after refresh.

Regards

Anupam