Kinetic MES End Activity Button Long Running Process Error

Good Morning,
We are rolling out Kinetic MES and the End Activity Button is not working. We receive the error: Long Running Process “The request has not finished processing. You have the option to keep waiting or enable the UI to interact with it. Be aware that changes may occur if you decide to enable the UI and the request finishes processing while you interact with it.” It fails 100% of the time for 100% of the users.

I have run a trace on the button click for End Activity.


A slide out never comes out.

I am looking for any customization that is causing the app-open to fail and I am unable to find it.

Things that I have tried:
Menu PR000019, End Activity there are no classic or kinetic customizations
Menu PR000440, MES Shop Floor, again there are no classic or kinetic customizations


Inside Application Studio, I have searched for Erp.UI.EndActivityEntry. All we have is the base layer.

And again we only have the base layer for Erp.UI.Mes.

But, way back in Classic MES, we built buttons and created a custom MES menu. This custom MES menu was called TUSCOMES. To make sure the custom MES mene always appeared when MES opened we put this line of code in the SysConf file.

But with Kinetic we have a new sysconfig file and nowhere in the new sysconfig file can I find a reference to the TUSCOMES customization. Here is the current SysConfig file:

The Classic MES screen still has the buttons and it still must be opening TUSCOMES.

We are no longer using many of the buttons we added to Classic MES. I want to abandon them and start from scratch.

Question 1) If I think the TUSCOMES menu and sysconfig line of code is stopping the End Activity button, how do I eliminate it and go back to off the shelf MES?
Question 2) What more can I do to find what is stopping EndActivity?

Heide

Make sure your MES users are clocking out every day.

Not log out, clock out. Clocking out clears some kind of unseen list of jobs that pile up and can cause MES activities to take a really long time. This could be causing issues.

Thank you for the reply.
Yes, all users are clocking out. Currently, I am in Epicor Pilot for the testing. I have made sure that all users are clocked out and have only 6 active transactions to test EndActivity.

Your response and thoughts are much appreciated.

To clarify, when you start activity, it adds activity to a labor header record. This header record is your “clock in” and “clock out” for the day. If you never clock out. It’s adding all of your details to the same header, which is why it takes forever. (And frankly, that’s now the wrong date anyways if the worker has been clocked in for weeks, so it also opens up all kinds of other data issues as well). When you clock out, and back in, you have a new header record, and no other details tied to it, so the lookup is faster.

Just putting this out there for future readers as the OP (@Heide ) looks like she already understands this.

1 Like

I used a BAQ to check the LaborHed table for any ActiveTrans as well as the LaborDtl table. The only active transactions are the ones that I have open.

And I’m assuming that the clock in date for that LaborHead record is today? (I don’t really think that’s the issue, but it’s good to check).

Are you running MES in the browser? If you aren’t you should be. And when you run in the browser, the sysconfig has no effect on anything, because the browser doesn’t use it. (I don’t really think the kinetic version launching from classic does either, but it’s still generally better to run kinetic from the browser)

I hit a wall, so I am changing course and have opened Epicor Pilot in the Classic smart client. I am going to delete the customization on the TUSCOMES menu item. I am going to disable it as well.

When I was in the menu tree, inside Process, there appears a Custom Processes list. That is a new find for me. There is an EndActivity inside this custom processes. The menu is not PR000019 for EndActivity but is zPC00099.


I am going to disable this menu item and see if that solves my EndActivity problem.

After finding this new detail in Classic, I went back to Kinetic. I am finding more menu items. Under ALL in Menu Maintenance, I have found

and
image

Hmmm…Epicor is really a giant game of hide and seek.

Currently, the factory is running MES in the smart client and it is working fine. I am trying to take us to MES Kinetic on the browser. That is where I am failing and seeing the EndActivity issue.

Disabling custom menu item zPC00099 that was using Program Erp.UI.EndActivityEntry fixed the problem.

The End Activity button is functioning in Epicor Kinetic MES in the browser.

1 Like

Nice find, I was going to suggest checking Menu Maintenance >> Process >> Custom Processes as well.

We ran into something very similar during our upgrade to 2025.2 against:

  • the Print button in AR Invoice Entry
  • the Start Production button in MES

In both cases, the issue was tied to old zPCxxxx entries. Removing those resolved it.

We ultimately removed all zPCxxxxxx items since:

  • we didn’t recognize them
  • they appeared to be legacy (likely several years old)
  • and they were causing unexpected behavior in multiple areas

Might be worth reviewing and cleaning those up if they’re not actively used. :man_shrugging:

2 Likes