Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Custom Connector - error: array not supported in parameter

Like (1) ShareShare
ReportReport
Posted on 18 Sep 2019 16:43:39 by

I am new to coding, and I'm trying to follow the microsoft guides on creating custom connectors.

 

I am attempting to connect to the Wrike api v4 to use with flow, and I have hit a wall when trying to create a folder with "project" properties. According to wrike "Wrike's API does not recognize application/json or form-data format of the query" .

 

So when I create an action in the custom connector to create a folder, I've added the "project" properties as part of the query, since it's my understanding I can't add them to the body. When using this method I have tested the connector in flow and I have been able to create a folder with the folderid(parent folder) and title. But, no matter what I try I cannot get the project parameters to work!

image.png

 

I am populating the request from this sample:

 

/api/v4/folders/{folderId}/folders?&title=Testfolder&description=descriptionTest&project=[{"ownerIds":"KUGEYQ5H","status":"Red","startDate":"2019-07-31","endDate":"2019-08-07"}]&shareds=shareds

and powerapps identifies the project parameter as an array, when I update the connector I get this error message:

 

Your custom connector has been successfully updated, but there was an issue converting it to WADL for PowerApps: An error occured while converting OpenAPI file to WADL file. Error: 'Parameter with type='array' is not currently supported at JSON path paths./api/v4/folders/{folderId}/folders.post.parameters[3]'
 
When I test in flow, it doesn't show me the nested parameters, it just shows a "project" field input.
image.png
So I tried adding the project parameters with a compose action, but it doesn't recognize the input stand-alone json:
{
 "ownerIds": [
 "KUAFFXRP"
 ],
 "status": "Green",
 "startDate": "2020-08-06",
 "endDate": "2020-08-13"
}
And i tried or using encodeUri:
encodeUriComponent(outputs('Compose'))
When I peek at the code in flow, i noticed that the Project parameter values are inside "double quotes" and not nested parameters:
 "queries": {
 "title": "Wrike test 4",
 "project": "@{encodeUriComponent(outputs('Compose'))}"
 },
So, I'm stuck!
Is there a different way I can format my sample to make this work? Have I made some fundamental error somewhere along the way? 
Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    on 27 May 2020 at 20:59:54
    Re: Custom Connector - error: array not supported in parameter

    Hi @Anonymous ,

    I found a way around it:

    Here are a few screenshots

    1. of the request

    2. The parameter settings for the "project" query, note the default text - this works for me because there are relativeley few fields here.

    3.  The  action in power automate, I replace the default text as necessary

     

    I hope this helps!

     

    image.png

     


    image.pngimage.png

     

     

     

     

     

     

     

     

     

  • Community Power Platform Member Profile Picture
    on 27 May 2020 at 16:00:56
    Re: Custom Connector - error: array not supported in parameter

    Hi romanduda!

    Thank you for you attention! Actually, I asked about the error "array not supported in parameter" which GonzaloR brought, but I am not trying to connect with Wrike as you both did, but with UpMiner (documentation here).

    In my case, I wanted to create a custom connector with an OpenAPI 2 file, but this message was shown:

     

    An error occured while converting OpenAPI file to WADL file. Error: 'Parameter with type='array' is not currently supported at JSON path paths['/{token}/lote/duplicidade'].get.parameters[1]'

     

    I also tried with an OpenAPI 1 file, and I succeeded to create the custom connector. But, as GonzaloR, the connector didn't show me the paremeters.

    Can you help me with this situation?

  • romanduda Profile Picture
    14 on 27 May 2020 at 08:51:08
    Re: Custom Connector - error: array not supported in parameter

    Finally we got it running. You need to make sure, that you use the right URLs. Are you hosted on US or European Server?

  • Community Power Platform Member Profile Picture
    on 26 May 2020 at 18:09:43
    Re: Custom Connector - error: array not supported in parameter

    Hi!

    I'm having the same issue here! I'd like to know if there was any update on this matter.

    Thanks!

  • romanduda Profile Picture
    14 on 13 May 2020 at 20:14:42
    Re: Custom Connector - error: array not supported in parameter

    Hi @Anonymous,

    i tried exactly the same configuration on the Europe side. It didn’t worked on my side. So, you are able to connect to WRIKE an automate through POWER Automate?! 

    thanks for your time. 
    Roman

  • Community Power Platform Member Profile Picture
    on 13 May 2020 at 15:35:37
    Re: Custom Connector - error: array not supported in parameter

    Hi @romanduda 

    I'm not sure I know the answer, I'd suggest double checking your inputs in the General tab and Security tab, I attached screenshots of mine here in case they help.

     

    Obviously you'll need your own client id and refresh URL. I hope this helps!

  • romanduda Profile Picture
    14 on 13 May 2020 at 06:11:06
    Re: Custom Connector - error: array not supported in parameter

    Hey Gonzalo,

    we are also trying to get the Wrike API running by a custom connector within Power Automate. We are struggling to set the connector up correctly as it isn't generating the redirect URL after saving the the connector. Du you have any suggestions for us?

     

    Thank you so much

     

    Roman 

  • Community Power Platform Member Profile Picture
    on 25 Sep 2019 at 20:36:24
    Re: Custom Connector - error: array not supported in parameter

    Bumping for visibility 

     

    @Anonymous 

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
Loading started