Hello,
I'm trying to create a personnalized API but for the swagger definition I encounter a problem.
My swagger definition is one made by Azure ML.
But when I try to upload, I get this error :
Required property "type" is not present or not a string at JSON path definitions.ExecutionRequest
And it also says there was an error when converting the Swagger file into a WADL file and that the API may not work with the applications.
Is it not possible to use an API from Azure ML in Power Apps ?
Thank you in advance.
Hi Robby,
If the API you used here is RESTful API, then it should work with PowerApp.
Please take a look at the article below, refering to the "Getting help with Swagger files" part:
Register Custom APIs in PowerApps
To customize your Swagger document to work with PowerApps, see Customize your Swagger definition.
Regards
Hello Michael,
Thanks for your help. I've already read all these before.
This is what I did. When I tried on http://editor.swagger.io/#/ my swagger file from Azure ML, it said : "Processed with no error".
But when I try to insert it in the Power App new personalized API, it doesn't work, and show the same error as above.
So I think I have the right Swagger file but for some reason, Power App refuses to take it...
Do you have any solution ?
Hello,
Sorry for the double post,
I'm still trying to find a solution to this problem. Apparently PowerApps has troubles to convert the swagger file in .json into a WALD file. So is the problem solvable ? By for example modifying a few lines from the Swagger file ?
Robby
I have exactly the same issue. A clean Swagger json directly from Azure ML cannot be loaded into a PowerApps connection and there is very little info to go by to try to maually correct the json. It is unclear if the issue is on the Azure ML side or the PowerApps
Thank you for your statement. So for now there is no solution to the problem it seems..
Hi all. I am a bit of a newby in Swagger for PowerApps but have managed to solve a few issues when creating custom APIs.
The issues for me were more often in the Responses section of the json file. For example editor.swagger.io accepted the response type "integer" without needing to define the ''format" as well, whereas PowerApps will additionally require a "format" in the case of type "integer", but not in case of type "string". (I found this out by trial and error).
Do you want to share your Swagger json file to see if any of us spot any issues?
Hello, thank you for your reply.
Can I PM you ? I don't really have knowledge on Swagger.
Sure
Meneghino, did you get a swagger.json from Azure ML to work or was it another custom API?
User | Count |
---|---|
140 | |
137 | |
77 | |
77 | |
72 |
User | Count |
---|---|
225 | |
179 | |
68 | |
68 | |
58 |