Expression - List of Numbers Not Populating

I have attached screenshots of the issue. Essentially I have an expression (Damage) that returns a list of numbers that is referenced in another expression (Calculator). However, when passing the list, it’s not showing any numbers. When I click on the first element there is clearly a list of numbers, but when looking at the values in the calculator element they are all 0’s and the data is not passed and the “item #” variable is greyed out.

Can someone help me figure out why this is happening?





you have 10 errors reported by the red triangle exclamation mark icon, check what those are, it is likely associated with the code you are using

It says “Trying to send an invalid array to Bubble”
What does that mean here?

It means the JSON array is not a valid JSON structure…JOSNlint.com is a great resource to check the validity of a JSON array.

Likely you are using a JSON array in your custom code and so the values are not getting populated as you intend.

It seems to be happening just from the first expression element. When is strange because it’s just a list of numbers. Not sure what to change to be valid.

Try using another plugin called 1T list of numbers, might be able to get it to work as you need.

I’m seeing list of dates but no numbers plugin.

I solved the problem and I hope this helps anyone having this same issue in the future. This is very stupid, but in order to fix it, all I needed to do is add: “[” bracket and a “]” bracket to the front and end of the expression. I have attached a photo so you can see.
Screenshot 2024-10-14 at 11.53.46 PM

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.