Iterator getting empty values

Hi,
I’m using an iterator that gets data from a Parse JSON module.
TheJSON Module is mapped to a structure containing a list of collection with ‘Tracker Id’ and ‘Message’ keys.
He is the output of JSON module

My iterator is configured to read message arry from JSON Module as shown below

When I run the scenario i don’t understand why :

  • The input bundle of the iterator is empty

    I guess that’s the reason why i have empty outputs…

I have no filtereing between the modules…
Any idea ?

Hey there,

from the screenshots you have it doesn’t look like the Parse JSON is returning any arrays for the Iterator it iterate on. The messages variable is just a string.

Welcome to the Make community!

Please provide the output bundles of the module [46] (Parse JSON) 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. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format 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.

This will allow others to better assist you. Thanks!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hi,
So here are the detailed informations :

  • before the parse JSON I have a Text parser that cleans a Gemini response that produces JSON but with some noise…
    Here is the setup of text parser 45

Here is the setup of JSON parser 46

Here is the data structure used


parsejson46_output.txt (1.3 KB)
textparser55_output.txt (1.3 KB)
textparser55_input.txt (1.3 KB)
parsejson46_input.txt (1.3 KB)

Thanks a lot for your help !

OK, after digging a bit, looks like my JSON that is being parsed is invalid.
This JSON is the output of a gemini module for which i end my user prompt with
“Use this JSON schema to answer :
recipient = {‘Tracker Id’: str, ‘message’: str}
return list[recipient]”

I get a readable JSON but not valid, as many \n and escaping are done.
When I run the same prompt inside Gemini direclty, the response is pure JSON. I don’t understand how to get the raw response from the gemini module.
geminicompletion45_output.txt (2.9 KB)

geminicompletion45_input.txt (1.8 KB)