I’m trying to reduce the frequency of clicking through this BL exception when creating New lines.
We currently have the below as a pre-proc BPM on Quote.Update. The users end up having to click through this exception at least once or twice while trying to enter revision, quantities, and sales category. There are no conditions or anything added in the designer, it’s just Start > Execute Code.
Thanks all.
This is a very common issue when people try to make fields “required”. I recommend always asking the question: required to do what?
With a BPM like this on Quote.Update, you’re saying that the fields are required before a new record can even be saved. That’s probably a bit much.
I like to fire BPMs on something like when the Quoted checkbox is checked… don’t let it get checked if any of the “required” fields are blank or null. That (depending on your processes) still prevents processing a Quote with missing data, and it gives the user some breathing room before Epicor tries jumping down their throats…
you can also reduce the code size down by doing some tweaks.
One thing that you should not do is iterate through the data before it is completely selected… that is why I did the first line to query the data from the tt record, which brings all the record(S) into your local ttqDtl_Rows. Then you iterate through those.
I also changed this to a lambda query which is much shorter, EXCEPT, I look for the possible errors in the query, so this should speed up the process since it doesn’t have to iterate through all the modified records to check for errors. If something is found, then there IS an error.