Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How does field_custom_validation_exception happen without upserting the field?

Asked by Alex Duncan Sep 23, 2022 1.6K views 1 answer
Share

About this question

 I wrote a script to export the data to SFDC using the bulk API 2.0 I upserts a bunch of user ids which is an external id of the object. I was expecting it to return errors "REQUIRED_FIELD_MISSING:Required fields are missing" if the entry already exists, or upserting success if it doesn't. However I received this error:


`FIELD_CUSTOM_VALIDATION_EXCEPTION:{Field f} can only be selected by an {Field f SDR}:Field_f__c`

My question is, I didn't include Field_f__c in my csv file, so I did not intend to update it. Why did I trigger a validation exception in this field?


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.