microsoft / coe-starter-kit

Other
743 stars 219 forks source link

[CoE Starter Kit - BUG] Power Platform Request Center Error #1101

Closed medicineshow closed 2 years ago

medicineshow commented 3 years ago

Describe the issue

When a user opens the PP Request Center application, they receive the following error message across the top: PowerAppsforMakers.GetConnectors failed: { "error": { "code": "MissingEnvironmentFilter", "message": "The environment filter must be set." } }

Expected Behavior

The application to open without errors

What solution are you experiencing the issue with?

Core

What solution version are you using?

2.75

What app or flow are you having the issue with?

Power Platform Request Center - Canvas App

Steps To Reproduce

No response

Anything else?

No response

medicineshow commented 3 years ago

Hi, do you have an update on this issue for me please?

manuelap-msft commented 3 years ago

This is fixed for the September release, which we're aiming to have out this week.

mikefactorial commented 3 years ago

@medicineshow This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.

medicineshow commented 3 years ago

I have updated the version in Teams and still get the same error.

Jenefer-Monroe commented 3 years ago

Re-opening for Denise

manuelap-msft commented 3 years ago

I don't repo this issue in Teams. You may have unmanaged solution layers that prevented you from receiving the latest upgrade, please see https://docs.microsoft.com/en-us/power-platform/guidance/coe/setup#installing-updates on how to check for that.

medicineshow commented 3 years ago

The instructions for installing updates are not relevant to a Teams install. There is no setting for solution layers in Teams installed version. Please advise.

manuelap-msft commented 3 years ago

You will have to go to flow.microsoft.com > select your Teams environment > follow above steps to see solution layers

medicineshow commented 3 years ago

I am fairly sure that I do not have any unmanaged solution layers as this was installed, out of the box with no changes. Is there a way to check without going in to each flow?

medicineshow commented 3 years ago

I have also just noted that this has also happened in the production installation. And there are no unmanaged layers there.

manuelap-msft commented 3 years ago

As you're seeing the issue with the Power Platform Request Center app, you don't need to check the flows for unmanaged layers. Just the app that you're seeing issues with.

Please send screenshots of where you're experiencing the issue, and what the error looks like and when it happens (what you click etc). We don't repo this in either Teams or Production.

medicineshow commented 3 years ago

Apologies. There was an unmanaged layer. I have removed it but still get the error in both Production version and Teams. Do you think it might need a while to replicate around the microsoft cloud? Also not sure how it became an unmanaged layer as I made no changes. image

manuelap-msft commented 3 years ago

Hello,

an unmanaged layer will have prevented you from receiving the latest upgrades when you imported the latest version. You will have to perform the upgrade again to receive the latest version. Just removing the unmanaged layer won't mean you have the upgrade.

If you select Edit on the app, that will create an unmanaged layer - so you may have opened the app in the editor.

Thank you Manuela

medicineshow commented 3 years ago

OK, I have removed the unmanaged layer, re-imported the solution, but the same error is occurring when I open the app.

manuelap-msft commented 3 years ago

Can you share screenshots of

medicineshow commented 3 years ago

This is production: image

image

image

manuelap-msft commented 3 years ago

The latest version is 3.11 for Core, and 2.9 for Core for Teams. You can download them from here: https://github.com/microsoft/coe-starter-kit/releases/tag/CoEStarterKit-September2021

medicineshow commented 3 years ago

OK, that changed since last week's september release. I will download and try that.

medicineshow commented 3 years ago

Is there a way to see if you have any unmanaged layers without having to check each individual component?

medicineshow commented 3 years ago

I thought that at straight upgrade would have been problem free...

image

manuelap-msft commented 3 years ago

It looks like you may have unmanaged layers on the Set App Permission app as well. Try using Update instead of Upgrade when you perform the Import: image

Further suggestions to try when the Upgrade fails are listed here for you to read up on #1130

medicineshow commented 3 years ago

I have upgraded in the Teams version and I still get the error that an environment filter is missing when I open the app

medicineshow commented 3 years ago

I am still getting the same error in both the Teams version and production. I have now got version 3.11 in production. PowerAppsforMakers.GetConnectors failed: { "error": { "code": "MissingEnvironmentFilter", "message": "The environment filter must be set." } }

medicineshow commented 3 years ago

Hi, do you have any more suggestions for me please as this error is still showing. Worth noting that when a Power Platform admin opens the app, the error message does not appear

manuelap-msft commented 3 years ago

We are still looking into this; please note the CoE Starter Kit is not a supported set of tools and we can not provide an SLA for fixing bugs.

manuelap-msft commented 3 years ago

If you are happy to edit the app yourself, can you try the following:

  1. Open the app in edit mode
  2. Navigate to the scr_Home
  3. Find the btn_refresh button image
  4. Scroll down to where it says / Get all environments in tenant /
  5. Comment out the line ClearCollect(col_environments, PowerPlatformforAdmins.GetAdminEnvironment().value); by adding // in front
  6. Add in this code in that place
    ClearCollect(col_makerEnvironments, PowerAppsforMakers.GetEnvironments().value);
    UpdateContext({ varDefaultEnvironment : Coalesce( LookUp(col_makerEnvironments, properties.isDefault), First(col_makerEnvironments)) });

This block should look like this now image

If you're happy to try this, let us know how you get on and if that resolved it for your user. If you can't try this yourself, we'll continue investigating and testing our end.

PS: Note that editing the app will introduce an unmanaged layer that you will have to remove next time you upgrade.

medicineshow commented 3 years ago

This appears to have worked :) worth noting that when I edited the following was the current setting which had the line UpdateContext already but slightly different to the one you had supplied. So I removed it and added the one you sent.: / Get all environments in tenant / ClearCollect(col_environments, PowerPlatformforAdmins.GetAdminEnvironment().value); UpdateContext({ varDefaultEnvironment : Coalesce( LookUp(col_environments, properties.isDefault), First(col_environments)) });

It now looks like this: / Get all environments in tenant / //ClearCollect(col_environments, PowerPlatformforAdmins.GetAdminEnvironment().value); //UpdateContext({ varDefaultEnvironment : Coalesce( LookUp(col_environments, properties.isDefault), First(col_environments)) }); ClearCollect(col_makerEnvironments, PowerAppsforMakers.GetEnvironments().value); UpdateContext({ varDefaultEnvironment : Coalesce( LookUp(col_makerEnvironments, properties.isDefault), First(col_makerEnvironments)) });

manuelap-msft commented 3 years ago

Awesome, thanks for checking this so quickly!

I made the changes on our end as well, and we can hopefully include them in the October release if we don't stumble over anything during further testing. Please do loop back here if your users now experience any other issues with the app!

Thanks for your patience as we work through this bug! Manuela

mikefactorial commented 2 years ago

@medicineshow This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.