Method Directive with BPM Form Broken in Kinetic?

In classic we have a method directive to check the employees department when they submit a time entry. The method is pre Erp.BO.Labor.SubmitForApproval. Inside this BPM, we pop a BPM Form to ask yes/no question. This works great in classic, but in Kinetic I got this error:

Business Layer Exception
Unable to show BpmData form raised from inside nested service calls
Error Detail
============
Correlation ID: 6a3537e1-e722-45fa-8f08-ff445627955a
Description: Unable to show BpmData form raised from inside nested service calls
Program: Epicor.Customization.Bpm.dll
Method: BpmDataFormCanProcessImmediately
Table: undefined
Field: undefined

I went into the method and made sure the form was valid. I also went into BPM Data Form designer to make sure the forms are saved and valid. I don’t see any issues. Do I need to call BPM data forms differently from Kinetic?

Thanks for looking!

2 Likes

Some Business Object calls have been changed from Classic to Kinetic. I’d use Jose’s Kinetic tracing tool to verify the BOs being called via Kinetic’s version of Time Entry (as it’s different from Classic’s Time & Expense Entry)

1 Like

I do have the kinetic trace installed and I can see it in Dev Tools, but it never populates with anything even after I click enable trace logging. Do I have to do something else to trigger it?

Here is what I can see in the dev console:


I was mistaken before. The directive I am working on is actually post Erp.BO.Labor.DefaultOprSeq. Same idea though, we pop a BPM form ask if the user is sure, and either cancel the method or let it finish.

I removed the old methods, and just used a new pre method on ChangeLaborDtlOprSeq. The issue was related to how I had customized the BPM data form in classic. Kinetic doesn’t want to use customized forms, so I had to remove that part from my method directive. Seems to work now. Thanks for the guidance!

This is an issue that has always been there if you put a BPM Data form on method X and that method is called from method Y this is the error you get.

I Suspect in the kinetic version of the screen they layered the methods in such a way that your BPM Data Form method is called from another.

Usually requires that you re-arrange where you put the BPM Form.

3 Likes

The dev tools window needs to be in the same window as your Kinetic screen can’t have it popped out

Did you move all the methods in here or just the form? I am having the same issue.

I had a couple of old method directives setup there. I just removed them, and replaced them with the new pre method.