Skip to main content

Notifications

Power Automate - Connector Development
Answered

Custom Connector Power BI API Error

(0) ShareShare
ReportReport
Posted on by 1,663

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.
  • srduval Profile Picture
    srduval 1,663 on at
    Re: Custom Connector Power BI API Error

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

  • arpitasingh Profile Picture
    arpitasingh 4 on at
    Re: Custom Connector Power BI API Error

    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.

  • Verified answer
    srduval Profile Picture
    srduval 1,663 on at
    Re: Custom Connector Power BI API Error

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

  • lbendlin Profile Picture
    lbendlin 7,597 on at
    Re: Custom Connector Power BI API Error

    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 .

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard

Featured topics