Why can't I do a trace log when firing a method directive BPM but I can do a trace log on a DMT with the same methods being called as my method directive BPM?

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!

Thanks,
Richard

Erp.Proxy.BO.VendorImpl GetList net.tcp://erp10/ERP10PROD/ Erp.Tablesets.VendorListTableset 7/14/2021 18:56:45:2855094 PM 12 0 false FCII01 BALCO THE BALANCING CO. 172 898 CENTER DRIVE VANDALIA OH 45377 USA USD 937-898-9111 false USD 83fd1d90-9a61-fea7-e211-3b28b17be64f Erp.Proxy.BO.APInvoiceImpl GetAPUninvoicedReceipts net.tcp://erp10/ERP10PROD/ System.Void 7/14/2021 18:56:45:3011324 PM 12 0 FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 U FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 0 1.00000000 None 540.00 false 540.00 093-20-001 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 AAAAAF0XiAU= USD 540.00 FCII01 540.00 0 34927 0 0 0 0 0 0 0 172 00000000-0000-0000-0000-000000000000 U Erp.Proxy.BO.APInvoiceImpl GetAPUninvoicedReceiptLines net.tcp://erp10/ERP10PROD/ System.Void 7/14/2021 18:56:45:3167578 PM 12 0 FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 U FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 0 1.00000000 None 540.00 false 540.00 093-20-001 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 AAAAAF0XiAU= USD 540.00 FCII01 540.00 0 34927 0 0 0 0 0 0 0 172 00000000-0000-0000-0000-000000000000 U FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 A FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 0 1.00000000 None 540.00 false 540.00 093-20-001 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 AAAAAF0XiAU= USD 540.00 FCII01 540.00 0 34927 0 0 0 0 0 0 0 172 00000000-0000-0000-0000-000000000000 A Erp.Proxy.BO.APInvoiceImpl SelectUninvoicedRcptLines net.tcp://erp10/ERP10PROD/ System.Void 7/14/2021 18:56:45:3323822 PM 12 0 FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 A FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 0 1.00000000 None 540.00 true 540.00 093-20-001 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 U AAAAAF0XiAU= USD 540.00 FCII01 540.00 0 34927 0 0 0 0 0 0 0 172 00000000-0000-0000-0000-000000000000 A FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 A USD 0 FCII01 0 540.00 34927 0 0 0 0 0 0 540.00 172 00000000-0000-0000-0000-000000000000 A FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 None 540.00 false 093-20-001 540.00 USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 1.00000000 true 0 U Erp.Proxy.BO.APInvoiceImpl InvoiceSelectedLines net.tcp://erp10/ERP10PROD/ System.Void 7/14/2021 18:56:45:3480055 PM 12 0 FCII01 172 123542 38877 2021-07-07T00:00:00-04:00 0 0 true $ $ VAND 34927 USD 0 0 0 false dff0b393-38cf-4e1a-b075-4780d95c0e44 USD USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 A USD 0 FCII01 0 540.00 34927 0 0 0 0 0 0 540.00 172 00000000-0000-0000-0000-000000000000 U FCII01 172 VAND 38877 1 34927 093-20-001 1.00000000 540.00000 123542 1 1 FLYWHEEL, #20 FLAT BELT W/ PROVISIONS FOR FAN MOUNTING 1.00000000 540.00000 EA 0 0 84923975-334d-4ed2-9ecd-3ae03c9a14c4 None 540.00 false 093-20-001 540.00 USD false dff0b393-38cf-4e1a-b075-4780d95c0e44 1.00000000 true 0 U USD 0 FCII01 0 540.00 34927 0 0 0 0 0 0 540.00 172 00000000-0000-0000-0000-000000000000 A

BPMs are not traced on the client side.

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?

Thanks,
Richard

You can’t easily you have to setup logging

What’s the issue you are troubleshooting?

@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

image

Ice.Diagnostics.Log.WriteEntry($" DEBUG In GetrowsPlant {ttSugPoDtlRow.SugNum.ToString()} pn {ttSugPoDtlRow.PartNum}");

shows like this in the viewer
image

1 Like

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.

Thanks,
Richard

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.

probably don’t tell them but if you can write BPM code or updatable BAQs (especially with code), you can break pretty much anything…

2 Likes

Funny Steve, thanks for making me laugh!
Richard

Thank for you reply Jose.
I added the below assembly and custom code to change the RowMod and got the below errors. Please Help again!
Thanks,
Richard


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!

1 Like

Jose,

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.

Please let me know if I can do anything for you.

Richard