On the case object I have a few validations rules for a few fields which acts similarly. I also have a flow creating cases which doesn't touch any of the fields for which I have specified the validation rules on. For some reason when I run the flow to create a case I get an unhandled error which is like below.

Error Occurred: This error occurred when the flow tried to create records: FIELD_CUSTOM_VALIDATION_EXCEPTION: ERR-CASE-018 Issue Detail field is required. You can look up ExceptionCode values in the SOAP API Developer Guide.

Why is the error only pointing to this field when I have similar validation rules on other fields as well on the case object?

Please advise on how to run the flow keeping the validation rules on.

  • 1
    is that field required on the schema (rather than by VR)?
    – cropredy
    Jan 14 at 21:13
  • @cropredy Not a required field at all. Jan 14 at 21:28
  • 1
    please use edit and show your VR - note that VRs apply to all DML, Flow, PB, apex, dataloader, UX. Unless the VR includes contextual info from the transaction in its conditions, you can't tell it not to run for Flows. Contextual info could include: the running user, the running user's possession of a custom permission, etc
    – cropredy
    Jan 14 at 22:01
  • 3
    If you have any custom Apex that uses addError(), that will also appear as a validation exception. Jan 14 at 22:50