web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App failed to r...
Power Apps
Unanswered

Canvas App failed to retrieve data - Error when trying to retrieve data from the network - Invalid access token would be returned - The remote name could not be resolved: login.windows.net

(0) ShareShare
ReportReport
Posted on by
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"
        }
Categories:
I have the same question (0)
  • Veekoh Profile Picture
    2 on at

    Hi, 

    I have the same kind of issue.

     

    For me 85% of user can have access to the app but there is still a 15% of users that cant do nothing do the error to retrieve data from the network. -> the error starts at GetRow. 

    Did you find any solutions?

     

    Thanks,

  • Simona Bushevska Profile Picture
    58 on at

    Hello,

    Have you find any solution to this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard