PowerPlatform-DataverseServiceClient icon indicating copy to clipboard operation
PowerPlatform-DataverseServiceClient copied to clipboard

Better messaging for cases when organization in "admin-only" mode

Open svejdo1 opened this issue 4 years ago • 1 comments

When organization is in admin-only mode the response we get is a little bit cryptic. I would expect some distinct message

Microsoft.PowerPlatform.Dataverse.Client.Utils.DataverseConnectionException: Failed to connect to Dataverse System.AggregateException: One or more errors occurred. (The HTTP request was forbidden with client authentication scheme 'Anonymous'.) System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. at Microsoft.PowerPlatform.Dataverse.Client.ConnectionService.InitServiceAsync()

svejdo1 avatar May 31 '21 12:05 svejdo1

Yes, we have a backlog item with the API team to help provide a bit more context as to what is going on. I will ask the team to check into where that is in the queue.

Once the API team adds in server side support for it, it should just appear as the exception explanation

MattB-msft avatar May 31 '21 22:05 MattB-msft

Folks, we have a partial solution to this problem delivered onto our servers now and are bringing those updates into the Dataverse ServiceClient in the next update (post 1.0.26)

In the next Client release, I will show up as either a Dataverse connection exception or an Operation Exception with a message indicating admin mode,

This is a partial fix right now, does not show correctly during operation, IE after a connection the server is placed into admin mode. The full fix has been identified and is being worked.

We will keep this open until we have the full fix delivered

MattB-msft avatar Jan 25 '23 20:01 MattB-msft

This should now be fixed correctly in the platform all up.

MattB-msft avatar Jul 20 '23 17:07 MattB-msft