cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Custom Connector - error: array not supported in parameter

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? 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate I
Advocate I

Re: Custom Connector - error: array not supported in parameter

Hi @pedrofim ,

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

 

 

 

 

 

 

 

 

 

View solution in original post

8 REPLIES 8
Highlighted
Community Champion
Community Champion

Re: Custom Connector - error: array not supported in parameter

Bumping for visibility 

 

@TopShelf-MSFT 

Highlighted
New Member

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 

Highlighted
Advocate I
Advocate I

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!

Highlighted
New Member

Re: Custom Connector - error: array not supported in parameter

Hi @GonzaloR,

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

Highlighted
Frequent Visitor

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!

Highlighted
New Member

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?

Highlighted
Frequent Visitor

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?

Highlighted
Advocate I
Advocate I

Re: Custom Connector - error: array not supported in parameter

Hi @pedrofim ,

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

 

 

 

 

 

 

 

 

 

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,635)