cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
GabrieleS1907
Level: Powered On

Registration error in adding Flow to Powerapps

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.azur...', 'https://management.azure.com'." (transalted from Italian)

 

Thank you so much in advance for your help!

 

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Registration error in adding Flow to Powerapps

 

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

 

I hope this helps.

 

Thank you,

Rory

GabrieleS1907
Level: Powered On

Re: Registration error in adding Flow to Powerapps

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!

Community Support Team
Community Support Team

Re: Registration error in adding Flow to Powerapps

 

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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (3,943)