cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HSI
Frequent Visitor

Failed PowerApps Custom API creation

Trying to follow the tutorial at https://docs.microsoft.com/en-us/azure/azure-functions/functions-powerapps-scenario. I am able to create and test the Azure Function, however, when I try to "Export to PowerApps + Flow" I receive the following error message and cannot continue.

 

Failed PowerApps Custom API creation. Error Details: Either 'OpenApiDefinition' or 'AppDefinitionUrl' must be specified, and only one should be specified

 

Swagger definition attached:

Swagger.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
HSI
Frequent Visitor

It appears to be an IE11 issue for me. I ran it in Chrome and it worked as advertised.

View solution in original post

4 REPLIES 4
v-yamao-msft
Community Support
Community Support

Hi HSI,

 

The error message says that you should specify either OpenApiDefinition or AppDefinitionURL for your Swagger file.

 

Please check this documentation for a reference, this tutorial will introduce you how to create an OpenAPI definition for a function. Please take it for a reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-openapi-definition

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HSI
Frequent Visitor

I have followed the tutorial to create the function at https://docs.microsoft.com/en-us/azure/azure-functions/functions-openapi-definition. That tutorial works and I included the OpenAPI definition that was created in my original post, however, the "Tutorial to Call a function from PowerApps" https://docs.microsoft.com/en-us/azure/azure-functions/functions-powerapps-scenario does not work.

 

Please advise.

The same issue occurs for me when following the tutorials. 

HSI
Frequent Visitor

It appears to be an IE11 issue for me. I ran it in Chrome and it worked as advertised.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,477)