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

new custom connector not available due to automated validation checks

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:

https://powerusers.microsoft.com/t5/Building-Flows/Unable-to-Add-New-Action-to-Flow/m-p/487423#M6001...

 

I tried Chrome, Edge, and Firefox.

 

How can I resolve the validation errors?

 

Thanks for your help

6 REPLIES 6
murshed
Microsoft
Microsoft

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

BKohnke
Frequent Visitor

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.

murshed
Microsoft
Microsoft

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

 

BKohnke
Frequent Visitor

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:

BKohnke_0-1630007939231.png

 

The ID in the URL is:

shared_trackingtime-5f7b5488df485f1ea1-5fff731f93c3692738

The error shows this ID, without the "shared_":

trackingtime-5f7b5488df485f1ea1-5fff731f93c3692738

BKohnke
Frequent Visitor

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.

Shidin
Frequent Visitor

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!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Solution Authors
Users online (1,502)