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 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
    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
    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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard