I am having trouble seeing a trace log on a method directive BPM to create AP invoice lines from a receipt line. When I run the DMT AP invoice Receipt I get the full trace as seen below. When I fire my method directive BPM which runs the same BO’s as the DMT I get nothing in the trace log. I am trying to compare parameter and database values in my BPM which is not working, to the DMT parameter and database values which is working. Please help!
Thank you for you reply Jose. How do I look at the trace log on the Server Side for my method directive BPM? Does is have the same information as the DMT trace log?
@R.Zimmer The ServerLog.txt is located under the server directory IF you have enabled it. See below for how to enable in your application server. Also it is a good idea to exit your system monitor so you don’t have to wade thru all of those calls in the server log.
I use the event viewer for a lot of my tracing so I control the messages and values being written using the WriteEntry statement below.
Greg
Ice.Diagnostics.Log.WriteEntry($" DEBUG In GetrowsPlant {ttSugPoDtlRow.SugNum.ToString()} pn {ttSugPoDtlRow.PartNum}");
Thank you Jose for your reply.
Below is my BPM with all BO parameters. I am following the same flow as the DMT trace log. I am going to transfer data from the UD14 table with values eventually after I get my manual parameter entries to work. I am supplying the same values manually to each BO as the DMT. The DMT works, my BPM does not. My DMT creates a line in the AP invoice entry, my BPM does not. I show messages of the database fields to see where my problem is. I have good values up to and including the getrapuninvoicedreceiptlines. The SelectUninvoicedRcptLines is not selecting any lines or supplying any data to the invoiceselectedlines final BO and not creating any AP invoice entry lines. Please help!
Thanks,
Richard
Thank you Greg for your reply. I am just a programmer who is learning Epicor programming and I am not allowed to mess with the server side or server logging. If I get desperate, I will ask the IT manager to possibly do some changes so that I can see logs but I don’t think that he we agree to doing it.
Go back through your trace use this utility (it makes things easier)
Make sure that you are setting / changing any value that needs to be set / changed on the trace. Particularly pay attention to the RowMod its important that the RowMod be set in the right place at the right time since most of the processing is done based on that.
Never mind Jose. I figured it out. I forgot I defined the ds as arb. Below is the custom code that I used.
arb.APUninvoicedRcptLines[1].RowMod = “U”;
I show message before and after my custom code and it showed null before and “U” after.
Also, the utility is very nice. Before your utility, I put in 38 fields in a show message and then compared it to my DMT trace with my not very good eyes. I did find the selectline and rowmod differences just as your utility found. You would have saved me hours and will save me many hours in the future with your utility.
Thank you!
Richard
I see many other people are excited about your utility also with all of the replies. You are the best!
I finally got the BPM to work thanks to all of your help! It is a wonder why Epicor requires us to make little tweaks to their BO’s in order to make them work. Oh well, all is well that ends well.
Thank you a million times for you great advice and help. You are life saver for me.