0

I am making an upsert call using SOAP UI on the order object. But I am facing below error.

<message>Unable to create/update fields: PricebookEntryId. Please check the security settings of this field and verify that it is read/write for your profile or permission set.</message>
<statusCode>INVALID_FIELD_FOR_INSERT_UPDATE</statusCode>

Now if i delete the records from my org and the make upsert it worked fine but again when I again make upsert on that record it will fail by showing above error message.

Then I tried to remove the below code from the wsdl and upsert worked.

<urn:PricebookEntry xsi:type="PricebookEntry"> 
<urn:EXT_PricebookEntry_ID__c>demoid</urn:EXT_PricebookEntry_ID__c> 
</urn:PricebookEntry>

How can I fix this without removing the above code. Please advicce.

Thanks Ashu

  • What happens if you try the same upsert via anonymous apex or the web UI? – Daniel Ballinger May 13 '16 at 20:49
  • have you found a solution to this? – Lee Nov 15 '17 at 23:23
0

Any logic that performs an update to the PricebookEntryId when the EXT_PricebookEntry_ID__c is populated? Sound like the user profile doesn't have the proper permission to update this field. Maybe this logic is only firing on updates not insert?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.