cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ak1
New Member

Error Header 'x-ms-apim-tokens' not found when listing files in a folder using onedrive connector

My flow is extremly simple, I have a manual trigger which list all files in a folder using onedrive connector.

 

There are 7000+ files in the folder so I have turned pagination on. The settings can be seen below

 

If I turn the pagination off it works and lists 20 files. If I turn it on I get the error below

 

 

Does anybody know where am I going wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
ak2
New Member

Re: Error Header 'x-ms-apim-tokens' not found when listing files in a folder using onedrive connecto

Hi Kris,

 

Thank you for such a detailed response. 

 

My flow configuration is as follows, followed by the settings for listing the files

 

 

 

Please consider take a try to remove this action and re-add it again to check if the issue is solved.

Did not work 😞

 

In addition, please also take a try to re-create a new connection to this connector and try the action again on your side. 

Did not work 😞

 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/quot-x-ms-apim-tokens-quot-header-was-not-found/td-p/29306

The solution here was just to delete and try again which I've already done

 

If the folder has less than 20 items then it works fine. So I'm assuming the error is only there when pagination is there.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Re: Error Header 'x-ms-apim-tokens' not found when listing files in a folder using onedrive connecto

Hi @ak1,

 

Could you please share a screenshot of your flow's configuration?

 

I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:1.JPG

 

2.JPG

Note: I have enabled the Pagination option within the "List files in folder" action.

 

The flow works successfully as below:3.JPG

 

Please consider take a try to remove this action and re-add it again to check if the issue is solved. In addition, please also take a try to re-create a new connection to this connector and try the action again on your side. 

 

The user @DanielNunes has faced same issue with you, please check the response within the following thread:

https://powerusers.microsoft.com/t5/I-Found-A-Bug/quot-x-ms-apim-tokens-quot-header-was-not-found/td...

 

More details about the Pagination option within settings, please check the following article:

https://flow.microsoft.com/en-us/blog/four-connector-action-settings/

 

 

Best regards,

Kris

 

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.
ak2
New Member

Re: Error Header 'x-ms-apim-tokens' not found when listing files in a folder using onedrive connecto

Hi Kris,

 

Thank you for such a detailed response. 

 

My flow configuration is as follows, followed by the settings for listing the files

 

 

 

Please consider take a try to remove this action and re-add it again to check if the issue is solved.

Did not work 😞

 

In addition, please also take a try to re-create a new connection to this connector and try the action again on your side. 

Did not work 😞

 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/quot-x-ms-apim-tokens-quot-header-was-not-found/td-p/29306

The solution here was just to delete and try again which I've already done

 

If the folder has less than 20 items then it works fine. So I'm assuming the error is only there when pagination is there.

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,101)