Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

Error On Address Creation When Adding Account.OnBeforeInsert Snippet

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?

Highlighted
Nickel Contributor
Posts: 56
Registered: ‎10-26-2010

Re: Error On Address Creation When Adding Account.OnBeforeInsert Snippet

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.