On Friday 10 December 2010, David Lanstein elucidated thus:
Strangely, I just got an email today off-list about this. It seems
to be happening with 0.4, not with 0.3.9, on my to-do list is to make
sure all the unit tests pass with 0.4 as well. Joshua, does the
error go away with 0.3.9?
Yes, this is with 0.4.1 (trunk), I had thought about including the suds
version, then forgot. I have not tried with 0.3.9...I'm not sure if
I'll have time or not.
j
David
----- Original Message ----
> From: Joshua J. Kugler <joshua(a)eeinternet.com>
> To: suds(a)lists.fedoraproject.org
> Cc: David Lanstein <lanstein(a)yahoo.com>
> Sent: Fri, December 10, 2010 3:30:13 PM
> Subject: Weird error dealing with SalesForce.
>
> I'm using the excellent SalesForce Toolkit (built on Suds) by David
> Lanstein.
>
> Hit an error today, and I'm not sure if it's Suds, the Toolkit, or
> an oddity in the SF WSDL. I'm getting this error:
>
> (Fault){
> faultcode = "sf:INVALID_TYPE"
> faultstring = "INVALID_TYPE: Must send a concrete entity type."
> detail =
> (detail){
> InvalidSObjectFault =
> (InvalidSObjectFault){
> exceptionCode = "INVALID_TYPE"
> exceptionMessage = "Must send a concrete entity
> type." row = "-1"
> column = "-1"
> }
> }
> }
>
> Googling a bit seems to indicate this usually shows up when trying
> to send a Partner request to an Enterprise endpoint. I'm using
> the Enterprise WSDL in this case.
>
> The enterprise request is below. I don't have a copy of the
> Partner request at this point, but the request did succeed using
> the Partner WSDL, so I'm wondering if the sobject did not get
> formed correctly. Here is a snippet of my code:
>
> o = sf.generateObject('Daily_Web_Campaign_Data__c')
> o.foo = bar
> sf.upsert(external_field, o)
>
> These may be relevent:
>
>http://forums.sforce.com/t5/General-Development/quot-INVALID-TYPE-Mu
>st-send-a-concrete-entity-type-quot-error/m-p/87578 8
>http://forums.sforce.com/t5/Java-Development/nvalidSObjectFault-INVA
>LID-TYPE-Must-send-a-concrete-entity-type/m-p/201203 3
>http://forums.sforce.com/t5/Perl-PHP-Python-Ruby-Development/INVALID
>-TYPE-Must-send-a-concrete-entity-type/m-p/115243 3
>http://forums.sforce.com/t5/Java-Development/Partner-API-INVALID-TYP
>E-Must-send-a-concrete-entity-type/td-p/42533 3
>
> This sounds relevent:
> "the type attribute on the ns1:sObjects element is not correctly
> named spaced, your has no namespace prefix, when it should have
> the xsi prefx (given the namespace declarations you're using)"
>
> but I know so little about SOAP, I really don't know how to
> trouble shoot this.
>
> Ideas?
>
> And be sure to let me know about any other data I can provide for
> trouble shooting.
>
> j
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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>[redacted]</tns:sessionId>
> </tns:SessionHeader>
> </SOAP-ENV:Header>
> <ns1:Body>
> <ns0:upsert>
>
> <ns0:externalIDFieldName>Campaign_Date__c</ns0:externalIDFieldName>
> <sObjects xsi:type="ens:Daily_Web_Campaign_Data__c">
> <Id xsi:nil="true"/>
> <Campaign__c>70140000000KwOpAAK</Campaign__c>
> <Date__c>2010-11-01</Date__c>
> <Conversions__c xsi:nil="true"/>
> <Cost__c>4.57</Cost__c>
> <Impressions__c xsi:nil="true"/>
> <Visits__c xsi:nil="true"/>
>
> <Campaign_Date__c>70140000000KwOpAAK-2010-11-01</Campaign_Date__c>
> <Daily_Budget__c>50</Daily_Budget__c>
> </sObjects>
> </ns0:upsert>
> </ns1:Body>
> </SOAP-ENV:Envelope>
>
> --
> Joshua Kugler
> Part-Time System Admin/Programmer
>
http://www.eeinternet.com - Fairbanks, AK
> PGP Key:
http://pgp.mit.edu/ ID 0x73B13B6A
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds
--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com - Fairbanks, AK
PGP Key:
http://pgp.mit.edu/ ID 0x73B13B6A