LeadTrigger error: 'Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION'. How to resolve it?

huangapple go评论62阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月28日 14:44:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76350267.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定