microsoft / coe-starter-kit

Other
720 stars 211 forks source link

[CoE Starter Kit - QUESTION] Cannot turn on some flows after the April upgrade #8525

Open JanetK12 opened 1 week ago

JanetK12 commented 1 week ago

Does this question already exist in our backlog?

What is your question?

Hello! After the CoE April upgrade, I was trying to turn on the Admin | Sync Template v4 (Business Process Flows), Admin | Sync Template v4 (PVA), Admin | Sync Template v4 (Model Driven Apps), Admin | Sync Template v4 (Desktop flows), Admin | Sync Template v4 (Driver), Admin | Sync Template v4 (Portals), Admin | Sync Template v4 (Solutions) flows as previously the v3 flows were turned on. However, this is the error I receive:

Flow client error returned with status code "BadRequest" and details "{"error":{"code":"XrmEnvironmentVariableAttributeNotFound","message":"Attribute 'value' was not found for environment variable 'admin_CoESystemUserID'."}}".

Could I ask how to solve it and turn on the flows? maybe there are more flows that currently are off because of the same issue, need to check that.

Thank you in advance!

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.29

What app or flow are you having the issue with?

Admin | Sync Template v4 (Business Process Flows), Admin | Sync Template v4 (PVA), Admin | Sync Template v4 (Model Driven Apps), Admin | Sync Template v4 (Desktop flows), Admin | Sync Template v4 (Driver), Admin | Sync Template v4 (Portals), Admin | Sync Template v4 (Solutions)

What method are you using to get inventory and telemetry?

None

AB#3654

Jenefer-Monroe commented 1 week ago

Hello, this is a new environment variable used to track the SYSTEM user tracked in the Coe Maker and User tables. It is populated in the Setup Wizard. Please boot the setup wizard and walk through the screens to populate it. It will also turn on the missing flows:

Use the setup wizard

Its highly recommended that you use the Setup Wizard to walk you through setup and upgrades. It will ensure all the new flows are turned on in the correct order, trigger things like population of the bookmarks screen and do other cleanup steps needed. You should do this both for upgrades and clean installs. To use it, first perform the import of the solution install or upgrade manually, then boot the app and walk through the screens. image image

JanetK12 commented 6 days ago

Hello, this is a new environment variable used to track the SYSTEM user tracked in the Coe Maker and User tables. It is populated in the Setup Wizard. Please boot the setup wizard and walk through the screens to populate it. It will also turn on the missing flows:

Use the setup wizard

Its highly recommended that you use the Setup Wizard to walk you through setup and upgrades. It will ensure all the new flows are turned on in the correct order, trigger things like population of the bookmarks screen and do other cleanup steps needed. You should do this both for upgrades and clean installs. To use it, first perform the import of the solution install or upgrade manually, then boot the app and walk through the screens. image image

Hello @Jenefer-Monroe ! Thank you very much for your help and answers! I will try to setup the wizard. Hope will work!

JanetK12 commented 6 days ago

@Jenefer-Monroe , I am sorry, but could I clarify some things to understand them in a right way?

1)When was the first time when the Setup Wizard was added to the Power Apps? I mean like a date or the coe release, just was interesting to know as seems that could not find it by myself. 2) Am I correct, that as for now I am on the april 2024 release, I can setup the wizard with this release? and that means that now I can proceed and already click to "play" on the "CoE Setup and Upgrade Wizard" app? 3) could I ask, what means "should do this both for upgrades and clean installs"? it will be inside this one "CoE Setup and Upgrade Wizard" app, right? or you meant something else? 4) when I opened the app, this is the error I see: image

could it be that some wizard flows need to be turn on first? or there is another reason?

5) Is there a way to use this wizard to see only what flows needs to be turn on/ turn off mandatory; to manage something as my issue that "the new environment variable used to track the SYSTEM user tracked in the Coe Maker and User tables. It is populated in the Setup Wizard" as this is the reason why my flows are turn off, etc., something like this... but so that setup wizard will not do the CoE upgrades automatically as I would like to do them manually? is that possible setup the app that way?

Thank you in advance!

Jenefer-Monroe commented 6 days ago

1)When was the first time when the Setup Wizard was added to the Power Apps? I mean like a date or the coe release, just was interesting to know as seems that could not find it by myself.

I'm not positive, but its been in there quite a while. Probably about 18 months I think.

2) Am I correct, that as for now I am on the april 2024 release, I can setup the wizard with this release? and that means that now I can proceed and already click to "play" on the "CoE Setup and Upgrade Wizard" app?

Sorry I dont quite follow your question. Yes you can use the setup wizard now and you should boot it after every upgrade and walk through the initial setup every time. It will make sure new envt vars are filled, new flows are turned on, etc.

3) could I ask, what means "should do this both for upgrades and clean installs"? it will be inside this one "CoE Setup and Upgrade Wizard" app, right? or you meant something else?

You should boot this app and walk the inital setup after every upgrade, or if you do a clean install in a new envt. It is used for both new installs and upgrades. Hope that provides the needed clarity.

4) when I opened the app, this is the error I see: could it be that some wizard flows need to be turn on first? or there is another reason?

5) Is there a way to use this wizard to see only what flows needs to be turn on/ turn off mandatory; to manage something as my issue that "the new environment variable used to track the SYSTEM user tracked in the Coe Maker and User tables. It is populated in the Setup Wizard" as this is the reason why my flows are turn off, etc., something like this... but so that setup wizard will not do the CoE upgrades automatically as I would like to do them manually? is that possible setup the app that way?

The setup wizard does not upgrade the solution file. You do that manually, and then boot the setup wizard once you've performed the upgrade manually.

Please let me know if this all made sense.

JanetK12 commented 6 days ago

1)When was the first time when the Setup Wizard was added to the Power Apps? I mean like a date or the coe release, just was interesting to know as seems that could not find it by myself.

I'm not positive, but its been in there quite a while. Probably about 18 months I think.

  1. Am I correct, that as for now I am on the april 2024 release, I can setup the wizard with this release? and that means that now I can proceed and already click to "play" on the "CoE Setup and Upgrade Wizard" app?

Sorry I dont quite follow your question. Yes you can use the setup wizard now and you should boot it after every upgrade and walk through the initial setup every time. It will make sure new envt vars are filled, new flows are turned on, etc.

  1. could I ask, what means "should do this both for upgrades and clean installs"? it will be inside this one "CoE Setup and Upgrade Wizard" app, right? or you meant something else?

You should boot this app and walk the inital setup after every upgrade, or if you do a clean install in a new envt. It is used for both new installs and upgrades. Hope that provides the needed clarity.

  1. when I opened the app, this is the error I see: could it be that some wizard flows need to be turn on first? or there is another reason?
  • What error message are you given in show details?
  • Are these flows turned on? They are supposed to ship turned on -- SetupWizard>CreateGroup -- SetupWizard>GetCurrentEnvironment -- SetupWizard>GetTenantID -- SetupWizard>GetUserDetails
  • Does it repro again if you reboot?
  1. Is there a way to use this wizard to see only what flows needs to be turn on/ turn off mandatory; to manage something as my issue that "the new environment variable used to track the SYSTEM user tracked in the Coe Maker and User tables. It is populated in the Setup Wizard" as this is the reason why my flows are turn off, etc., something like this... but so that setup wizard will not do the CoE upgrades automatically as I would like to do them manually? is that possible setup the app that way?

The setup wizard does not upgrade the solution file. You do that manually, and then boot the setup wizard once you've performed the upgrade manually.

Please let me know if this all made sense.

Thank you very much one more time @Jenefer-Monroe ! Now it is more clear! I will check the flows and test the app again to inform you whether the app is working now, or if no, what is the error message!

JanetK12 commented 5 days ago

Hello @Jenefer-Monroe! I turned on the flows that were turn off and tested the app again. However, unfortunately the same error shows up again, and if I click to "show details", it states that "Error Code: AppForbidden ... It looks like this app isn't compliant with the latest data loss prevention policies."

I am not sure whether the problem is with the DLP. Could it be like that? Because that is strange as we have the DLP that allows everything that is needed for our PROD environment. Or there are some specific connectors that are needed for this app to work?

Jenefer-Monroe commented 5 days ago

Yep that is the issue. Sounds like you have a DLP policy blocking the kit from functioning. You'll need to go find the DLPs that impact your envt and ensure they support the kits needed connections:

Azure Resource Manager HTTP HTTP with Microsoft Entra ID (preauthorized) Microsoft Dataverse Microsoft Teams Office 365 Groups Office 365 Outlook Office 365 Users Power Automate for Admins Power Automate Management Power Platform for Admins Power Platform for Admins V2 Power Query Dataflows Power Apps for Makers Power Apps for Admins RSS

JanetK12 commented 4 days ago

Hello @Jenefer-Monroe ! I have checked everything that is required, and I can say that:

I tried to click to the edit button, then it asks me to configure the connectors (when I click "play", it doesn't ask me to configure the connectors), and already something appears that needs to be inside the wizard app, but also I see these errors appears on the first screen:

image

not sure why exactly, as all the connections that were asked me when opening the "edit" view I configured successfully.

Could it be that the app shows me dlp error because it also do not ask me to configure the connectors/connections? However, I also have all the needed connections in business in dlp. I am confused here. Do you have thoughts on that? Or maybe I need manually add connections manually here to all these connectors? image image

Jenefer-Monroe commented 4 days ago

Are you logged in as a different user identity than setup the kit?

JanetK12 commented 4 days ago

Are you logged in as a different user identity than setup the kit?

No, I use the same account right now as the one I used for the upgrade of the April release (and previos releases) .

Jenefer-Monroe commented 4 days ago

I dont know what happened then. Seems like the connections you used to upgrade are broken now. Please go look at your connections, are their broken ones? If so please fix them image

Then go to the connection references in the default solution. Check each one, do they all show the user identity you are trying to open the app with? image

JanetK12 commented 4 days ago

I dont know what happened then. Seems like the connections you used to upgrade are broken now. Please go look at your connections, are their broken ones? If so please fix them image

Then go to the connection references in the default solution. Check each one, do they all show the user identity you are trying to open the app with? image

I checked everything. I saw that some of the connection references were connected to some other connections. I checked them But I am checking the app now and still the same error with the DLP if I open through the "play" button, and the same 6 notifications when I open the "edit" view (((

JanetK12 commented 4 days ago

ohh, actually something appeared now! Now the app is opened when I click to the "play" button! Finally! Thank you!! The only thing - these 6 notifications still are shown when I open the "edit" mode of the app. Do not know whether it will cause the problem or I can just leave these notifications as they are. Also, this suddenly appeared on the main Power Apps screen : image

not sure whether it is ok or not.

Jenefer-Monroe commented 4 days ago

those are just letting you know that those flows are being refreshed, likely due to the connections or env vars being updated. Sounds like you are being unblocked now ywah

JanetK12 commented 4 days ago

those are just letting you know that those flows are being refreshed, likely due to the connections or env vars being updated. Sounds like you are being unblocked now ywah

yaay, Thank you very much!! Hope the set up will be successful

JanetK12 commented 3 days ago

Hi @Jenefer-Monroe Just a small question. Could the Wizard app work without these three connectors?

Jenefer-Monroe commented 2 days ago

I believe these three connectors are not needed today for the initial setup of the kit with the Setup Wizard. However, they are something you will need to allow in the long run or you will have unreliable results.