# Issue with OpenRPA and PowerShell Pipeline when input contains an Array

**URL:** <https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084>\
**Category:** Issues and feature requests\
**Created:** [March 6, 2025, 6:40pm UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084 "2025-03-06T18:40:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Bayona](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@Rafael\_Bayona](https://discourse.openiap.io/u/Rafael_Bayona)\
**Post date:** [March 6, 2025, 6:40pm UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/1 "2025-03-06T18:40:19Z")

</div>

I’m experiencing an issue with OpenRPA when piping input from PowerShell. If the input object contains an array, the command fails.

I use the following command: $robotInput | Invoke-OpenRPA -Filename 87abf7fd-66cf-46cc-83d7-9a19086a8ce9

I’ve tried multiple ways to define $robotInput, but all of them fail:  
$robotInput = @{“PROsArray” = @(“Flores, Beatriz”, “Nuno, Lilibeth”)}  
$robotInput = @{“PROsArray” = [System.String]@(“Flores, Beatriz”, “Nuno, Lilibeth”)}  
$robotInput = @{“PROsArray” = {“Flores, Beatriz”, “Nuno, Lilibeth”}}  
$robotInput = @{“PROsArray” = [System.String]@(“Flores, Beatriz”, “Nuno, Lilibeth”)} | ConvertTo-Json -Depth 10

Regardless of the approach, I receive errors related to JSON serialization or `Newtonsoft.Json.Linq.JArray` or Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 6, 2025, 9:24pm UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/2 "2025-03-06T21:24:18Z")

</div>

~~and does the workflow have an array as input argument ?~~

Never mind, i just tested, and I see there is no way to parse an array in …  
I need to debug this some more.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [March 13, 2025, 9:24pm UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/3 "2025-03-13T21:24:58Z")

</div>

Closed on March 13, 2025, 9:24pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 15, 2025, 10:09am UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/4 "2025-03-15T10:09:33Z")

</div>

Opened on March 15, 2025, 10:09am UTC



---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 15, 2025, 10:09am UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/5 "2025-03-15T10:09:58Z")

</div>

Moving this topic to #Issues and feature requests so it does not closed.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [March 22, 2025, 10:10am UTC](https://discourse.openiap.io/t/issue-with-openrpa-and-powershell-pipeline-when-input-contains-an-array/2084/6 "2025-03-22T10:10:47Z")

</div>

Closed on March 22, 2025, 10:10am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
