function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashu sharma 38Ashu sharma 38 

Getting error FIELD_CUSTOM_VALIDATION_EXCEPTION

Hi ,

I am getting a error
FIELD_CUSTOM_VALIDATION_EXCEPTION
when my trigger and Process builder both are active.

Thanks
 
Shubham_KumarShubham_Kumar
Hi Ashu
It means you are trying to update or insert a record but the data provided does not pass the Validation Rule on that Object.

P.S: Mark this as the best solution if this helped you.

Thanks
Shubham Kumar
Ashu sharma 38Ashu sharma 38
Hi Shubham ,

Could you please explain in more details:
Actuallt I have written a trigger for prevention overalapping on the basis of start date and end date(custom fields).

And in my process builder I am updating a picklist field based on that comparison of current date,start date and end date.



And one things when both(triggers and PB) are active it throwing above error.
Shubham_KumarShubham_Kumar
Hi Ashu 

Do you have a validation rule on the that Picklist Field that you are updating? 
You'll need to modify your trigger/pb such that it complies with the validation rules.
If you could show us your code and pb secreenshot and even full error then we may be able to better understand your problem.
Ashu sharma 38Ashu sharma 38
Hi Shubham,
Thanks for your reply.

It works now,some issue was in trigger..

Thanks