# Multiple Pipeline JSONNET flatten array throwing error

**URL:** <https://drone.discourse.group/t/multiple-pipeline-jsonnet-flatten-array-throwing-error/10577>\
**Category:** Drone Support\
**Created:** [July 29, 2021, 6:52pm UTC](https://drone.discourse.group/t/multiple-pipeline-jsonnet-flatten-array-throwing-error/10577 "2021-07-29T18:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poulami\_Saha](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/poulami_saha/32/6483_2.png) [@Poulami\_Saha](https://drone.discourse.group/u/Poulami_Saha)\
**Post date:** [July 29, 2021, 6:52pm UTC](https://drone.discourse.group/t/multiple-pipeline-jsonnet-flatten-array-throwing-error/10577/1 "2021-07-29T18:52:44Z")

</div>

I am using `[std.flattenArrays( [ ArrayofPipelineA, ArrayOfPipelineB] ) ]`  
in my .drone.jsonnet file. If I run this file in DroneCI it throws error “yaml: unmarshal errors: line 1: cannot unmarshal !!seq into yaml.RawResource”. But if I convert the same file with the below command(keeping the original with .bak and creating new file)

```auto
jsonnet -y .drone.jsonnet.bak > .drone.jsonnet

```

it works perfectly in DroneCI.  
I assume multiple pipeline is not the error here since the converted file works perfectly.

What can be the probable error?

---

<div class="post-metadata">

**Author:** ![Poulami\_Saha](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/poulami_saha/32/6483_2.png) [@Poulami\_Saha](https://drone.discourse.group/u/Poulami_Saha)\
**Post date:** [July 30, 2021, 12:25pm UTC](https://drone.discourse.group/t/multiple-pipeline-jsonnet-flatten-array-throwing-error/10577/2 "2021-07-30T12:25:48Z")

</div>

Hey I made a mistake on nesting array, it was solved by only writing `std.flattenArrays( [ArrayofPipelineA, ArrayOfPipelineB] ) `
