web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector Power...
Power Automate
Unanswered

Custom Connector Power BI API Error

(0) ShareShare
ReportReport
Posted on by 1,760 Moderator

I have had a custom connector for running power bi apis for a couple of years now, and I went to add a new API call to it and got an error message that the description can't be less than 30 characters, ok fine I try to update the description but get an error message. Thinking it might be my new API call I back out and discard my changes. I go back in and try to update just the description and get the same error. 

The request failed with client error: '{"Code":"","Message":"PUT https://power-apim-msmanaged-na.management.azure-api.net/subscriptions/obsecured/resourceGroups/apim-power-msmanaged-na/providers/Microsoft.ApiManagement/service/power-apim-msmanaged-na/apis/power-obsecured?import=true&protocols=https&protocols=http&path=apim/power-obsecured&api-version=2019-01-01 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2-auth', line 1446, position 20.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}'.


is there a current bug with updating custom connectors or can anyone make sense of that error? All my API calls have been manually created by copying them from the MS learn website.
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    That's cute.  What's the API call?

     

    If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
    Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

  • Verified answer
    srduval Profile Picture
    1,760 Moderator on at

    @lbendlin thanks for the links. 


    I can't remember what the API was that I was trying to add, but it turns out the error is in the source code of my power BI API connection, not sure if it is something imported or was auto generated, as I don't even know how I eventually got the connection working. Anyways to fix it I had to go into the swagger code mode to find the error, something to do with a new authorization URL that needed to be added, but doesn't have a placeholder to set a value (that I am aware of) in the custom connection editor. I just copied the URL from the line below it in the code (login URL I think) and it accepted it without issue. 

  • arpitasingh Profile Picture
    4 on at

    Hi @srduval , can you explain in bit detail where you copied the URL(from swagger)

    " I just copied the URL from the line below it in the code (login URL I think) and it accepted it without issue. "? It would be of great help.

  • srduval Profile Picture
    1,760 Moderator on at

    @arpitasingh I copied the token URI and pasted it into the authorizationURL 
    authorizationUrl: ''
    tokenUrl:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard