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 / Registration error in ...
Power Apps
Unanswered

Registration error in adding Flow to Powerapps

(0) ShareShare
ReportReport
Posted on by 2

Hi!

 

i'm having problems with flow registration from powerapps studio.

 

I got an app (that used to work fine since last week) wich use flow to execute a very simple sp on my sql database.

 

I was having a test session on Tuesday and i ran into this:

 

1.png

 


I've tried to understand something more and the chrome console say as follow:

2.png

  1. code: "InvalidAuthenticationTokenAudience"
  2. message: "The access token was obtained for recipients or an incorrect 'https://service.powerapps.com/' resource. It should exactly match one of the allowed recipients 'https://management.core.windows.net/','https://management.core.windows.net','https://management.azure.com/', 'https://management.azure.com'." (transalted from Italian)

 

Thank you so much in advance for your help!

 

 

I have the same question (0)
  • roryl Profile Picture
    Microsoft Employee on at

     

    Hi GabrieleS1907

     

    Thank you for your post to the community. Could you browse to the Flow page and see if the Flow is available here? After doing this, do you still encounter the issue in Power Apps studio? If you try to run the Flow manually from the Flow page, does it work?

     

    I was also able to locate a similar issue reported to communities earlier where the JSON schema was not applied. Did your schema recently change at all? If so, could you review this thread and see if this is similar to your issue? https://powerusers.microsoft.com/t5/Building-Power-Apps/Error-on-adding-a-flow-run-SQL-query-to-powerapps/m-p/119226#M42206

     

    I hope this helps.

     

    Thank you,

    Rory

  • GabrieleS1907 Profile Picture
    2 on at

    Hi!

     

    I've already tried to check from the flow page and everything work perfectly.

     

    I've also tried to create a new app with new flow and adding it to a button but still the same registration error...

     

    this is my autogenerated json:

     

    {
     "inputs": {
     "host": {
     "connection": {
     "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sql']['connectionId']"
     }
     },
     "method": "post",
     "body": {},
     "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('default'))},@{encodeURIComponent(encodeURIComponent('default'))}/procedures/@{encodeURIComponent(encodeURIComponent('[dbo].[UpdatesStatoContattoLO]'))}",
     "authentication": {
     "type": "Raw",
     "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
     }
     },
     "metadata": {
     "flowSystemMetadata": {
     "swaggerOperationId": "ExecuteProcedure_V2"
     }
     }
    }

     

     

    Sorry but i'm not able to debug json code, thank you in advance for your help!

  • roryl Profile Picture
    Microsoft Employee on at

     

    Hi GabrieleS1907,

     

    Thank you for your reply and the information. We would like to work with you to collect some additional diagnostics for the issue. If you walk through the process at the following link to create a ticket, we’d be happy to work with you to resolve the problem: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Thank you,

    Rory

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard