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
Heather ThompsonHeather Thompson 

Managed Package Failing test classes

I've written a trigger on on object, that will autopopulate a firld based on the value of another flield, which is a lookup to a managed package page. I know that the trigger works as I have tested it out in the sandbox, but I cannot figure out a way to write test code because when I try to use DML statements to create the related record for the lookup field, the package's "custom validations" prevents this. I thought about trying to hard code the details into the test class, but then it would not work in production.

Any ideas?
bob_buzzardbob_buzzard
Do you have the details of the custom validations?