Getting "INVALID_FIELD_FOR_INSERT_UPDATE" Error Message When Try To Update Salesforce Contact Objet Via Java(EnterpriseWSDL)
I tried to update Department field in Salesforce Contact object. I got this error response : "INVALID_FIELD_FOR_INSERT_UPDATE Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile or permission set".
When I tried the Opportunity object(Fields : Amount, stageName), the update succeeded.
I checked the field security levels on both objects' fields. Security levels are same but I am not able to update the Contact object. Could anyone help me with this issue? Stage(opportunity) field access levels - Department(Contact) field access levels
Answer
The error message indicates "Unable to create/update fields: Name" not the department field. The name field on contact is a read-only field computed from lastName & firstName fields, you can't send it in an update request. You need to update your code to just send the fields you want to change.
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM