11-04-2013 02:04 PM
I am attempting to add a very small code snippet to the Primary Account.OnBeforeInsert event. It's basically a regex check for some invalid characters that throws a vanilla exception if any are found.
The snippet appears to be executed correctly, but an exception is thrown later from Address.OnBeforeInsert on what appears to be the default step from the Sage.SalesLogix.BusinessRules assembly, and the message "The address EntityId must be defined".
If I set my snippet as inactive, and restore the default Account.OnBeforeInsert as active, everything functions normally.
Has anyone seen this issue before? Can I remove the default Address step without any adverse effects?
11-14-2013 09:27 AM
You can add your Account.OnBeforeInsert as a Pre Execute Step and have it validate as a Pre Execute Step and leave the Account.OnBeforeInsert from the Sage.SalesLogix.BusinessRules assembly as the Primary Step.