Is there something wrong with this Method Directive to raise an exception?

Context?

I’m really just trying to get it to trigger on anything. but when a job receipt to inventory is done raise an exception. The real work will come with the integration with the sql database later, where we will want it to look for serial number with a status before the part is received.

So it’s not triggering?

If you could post a trace of that method, it would be helpful.

I’m sorry, I’m not sure what you mean

No it is not raising an exception. I turned on tracing but the file doesn’t reference Erp.BO.ReceiptsFromMfg.PreUpdate

Then you’ll have to find another appropriate BO to use.

Probably Update

That worked, I thought I had tried that! Thank you so much! Now I need to execute custom code to communicate with the other database! LOL
Wish me luck!

Here is the screenshot of the Method Directive that worked.

I think it was on the same BO, I just changed it from added to updated? This was done on Erp.BO.ReceiptsFromMfg.PreUpdate. :slight_smile:
Thanks again for your help! :slight_smile: