Hello,
In a custom entity, I have business rules to show/hide fields based on an option set value..
IF
Timesheet Type does not contain data
THEN
Hide field Customer Name
Hide field Project Name
Clear Customer Name
Clear Project Name
ELSE IF
Timesheet Type equals "Project"
THEN
Hide field Customer Name
Clear Customer Name
Show field Project Name
Set Project Name as Business Required
ELSE
Hide field Project Name
Clear Project Name
Show field Customer Name
Set Customer Name as Business Required
In the same entity, I have a custom plugin that fires onCreate of a record and replicates the data to a separate table.
During plugin execution, I am getting the following strange error:

If I turn off the business rules the plugin executes successfully without throwing the error.
As long as the business rules are turned on under this entity, it keeps on failing.
Any idea what logic is missing for the plugin to handle this exception? Could you please which line should i amend changes to make it work?
Any help is greatly appreciated.
Best regards,
EBMRay