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
mvcmvc 

INVALID_TYPE: Must send a concrete entity type

Hi There

I have seen some other posts related to this subject, but unfortunately I could not resolve my issue with the feedback provided. I'm hoping someone here can assist.

I have pasted my request and response messages below. I'm trying to update a single field in 'Contact' using the enterprise WSDL and have tried various combinations of fields, including a different sObject of Account, but all render the same response.

I have successfully retrieved information using query and retrieve however, after login. I'm trying this from a native xml development environment and have tried submitting this request from XML Spy and a browser client-side HTTP request and all return the same response.

I hope you can assist.

Kind Regards

REQUEST

Code:

<—xml version="1.0" encoding="UTF-8"–>

<soap:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

<SessionHeader xmlns="urn:enterprise.soap.sforce.com">

<sessionId>SessionId as returned after login</sessionId>

</SessionHeader>

</soap:Header>

<soap:Body>

<ns2:update xmlns="urn:enterprise.soap.sforce.com" xmlns:ns2="urn:enterprise.soap.sforce.com">

<ns2:sObjects xsi:type="ns3:Contact" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com" xmlns="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance">

<ns3:Id>Valid Id as returned by query action</ns3:Id>

<ns3:FirstName>Nigel</ns3:FirstName>

</ns2:sObjects>

</ns2:update>

</soap:Body>

</soap:Envelope>

RESPONSE

<˜xml version="1.0" encoding="UTF-8"™>

<SOAP-ENV:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:HttpHeader>

<attribute name="Cache-Control">private</attribute>

</SOAP-ENV:HttpHeader>

<SOAP-ENV:Body>

<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<faultcode>sf:INVALID_TYPE</faultcode>

<faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring>

<detail>

<sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<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:fault>

</detail>

</soapenv:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

I've edited the message to prevent it from breaking the template. Original post by  mvc - Kingsley

Message Edited by Kingsley on 01-05-2007 11:45 AM

SuperfellSuperfell
What URL are you sending the request to ?
james_galindojames_galindo
Sounds like you're pointed at the Partner WSDL URL.
mvcmvc
I am using the following URL after login:
 
 
I have successfully used 'query' and 'retrieve' to obtain information via this URL. It's only the update that causes the fault.
 
Thanks
SuperfellSuperfell
Ok, finally spotted it, in your declaration of the xsi namespace you have a space before the XMLSchema- bit

xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance"

should be

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
james_galindojames_galindo
Simon, you have good eyes...I was stumped when he came back with the right URL. Your the man!
mvcmvc
Hi guys
 
Thank you very much. This sorted the problem. I copied the request structure from http://www.salesforce.com/us/developer/resources/soap/sforce60/sforce_API_messages_update.html and the space I think was created due to a new line character. I should still have checked though.
 
Many thanks