You need to sign in to do that
Don't have an account?

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
Use Type, not type.