If you show us the flow you are using, we are more likely to be able to help. We also need the actual format of the Data Input so that we can test the flow.
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
See this post for more details - How to share code or flow json