Drawloop - Error: "A field is missing for ordering or filtering a Relationship. "
Error when running the DDP: "A field is missing for ordering or filtering a Relationship."
This error may be due to one of the following:
The user running the DocGen Package does not have access to the fields used to filter or order in your relationship. Please make sure whatever fields that are being used in the "Order By" and "Filter Conditions" fields are accessible for the running user.
Make sure the fields that are indicated in your relationships are still existing in your organization. Fields that are deleted on the object does not get automatically deleted from the relationship record(s).