Hello Pros,
My PowerApp Canvas that connected to Dataverse has recently renewed a license and not sure why, the CanvasApp in Editor mode or in Play mode occasionally failing to retrive data, error reported "Error when trying to retrieve data from the network". However this error is NOT seen on the mobile client.
Digging a bit deeper in Monitor - on 'GetRows' and 'GetMoreRows' messages, it will encounter exception "Invalid access token would be returned" with an inner exception of "The remote name could not be resolved: 'login.windows.net'"
The 'Patch()' will also fail every time.
It might be related to something fundamental in canvasApp or related to recent environment license renewal, not sure how it happened, it just happened within 24 hours (May 6th, 2022, Toronto, Canada)
Please Help!!
----------------------
Have referred to an earlier thread, disabled the windows defender, it didnt get any better.
----------------------
Tried the Nslookup from local machine:
C:\Users\aa>nslookup login.windows.net
Server: mynetwork
Address: 192.168.2.1
Non-authoritative answer:
Name: www.tm.a.prd.aadg.akadns.net
Addresses: 40.126.28.19
40.126.28.11
40.126.28.23
40.126.28.13
40.126.28.12
40.126.7.35
40.126.28.20
40.126.28.18
Aliases: login.windows.net
a.privatelink.msidentity.com
prda.aadg.msidentity.com
----------------------
Below is the Monitor log
"body": {
"_error": {
"Code": "0x80040216",
"Description": "Invalid access token would be returned - expiration is in the past. See InnerException for last exception acquiring token.",
"DisplayText": "An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support.",
"ErrorCode": -2147220970,
"RedirectToEdit": false,
"SerializedEntity": "",
"SerializedException": "System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Invalid access token would be returned - expiration is in the past. See InnerException for last exception acquiring token. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: Invalid access token would be returned - expiration is in the past. See InnerException for last exception acquiring token.\r\nTimeStamp: 2022-05-07T04:30:48.1415790Z\r\n--\r\nException details: \r\nErrorCode: 0x80040216\r\nMessage: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'login.windows.net'\r\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +0x111\r\n at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) +0xc\r\n --- End of inner exception stack trace ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +0x28\r\n at Microsoft.Identity.Client.Platforms.net45.Http.DnsSensitiveClientHandler.<SendAsync>d__2.MoveNext() +0x89\r\n--- End of stack trace from previous location where exception was ...).",
"Title": "Unexpected Error"
}