microsoft / coe-starter-kit

Other
747 stars 219 forks source link

[CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed #8816

Closed DAWC21GOA closed 1 month ago

DAWC21GOA commented 1 month ago

Does this bug already exist in our backlog?

Describe the issue

Noob warning!

Flow has not been successful since installation. The action 'List_Environment_Capacity_information" Times out after 3 hours and fails with "Action 'List_Environment_Capacity_information' failed: Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 207"

The connections to the dataverse appear to be ok.

Expected Behavior

A connection is established and the required capacity data is retrieved.

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.32.2

What app or flow are you having the issue with?

Admin | Capacity Alerts Flow

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

Unknown, has not worked since installation a year ago or so....

Anything else?

image image

Jenefer-Monroe commented 1 month ago

Hello. Welcome to CoE!

Is the user identified here a user (or shared user) or a service principal? image

DAWC21GOA commented 1 month ago

Hello, It is a service account that COE was installed with.

Classification: Protected A

From: Jenefer Monroe @.> Sent: Thursday, August 15, 2024 2:17 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Hello. Welcome to CoE!

Is the user identified here a user (or shared user) or a service principal? image.png (view on web)https://github.com/user-attachments/assets/3dc2d722-d924-43aa-81d7-65a88b7312f5

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2292152537, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YQGGM5WYJ5OYAO66LTZRUEC7AVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGE2TENJTG4. You are receiving this because you authored the thread.Message ID: @.**@.>>

Jenefer-Monroe commented 1 month ago

Can you please clarify, do you mean a service account (a shared user account) or a service principle (an app registration)?

DAWC21GOA commented 1 month ago

It is a Shared user account that has the Power Platform Administrator Role Permanently assigned.

Classification: Protected A

From: Jenefer Monroe @.> Sent: Friday, August 16, 2024 8:43 AM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Can you please clarify, do you mean a service account (a shared user account) or a service principle (an app registration)?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2293641139, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YVPGPCP7TSYNJXKU6LZRYFX3AVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGY2DCMJTHE. You are receiving this because you authored the thread.Message ID: @.***>

Jenefer-Monroe commented 1 month ago

Is the identity running the flow a sys admin in the coe environment?

How check to see a users environment permissions

Browse to https://admin.powerplatform.microsoft.com/environments/ > find your environment > Settings > Users + permissions > Users image image image Find your user > Click to see their settings > are they enabled? What role do they have? image image

DAWC21GOA commented 1 month ago

Account has System Administrator, Approvals user and Basic User Roles. The account is enabled.

@.***

Classification: Protected A

From: Jenefer Monroe @.> Sent: Friday, August 16, 2024 11:41 AM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Is the identity running the flow a sys admin in the coe environment?

How check to see a users environment permissions

Browse to https://admin.powerplatform.microsoft.com/environments/ > find your environment > Settings > Users + permissions > Users image.png (view on web)https://github.com/user-attachments/assets/0ee1dadd-9dc5-487a-8b7a-a1cce0843094 image.png (view on web)https://github.com/user-attachments/assets/35aa7aae-8162-43cd-8101-6678b3792b7a image.png (view on web)https://github.com/user-attachments/assets/425bf786-31b9-462e-9c92-650584f41f56 Find your user > Click to see their settings > are they enabled? What role do they have? image.png (view on web)https://github.com/user-attachments/assets/a8e17a78-1ee7-416e-b974-6d21fbc298f3 image.png (view on web)https://github.com/user-attachments/assets/ea312158-6170-461b-b814-54da4bac6f85

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2293904759, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YXYL7R72HL43RKBDHTZRY2UHAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTHEYDINZVHE. You are receiving this because you authored the thread.Message ID: @.**@.>>

Jenefer-Monroe commented 1 month ago

Are other flows running and passing? ex: Admin | Sync Template v4 (Driver)

DAWC21GOA commented 1 month ago

Yes, It has been running successfully...

@.***

Classification: Protected A

From: Jenefer Monroe @.> Sent: Friday, August 16, 2024 1:30 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Are other flows running and passing? ex: Admin | Sync Template v4 (Driver)

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2294064033, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YUMWN5LC2IVPOWKIUDZRZHKRAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGA3DIMBTGM. You are receiving this because you authored the thread.Message ID: @.***>

Jenefer-Monroe commented 1 month ago

I'm really not sure then. It appears to be some product internal error unrelated to the kit. Perhaps see if there are unmanaged layers on the flow?

DAWC21GOA commented 1 month ago

There does not appear to be any unmanaged layers... @.***

Classification: Protected A

From: Jenefer Monroe @.> Sent: Friday, August 16, 2024 2:12 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

I'm really not sure then. It appears to be some product internal error unrelated to the kit. Perhaps see if there are unmanaged layers on the flow?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2294166338, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YV75J6Z7I5VA7CYVYDZRZMKZAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGE3DMMZTHA. You are receiving this because you authored the thread.Message ID: @.***>

Jenefer-Monroe commented 1 month ago

What is the type and region of your environment?

DAWC21GOA commented 1 month ago

Production - Canada

Classification: Protected A

From: Jenefer Monroe @.> Sent: Friday, August 16, 2024 5:20 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

What is the type and region of your environment?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2294437736, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YTYNMI6HJLP6PE4HZ3ZR2CLZAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGQZTONZTGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

Jenefer-Monroe commented 1 month ago

Sorry I'm just out of ideas here. I just tested early release environments and Canada and this is working. It appears that there is something wrong with the user or the connection, or perhaps the environment except that you say this users credentials work in the rest of the kit. I would probably try re-creating the connections to dataverse but I'm just throwing darts at this point. I suggest you give it a try.

DAWC21GOA commented 1 month ago

Ok, deleted and re-created connections and it still fails. I have another application that is accessing the environments table using the same account and it works...

Classification: Protected A

From: Jenefer Monroe @.> Sent: Monday, August 19, 2024 8:08 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Sorry I'm just out of ideas here. I just tested early release environments and Canada and this is working. It appears that there is something wrong with the user or the connection, or perhaps the environment except that you say this users credentials work in the rest of the kit. I would probably try re-creating the connections to dataverse but I'm just throwing darts at this point. I suggest you give it a try.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2297828134, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YQVDQZPSB7DS53CFZTZSKQJVAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJXHAZDQMJTGQ. You are receiving this because you authored the thread.Message ID: @.***>

Jenefer-Monroe commented 1 month ago

Sorry I'm just not sure how to help then. This is clearly a product bug unrelated to the kit, you may need to get product support.

DAWC21GOA commented 1 month ago

I had tried that, and they directed me to the GIthub side of it… ☹

Classification: Protected A

From: Jenefer Monroe @.> Sent: Wednesday, August 21, 2024 11:38 AM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Sorry I'm just not sure how to help then. This is clearly a product bug unrelated to the kit, you may need to get product support.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2302623453, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YXICNXAZRZCDIYSAJDZSTF7NAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSGYZDGNBVGM. You are receiving this because you authored the thread.Message ID: @.**@.>>

Jenefer-Monroe commented 1 month ago

Yes I'm sorry they did that. The error message itself clearly marks this as a product issue, they should not have pointed you here.

Perhaps if you delete the actions in that flow entirely, and then upgrade the kit, and remove the unmanaged layer. The August release is available now and has some important features.

DAWC21GOA commented 1 month ago

Ok, We'll give that a try!

Classification: Protected A


From: Jenefer Monroe @.> Sent: Wednesday, August 21, 2024 12:04:02 PM To: microsoft/coe-starter-kit @.> Cc: Derek Checora @.>; Author @.> Subject: Re: [microsoft/coe-starter-kit] [CoE Starter Kit - BUG] Admin | Capacity Alerts Flow fails to complete - 'List_Environment_Capacity_information' failed (Issue #8816)

CAUTION: This email has been sent from an external source. Treat hyperlinks and attachments in this email with care.

Yes I'm sorry they did that. The error message itself clearly marks this as a product issue, they should not have pointed you here.

Perhaps if you delete the actions in that flow entirely, and then upgrade the kit, and remove the unmanaged layer. The August release is available now and has some important features.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/coe-starter-kit/issues/8816#issuecomment-2302667637, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKRK4YSR3FYVH3HMI67OWXLZSTJBFAVCNFSM6AAAAABMSQAG3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSGY3DONRTG4. You are receiving this because you authored the thread.Message ID: @.***>

Jenefer-Monroe commented 1 month ago

closing out as no further action for starter kit team