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

Community site session details

Session Id : f9tqh54praokGd6O6PHL20
Power Automate - General Discussion
Unanswered

List Rows Present In Table - WAC Access Token Error

Like (0) ShareShare
ReportReport
Posted on 16 Aug 2019 10:39:21 by 99

I had a couple of Flows on a work account that used the old Excel connector and Get Rows action. I am trying to port these Flows across to another account using packages but I can't validate the Excel connector - understandable as it's been removed.

 

As I was unable to import the packages due to this, I had to build them from scratch, using the List Rows Present In A Table action for Excel Online (Business). However, I am getting the below error when running the Flow:

 

The request is forbidden by Graph API. Error code is 'AccessDenied'. Error message is 'Could not obtain a WAC access token.'.

Does anyone know why this is?

  • tlevine Profile Picture
    230 on 30 Dec 2020 at 19:04:26
    Re: List Rows Present In Table - WAC Access Token Error

    I am facing this issue once the file is placed into the sharepoint. After I check out the file, I get the error:

     

    The request is forbidden by Graph API. Error code is 'AccessDenied'. Error message is 'Could not obtain a WAC access token.'

     

    Any thoughts on how I can resolve? Thanks

  • Community Power Platform Member Profile Picture
    on 01 Oct 2020 at 08:43:29
    Re: List Rows Present In Table - WAC Access Token Error

    You need to place you excel on the sharepoint online.

    Exemple :

     

    I want to create a list from an excel for my team Demo.

    So i need to place my excel file on this SPO

     

    And boum it's working

    excel file.png

  • NRSS Profile Picture
    2 on 15 May 2020 at 18:05:04
    Re: List Rows Present In Table - WAC Access Token Error

    I am encountering the same error as well. I am fairly new to flow and I don't know where the problem is so I'm finding a hard time figuring out a workaround.

     

    When I use the Get workbooks action with the file picker to select the File input field, the test runs successfully. But when I use a variable (i.e., File Locator that you can get by using the Find files in folder by path action) to indicate the File input field in Get workbooks, the test fails and I get the following error: 

     

    The request is forbidden by Graph API. Error code is 'AccessDenied'. Error message is 'Could not obtain a WAC access token.'.

     

    In both runs the Get workbooks action results in the exact same output, but using File locator gives me an error. Here is the output of Get workbooks for both runs:

     

    Successful Run:

    [
    {
    "@odata.id": "/drives('b%21lLDFqemIr06UN1fpemeBW4pjH_pMHatPibSFBLykJZ-pAx2Q1ks4Tb0csQLRQexe')/items('01CLEBXIKCMBVJ2LC2ERFKVIABQ6GNOPHY')/workbook/worksheets(%27%7B00000000-0001-0000-0000-000000000000%7D%27)",
    "id": "{00000000-0001-0000-0000-000000000000}",
    "name": "Tasks",
    "position": 0,
    "visibility": "Visible"
    }
    ]

    Failed Run:

    [
    {
    "@odata.id": "/drives('b%21lLDFqemIr06UN1fpemeBW4pjH_pMHatPibSFBLykJZ-pAx2Q1ks4Tb0csQLRQexe')/items('01CLEBXIKCMBVJ2LC2ERFKVIABQ6GNOPHY')/workbook/worksheets(%27%7B00000000-0001-0000-0000-000000000000%7D%27)",
    "id": "{00000000-0001-0000-0000-000000000000}",
    "name": "Tasks",
    "position": 0,
    "visibility": "Visible"
    }
    ]

     

    Does anyone have a solution for this? Is there something obvious that I'm missing?

  • NikeshN Profile Picture
    6 on 06 May 2020 at 16:31:40
    Re: List Rows Present In Table - WAC Access Token Error

    I encountered this same problem.

    Flow was able to read from the excel file once but when I ran the flow again with the same file in the folder it failed.

     

    The request is forbidden by Graph API. Error code is 'AccessDenied'. Error message is 'Could not obtain a WAC access token

     

    Did you find a solution for this?

  • ChrisBenJohnson Profile Picture
    99 on 19 Aug 2019 at 09:13:35
    Re: List Rows Present In Table - WAC Access Token Error

    Hi @v-bacao-msft 

     

    It's definitely .xlsx.

     

    The Flow detects a new file saved in a SharePoint shared library, moves it to OneDrive for processing, and iterates the rows in a table.

     

    Everything is working fine except for List Rows Present In A Table.

  • v-bacao-msft Profile Picture
    on 19 Aug 2019 at 00:53:38
    Re: List Rows Present In Table - WAC Access Token Error

     

    Hi @ChrisBenJohnson ,

     

    Please make sure that the extension of the Excel file you specify is .xlsx and it seems that .xls are not supported formats.

    Please check this similar thread and see if it helps:

    https://stackoverflow.com/questions/50014639/403-forbidden-on-reading-csv-file-in-onedrive

     

    Best Regards,

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete