Hi everyone,
I have a scenario in Make where I’m using the 0Codekit Run Python module to process data from previous modules. Specifically, I’m trying to pass arrays from the “Search Airtable” module and the “Array Aggregator” module to a Python script. However, the items in these arrays are not being recognized as strings, leading to errors in the Python script. The items in the arrays from “Search Airtable” and “Array Aggregator” modules are not strings. This causes a “bad request” error when I try to process them in the Python script. I have attempted to convert the items to strings within the Python script, but I am still encountering issues.
When tested locally with hardcoded arrays, the script works perfectly. However, it fails in the Make environment. It seems Make may not be handling the arrays correctly before passing them to the Python module. Is there a way within Make to ensure that all elements of the arrays are converted to strings before they are passed to the Python module? Alternatively, is there a better approach to handle this within the Python script to avoid the “bad request” error?
You can use the built-in function join
to convert an array containing strings, into a string variable.
e.g.: for example, this adds a comma between each array item
{{ join(16.tags; ", ") }}
Outputs
"abc, def, ghi"
For more information, see the function documentation in the Help Center.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
General
Help Center Basics
Articles & Videos
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!
1 Like
Actually the arrays have a list of record ids and I can see that they are not being recognised as strings. I am looking for something that can individually convert each item of the array into a string. In my local Python script when I replace these arrays (listed below)
16. Combined Tags
14. Array: Selected Tags
with actual record ids in double quotes separated by comma, the script works. [Like this:]
However in the make script 0codekit module, when I am using these arrays from previous modules (like I have shared in my original post), the record ids do not get recognised as strings and hence give me an error.
If you need further assistance, please provide the following:
1. Screenshots of module fields and filters
Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.
You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

(Note: Exporting your scenario will not include private information or keys to your connections)
Uploading it here will look like this:
blueprint.json (12.3 KB)
3. And most importantly, Input/Output bundles
Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
Uploading them here will look like this:
module-1-output-bundle.txt (12.3 KB)
B.
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:
-
Either add three backticks ```
before and after the code, like this:
```
input/output bundle content goes here
```
-
Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Following these steps will allow others to assist you here. Thanks!
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
1 Like