Skip to main content

Notifications

Community site session details

Community site session details

Session Id : jg0VtzNkvI1HSz3EKj4ZN1
Power Automate - Connector Development
Answered

Property "" type mismatch, Expected: "object", Actual: "string".

Like (0) ShareShare
ReportReport
Posted on 22 Sep 2021 20:47:40 by 20

I am attempting to create a custom connector using the make.powerapps.com portal.

 

I have tried exporting the OpenAPI(v2) schema from Azure API Management and importing that into the custom connector wizard. I have gone through and checked all of the validation messages on each screen.

However, when I get to the Test tab, I cannot seem to get any response to come through from my API calls. The schema validation for the response fails with 'Property "" type mismatch, Expected: "object", Actual: "string".'

 

I have also tried creating a custom connector manually, importing a postman collection and am having zero luck getting it to work. Sometimes I get the response schema validation error I mentioned when I test, other times I get back no response at all.

 

Has anyone tried creating a custom connector lately using the Power Apps portal and actually gotten it to work? If so, I would *love* to see a sample of something that does work or if someone knows how to fix the aforementioned error, I'm all ears. Otherwise to me, this functionality seems broken.

 

Categories:
  • lion Profile Picture
    100 on 08 Oct 2023 at 07:18:56
    Re: Property "" type mismatch, Expected: "object", Actual: "string".

    Hi

    where is the API management entry? my webAPI is host in a public computer, it can invoke success from cloud flow>http action, but failed from custom connector, the error is 401( Property "" type mismatch, Expected: "object", Actual: "string".)

     

     

     Property "" type mismatch, Expected: "object", Actual: "string".'

  • Verified answer
    mpapas Profile Picture
    20 on 20 Mar 2022 at 15:33:02
    Re: Property "" type mismatch, Expected: "object", Actual: "string".

    Simply go to your API Management instance > All APIs:

    Capture1.PNGNext, open the policy code editor:

    Capture2.PNG

    Then add the URL under allowed origins:Capture3.PNG

     

     

    HTH!

  • Bruce_Wang Profile Picture
    4 on 20 Mar 2022 at 08:33:06
    Re: Property "" type mismatch, Expected: "object", Actual: "string".

    mpapas - would you please share some more details about "I added "https://flow.microsoft.com" to the CORS policy of my APIM instance, everything started working."  -- thanks a lot

  • Verified answer
    mpapas Profile Picture
    20 on 23 Sep 2021 at 20:56:33
    Re: Property "" type mismatch, Expected: "object", Actual: "string".

    No, that wasn't it. I had the API key. I even tried just setting it to anonymous on the APIM side.

     

    But I figured out my problem. Once I added "https://flow.microsoft.com" to the CORS policy of my APIM instance, everything started working.

  • bbailey Profile Picture
    Microsoft Employee on 23 Sep 2021 at 18:44:31
    Re: Property "" type mismatch, Expected: "object", Actual: "string".

    When you setup your connector are you passing in a subscription key, API key or some other form of authentication (what authentication are you using)? I was receiving that error until I passed in the appropriate key to authenticate who I was. At that point it started working fine. The message was frustrating and a bit vague, but once I found what I was missing that helped.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics