I really need to finish this rn bru
can anyone tell me why is it that when I run my googlesheet program as a whole, it only shows []
but when I play the node alone it gives the right values 💀💀

16 Replies
AI Support Bot Information
<@442870543528624132> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
It seems like there might be an issue with how variables or data are being passed in your BuildShip workflow. When you run a single node, it executes in isolation and doesn't account for the flow or changes that might occur within the complete workflow. Here are a few things you can try:
1. Check Variable Scope: Ensure that variables or outputs are being passed correctly between nodes. A common mistake is that a variable declared in one node might not be accessible in others.
2. Ensure Correct Data Flow: Verify the data passed between nodes in your workflow, making sure connections are properly set up.
3. Logging and Error Handling: Add logging nodes or use console outputs within nodes to trace the data. This will help identify if and where the data is getting lost.
4. Sequential Execution: Check if nodes are executing in the correct order, as a race condition might lead to incomplete data.
If you require more in-depth assistance, it might be best to send a support request through the in-app support feature of BuildShip.
BuildShip AI Support
It is outputting {} which is an empty object, not [] which is an empty array. If you are expecting an array output have you made sure the node output is configured to what is expected in the next node. It's tricky to tell from this screenshot, what does the rest of the workflow look like?
wait let me send a ss
get sheets got the information right, but it only gave the other nodes "[]"

here you go
get sheets works perfectly on its own
oh it sent twice mb
Does add row work on its own
yes it does too
wdyt is the problem 😓
Have you tried a 'log message to console' node in between them so you can check exactly what is being output to make sure it matches the next nodes expected input, it seems like something somewhere is undefined when the workflow runs as a whole.
Double check the sheet name too it's probably case sensitive
how do I do the log message to console
Just add the extra logging node
i still can't seem to find what's going wrong...
Did you amend the node logic for this?
i checked what was happening
get sheets got the information right, but it only gave the other nodes "[]"
what does that mean 😔
Maybe it is to do with asynchronous processing, did you use AI to write the node logic? You need it to use 'await' and complete fetching the data before it moves on.