microsoft / powercat-business-approvals-kit

MIT License
34 stars 3 forks source link

[Business Approvals Kit - BUG] BACore - Workflow or approval flow not found #253

Open dtrandall opened 4 months ago

dtrandall commented 4 months ago

Describe the issue

Here I have a flow when a table is added to a row it passes over data and starts an approval flow process where I have set myself as single approver. All is fine and see the stages | nodes running however, do not receive the notification of approval and check that all my settings are correct. Further, if I look into the instance logs I can see these stages and workflows image

Further if I go into the record and look at the run history shows the following image

however, when I look for this flow there is nothing present.

Where can I find this or why is it not sent? is there a problem in the running state that I cannot find as see no runtime exceptions

Expected Behavior

Would expect to get an approval notification or approval from the management kit.

What solution version are you using?

1.0.20240402

What app or flow are you having the issue with?

BACore Runtime

Steps To Reproduce

create a record in table flow to the approval kit WF is started in approval kit with simple 1 step default approver as user

Anything else?

none

AB#3151

shrikant-singh31 commented 4 months ago

Hi @dtrandall, thanks! for posting. Can you retry once again and see if you receive the approval request. If not, then please

  1. Navigate to the BACore | Runtime - Start Approval flow and open the latest run from Run History table.
  2. Expand the 'If no Custom Responses' condition action.
  3. Expand the 'Standard Approval' action under True path that ran under it.(This action sends the approval request)
  4. Verify the 'Assigned to' is populated with your expected Approver's email address in the action. image

Please verify and share what you see in your run.

The other thing which I observed is that the Run History URL which gets generated in the Business Approval Instance Log table is incorrect. That's why it is not taking you to the flow run. Thanks! for raising this observation. I can reproduce the same at my end as well.

Incorrect generated URL: https://make.powerautomate.com/environments/b12bd5f1-354b-eb6e-a314-9f056e8e3314/flows/73fc4c80-3d63-0ef0-58d3-9bac8d5eaa25/08584925870100329599389337041CU08

Correct URL should be: https://make.powerautomate.com/environments/b12bd5f1-354b-eb6e-a314-9f056e8e3314/flows/73fc4c80-3d63-0ef0-58d3-9bac8d5eaa25/runs/08584925870100329599389337041CU08

We will be fixing the Run History url issue in upcoming releases.

dtrandall commented 4 months ago

Thank you Shrikant, this help point me in the right direction as when I look at the BACore | Runtime - Start Approval flow I found that it had previous error and then turned itself off. I also was running this type of kit or process under a separate admin user and was then not notified of the flow not running. Is there a recommended way to monitor these core kit flows that are owned via a non-interactive user account?

Further, not sure why it error but this was in the history. image

Anyhow, once I turned it on again and submitted a new workflow then the process looks to run again.

However, is there a method to re-submit records in the approval kit during the time it was turned off? here is an example

image

but I do not see a way to send it to the flow BA-Core Runtime flow.

Anyhow, also glad to hear that at least found the connection url for history flows will be resolved in next release and helping to support the kit improvements.