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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The dynamic operation ...
Power Automate
Answered

The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'Unauthorized'. This may indicate invalid input parameters

(0) ShareShare
ReportReport
Posted on by 3,506

I have exported a solution which 5 power automate flows from one tenant as un-managed solution. then i import it inside another tenant, but i got this error/warning:-

 

Solution "Certification" imported successfully with warnings: Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'MultipleErrorsOccurred' and message 'The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'Unauthorized'. This may indicate invalid input parameters. Error response: {\r\n \"error_description\": \"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown.\"\r\n};The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'Unauthorized'. This may indicate invalid input parameters. Error response: {\r\n \"error_description\": \"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown.\"\r\n}'."}}".

 

johnjohn123_0-1684703073987.png

 

 

 

now i checked the exported flows and they are valid.. but not sure why i got this warning?

 

Thanks

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @johnjohn123,


    The GetTable typically refers to a dropdown within a SharePoint action. This could refer to a list/library it cannot find, but it also can refer to a view which doesn't exist in the target environment. In other words, this error can have different root causes and it is hard to tell right now, what is causing this.

     

    Can you share a bit more details what you type of SharePoint connector actions you are using in that solution? Are you for example using environment variables (of type source) for the site and list/library selections in the configuration of those actions?

     

    Below are two examples of the same type of issue, which might help troubleshooting?

    https://sharepains.com/2021/09/16/turn-on-solution-based-flow-power-automate/

    https://powerusers.microsoft.com/t5/General-Power-Automate/SharePoint-GetTable-failed-with-status-code-NotFound-List-View/td-p/1828698

     

  • johnjohn123 Profile Picture
    3,506 on at

    @Expiscornovus yes the environment variables refer to a SharePoint site and SharePoint lists and libraries... 

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @johnjohn123,

     

    Thanks for confirming you are using environment variables of the date source type. I assume you have updated the current values of those environment variables to point to the new sites and lists in the new tenant?

     

    What type of SharePoint actions are you using in those 5 flows. Get Items, Send an HTTP request to SharePoint, etc.?

  • johnjohn123 Profile Picture
    3,506 on at

    @Expiscornovus  Yes i am using all these actions ; Get Items, Send an HTTP request to SharePoint, etc.?

     

    and when i imported the solution on the destination tenant, i were not asked to provide values for the environment variables

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @johnjohn123,

     

    I believe that happens when you not remove the values before exporting. I think the docs highlight this over here:

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables#enter-new-values-while-importing-solutions

     

  • johnjohn123 Profile Picture
    3,506 on at

    @Expiscornovus yes i did not remove them before the export.. Also if I remove the environment variables values will this break the source solution ?

     

  • Verified answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @johnjohn123,

     

    Follow the steps below (with the remove from this solution option for the current value field). In that case the value should remain in the dev environment, but removed from your exported solution:

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables#how-do-i-remove-a-value-from-an-environment-variable

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard