cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Some users getting authentication token errors

I have built a canvas app that connects to a couple of different office 365 products - sharepoint, groups, etc. Most people are using the app just fine. A couple of users have reported an odd error, though. When they load the app, they get the following error:

Office365Groups.ListGroupMembers failed: {"error": {"code": "InvalidAuthenticationToken", "message":"Access token is empty.", "innerError": {"request-id":"{guid}", "date":"{date}"}}}

 

This error occurred the first time they loaded the app and hasn't resolved yet. Can somebody please help me understand what is going on here? I'm unable to find anything useful by googling the error message.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Some users getting authentication token errors

The affected user was able to log in using a different browser, so the immediate issue is resolved.

 

To be frank, I'm incredibly frustrated with the app publishing experience. It seems ridiculous to me that every single end user of an app that I make has to make their own Office 365 connector, when the entire point of an app is to do things in the background on their behalf. Other than the people in the IT department who are making and maintaining these apps, none of the other users even know that the make.powerapps.com website exists, and would need specific instruction on how to remove and recreate a connection. This isn't a sustainable method of fixing problems.

 

Is there a way to allow all connections to certain backend tools to go through a shared service account? 

View solution in original post

4 REPLIES 4
Super User II
Super User II

Re: Some users getting authentication token errors

@dpana 

 

  1. Try having the users that are getting this error to go to make.powerapps.com -> Data -> Connections -> Find the O365 or relevant Connection -> Press Ellipses -> From Dropdown, select "Delete" to delete the connection. Then relaunch the app. They should be prompted for the permission to allow again as if they are first time users of the app - maybe this could help.
  2.  Try having the users that are getting this error to attempt from another browser, other than the one tried at first (Edge, Firefox, Chrome etc.) and have user clear all cache and cookies as well and retry, perhaps in combination with #1 as well (i.e. try this and then #1).
  3. Try remove data source, save and publish the app, then re-add data source and then again re-save then re-publish the app, then after that, have users try #2, then #1, and see if it helps.
  4. Try to have the users attempt from different device that was not used before, especially a device using the PowerApps app if possible. If they have mobile device not used before, try to have them use that - and if possible, using the PowerApps App (although the Chrome mobile browser may be fine too). Also, if they have mobile device and did not try it there, ask them to download PowerApps app from app store then sign in through there - do they still get the error through there?
  5. If any of the above did not help, you can try opening ticket from https://admin.powerplatform.microsoft.com/ to get help from Microsoft on this.
Highlighted
Community Support
Community Support

Re: Some users getting authentication token errors

Hi @dpana ,

Do these users have created a proper connection to Office 365 Groups connector when they load the app first time?

Do these users have proper Office 365 license to access Office 365 Groups connector?

 

Please consider ask your end users (who have this issue) re-create a new connection to Office 365 Groups connector with their proper credentials when they run your app, then check if the issue is solved.

 

In addition, also please consider turn on the "Formula-level error management" option within Advanced settings of App settings of your app, then re-publish your app, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Resolver I
Resolver I

Re: Some users getting authentication token errors

The affected user was able to log in using a different browser, so the immediate issue is resolved.

 

To be frank, I'm incredibly frustrated with the app publishing experience. It seems ridiculous to me that every single end user of an app that I make has to make their own Office 365 connector, when the entire point of an app is to do things in the background on their behalf. Other than the people in the IT department who are making and maintaining these apps, none of the other users even know that the make.powerapps.com website exists, and would need specific instruction on how to remove and recreate a connection. This isn't a sustainable method of fixing problems.

 

Is there a way to allow all connections to certain backend tools to go through a shared service account? 

View solution in original post

Highlighted
Super User II
Super User II

Re: Some users getting authentication token errors

@dpana 

 

The Power Platform is very powerful and is enabling you to things with low to no custom code that otherwise may need a lot of it - that includes for integrating the services with the Connector.

 

Recreating a connection is a workaround and small price to pay, and usually it should not be needed to recreate the connector.

 

First, we recommend Chrome - also if the Chrome version is older than 78, there is more likely to be problems because some features need the newest version of Chrome, especially in the editor.

 

Second, if there are imperfections, Microsoft may be working on ironing them out so that even this small price to pay doesn't exist anymore - currently it does not often exist and it could be due to some system configuration difference - we encounter this as well regularly but we prefer to use the Microsoft platforms over potential others that may have even much more errors, much higher price, and much more work to maintain.

 

We do concur with your thinking that it would be nice if there could be zero work of any kind, and perhaps Microsoft Power Platform and other Microsoft products are already the closest and getting closer by the minute.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,822)