英文:
LeadTrigger error: 'Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION'. How to resolve it?
问题
LeadTrigger: AfterInsert的执行引发了以下错误:
LeadTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, The industry field cannot be blank: [] Class.LeadTriggerHandler.afterInsertHandler: line 25, column 1 Trigger.LeadTrigger: line 9, column 1.
可能的解决方法是什么?
我需要在Salesforce UI中保存这个潜在客户记录。
英文:
I am getting the following error:
LeadTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, The industry field cannot be blank: [] Class.LeadTriggerHandler.afterInsertHandler: line 25, column 1 Trigger.LeadTrigger: line 9, column 1.
What could be the solution?
I need to save the lead record in salesforce UI.
答案1
得分: 1
“FIELD_CUSTOM_VALIDATION_EXCEPTION”错误表示在Lead对象上存在自定义验证规则。当您插入Lead记录时,它会因行业字段为空而引发验证规则错误。
我建议您首先检查Lead对象上的验证规则,以确定规则是否符合您的期望。
英文:
The "FIELD_CUSTOM_VALIDATION_EXCEPTION" error means that there is a custom validation rule on the Lead object. When you insert the Lead record, it throws the validation rule error because the Industry field is blank.
I would encourage you to first check the validation rule on the Lead object to see if the rule meets your expectations.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论