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
agendaagenda 

INVALID_FIELD_FOR_INSERT_UPDATE:Account: bad field names on insert/update call: type

The Type field for an account is causing the error on the subject line in the Partner API. This field is valid based on the DescribeSObject call. I tried setting the namespace to avoid name collisions without any effect. Here's the java code:
 

MessageElement me = new MessageElement(new QName("type"), "Customer - Channel");
me.setNamespaceURI(
"urn:sobject.partner.soap.sforce.com");

The resulting SOAP XML (extract) looks like this:

<ns17:type xmlns:ns17="urn:sobject.partner.soap.sforce.com">Customer - Channel</ns17:type>

Any ideas?

Thanks,
Mark

SuperfellSuperfell
Use Type, not type.