Hi all,
I created a new custom connector to use a REST API and it works fine in the swagger view and when using a connection in testing mode.
But when I want to add the action to a flow, it throws the following error:
ajaxRequestFailed. The trigger or custom API action "XXX" is not available due to automated validation checks. Although existing connections will continue to run as expected, no additional steps can be added until the owner of the custom API resolves the validation errors.
I found one other post with this problem, without a resolution:
I tried Chrome, Edge, and Firefox.
How can I resolve the validation errors?
Thanks for your help
Use the paconn CLI to validate the connector asset. https://github.com/Microsoft/PowerPlatformConnectors/tree/master/tools/paconn-cli
If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.
Thanks for the tool.
I don't want to certify my connector but I resolved every error that the tool found.
It only said that I should add descriptions to every parameter and contact and x-ms-metadata information.
I resolved them all and now after validate the tool says:
Swagger certification succeeded with warnings.
The warnings are single implicit encoding and some similar paths.
I updated the connector again using paconn and tried to implement an action, but it shows the same error.
ajaxRequestFailed. The Custom API 'XXX' trigger or action is unavailable due to automated validation checks. Although, existing connections will continue to run as expected, no additional steps may be added until validation errors are resolved by the owner of the Custom API.
Do you have the error code or any other information displayed with the error that I can correlate in the log? Can you please give me your custom connector id (displayed in the address when you edit the connector)?
Sadly, this is the whole error, there is no more information. I click on the action in the flow, it loads a second and then the error displays:
The ID in the URL is:
shared_trackingtime-5f7b5488df485f1ea1-5fff731f93c3692738
The error shows this ID, without the "shared_":
trackingtime-5f7b5488df485f1ea1-5fff731f93c3692738
After some more testing, I think it has to do with me importing the actions from a Postman collection.
When I create a custom connector from blank and then configure a connector exactly the same, I don't get the error.
The issue is definitely due to your API definition.
In the UI, testing the custom connector might show success, but you will still get the error on using it in a Power Automate flow.
The main issue here is lack of meaningful errors being shown on the UI.
A workaround I have found is:
1. Copy the Swagger definition from the custom connector (YAML)
2. Convert the YAML into JSON (use any online converters)
3. Save the JSON file locally.
4. Manually create a new connector. Choose "Import from OpenAPI file". Choose the locally saved JSON file.
5. Configure the bare minimum configurations.
6. Try to "Save Connector".
This should hopefully throw some meaningful errors about where your API definition is going wrong.
Cheers!
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.