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
Vaclav LukasekVaclav Lukasek 

INVALID_TYPE using Salesforce/Python Toolkit

Migration
update suds client changed results, but i didnt find out changes in request

BEFORE

DEBUG 2014-05-16 13:09:04,033 client 8880 6140 sending to (https://zoom--sandbox1.cs15.my.salesforce.com/services/Soap/c/30.0/00De0000005NbBW/0DFe00000008PA7)
message:
<SOAP-ENV:Envelope xmlns:ns0="urn:enterprise.soap.sforce.com" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:enterprise.soap
.sforce.com" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <tns:SessionHeader>
         <tns:sessionId>00De0000005NbBW!ASAAQDb2eDhz1pVMIUCaXWqH.iBcHUgBW9EZSpM7Ei6PbNqiVZ3.xX36oY8330fczoegr7dDCA1u42rDvoUqK6Z6nLRyvfTV</tns:sessionId>
      </tns:SessionHeader>
   </SOAP-ENV:Header>
   <ns1:Body>
      <ns0:create>
         <sObjects xsi:type="ens:CaseComment">
            <Id xsi:nil="true"/>
            <CreatedById>035e0000000Lf2uAAC</CreatedById>
            <CommentBody>abc</CommentBody>
            <IsPublished>True</IsPublished>
            <ParentId>500e0000002glCkAAI</ParentId>
         </sObjects>
      </ns0:create>
   </ns1:Body>
</SOAP-ENV:Envelope>
DEBUG 2014-05-16 13:09:04,036 client 8880 6140 headers = {'SOAPAction': u'""', 'Content-Type': 'text/xml', 'User-Agent': 'Salesforce/Python Toolkit/0.1.3'}
DEBUG 2014-05-16 13:09:06,444 client 8880 6140 http succeeded:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com"><soapenv:Header><LimitInfoHeader><limitInfo><cu
rrent>320</current><limit>100000</limit><type>API REQUESTS</type></limitInfo></LimitInfoHeader></soapenv:Header><soapenv:Body><createResponse><result><id>00ae000000109vaAAA</id><success>true</success>
</result></createResponse></soapenv:Body></soapenv:Envelope>

AFTER

DEBUG 2014-05-16 13:03:05,871 client 3416 7844 sending to (https://zoom--sandbox1.cs15.my.salesforce.com/services/Soap/c/30.0/00De0000005NbBW/0DFe00000008PA7)
message:

<SOAP-ENV:Envelope xmlns:ns0="urn:enterprise.soap.sforce.com" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:enterprise.soap
.sforce.com" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <tns:SessionHeader>
         <tns:sessionId>00De0000005NbBW!ASAAQDb2eDhz1pVMIUCaXWqH.iBcHUgBW9EZSpM7Ei6PbNqiVZ3.xX36oY8330fczoegr7dDCA1u42rDvoUqK6Z6nLRyvfTV</tns:sessionId>
      </tns:SessionHeader>
   </SOAP-ENV:Header>
   <ns1:Body>
      <ns0:create>
         <sObjects xsi:type="ens:CaseComment">
            <Id xsi:nil="true"/>
            <CreatedById>035e0000000Lf2uAAC</CreatedById>
            <CommentBody>abc</CommentBody>
            <IsPublished>True</IsPublished>
            <ParentId>500e0000002glCkAAI</ParentId>
         </sObjects>
      </ns0:create>
   </ns1:Body>
</SOAP-ENV:Envelope>
DEBUG 2014-05-16 13:03:05,874 client 3416 7844 headers = {'SOAPAction': '""', 'Content-Type': 'text/xml', 'User-Agent': 'Salesforce/Python Toolkit/0.1.3'}
DEBUG 2014-05-16 13:03:06,727 client 3416 7844 HTTP failed - 500 - Server Error:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLS
chema-instance"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:InvalidSObjectFault xsi:type="s
f: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:Inv
alidSObjectFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>