microsoft / coe-starter-kit

Other
742 stars 219 forks source link

[CoE Starter Kit - BUG] Issue in CLEANUP - Admin | Sync Template v3 (Orphaned Makers) - failing on apply to each for empty array #6373

Open Timber123456 opened 1 year ago

Timber123456 commented 1 year ago

Does this bug already exist in our backlog?

Describe the issue

The flow occasionally fails requiring the team to investigate.

Examining a failed run, we can see there was an "InternalServerError" on the Apply to each UI Flow step. This step loops over the output from the previous step List UI Flows of maker. In the case of the failure the output of List UI Flows of maker was an empty array [] because the maker has no UI/Desktop flows.

Expected Behavior

Expect the flow to run in the background and handle any input data issues without ever failing.

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.11

What app or flow are you having the issue with?

CLEANUP - Admin | Sync Template v3 (Orphaned Makers)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

This flow is run when there is orphaned makers.

Anything else?

No response

Timber123456 commented 1 year ago

image

Jenefer-Monroe commented 1 year ago

That is an apply to each and so here is what it looks like when its called with no records image

From your screenshot I asee "InternalServiceError", is there any more information that this? Can the loop be expanded?

It also looks like you are calling the wrong table name, can you please click. CAn you please check to see if you have unmanaged layers on this flow?

Timber123456 commented 1 year ago

Thanks for the response. For some reason when I took my original screenshot yesterday it showed me the table logical name rather than the display name i.e. "Desktop flows" = admin_rpas. I have just confirmed again that there are no unmanaged layers. I cannot expand the loop to get further information. This is the screenshot taken again just now: image The raw outputs of List UI Flows of maker is: {"body":{"value":[]}}

Jenefer-Monroe commented 1 year ago

I'm not sure what to say. That seems like a product bug and one I've never seen. An empty call to an apply to each should not fail. CAn you check to see if there are unmanaged layers on the flow?

Timber123456 commented 1 year ago

There are definitely no unmanaged layers.

I agree it looks like a product bug (which I also have never seen before). It seems to occur consistently here (re-running the flow results in consistent failures). I guess the next step would be to report it through a support ticket. Thank you!

Jenefer-Monroe commented 1 year ago

I'll mark this as a product gap and keep it open. Please do let us know what you hear.