Shiqami
Shiqami3w ago

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 💀💀
No description
16 Replies
AI Support
AI Support3w ago
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 Support
AI Support3w ago
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
Chris Wright | byc Design
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?
Shiqami
ShiqamiOP3w ago
wait let me send a ss
Shiqami
ShiqamiOP3w ago
get sheets got the information right, but it only gave the other nodes "[]"
No description
Shiqami
ShiqamiOP3w ago
here you go get sheets works perfectly on its own oh it sent twice mb
Chris Wright | byc Design
Does add row work on its own
Shiqami
ShiqamiOP3w ago
yes it does too wdyt is the problem 😓
Chris Wright | byc Design
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
Shiqami
ShiqamiOP3w ago
how do I do the log message to console
Chris Wright | byc Design
Just add the extra logging node
Shiqami
ShiqamiOP3w ago
i still can't seem to find what's going wrong...
Chris Wright | byc Design
Did you amend the node logic for this?
Shiqami
ShiqamiOP3w ago
i checked what was happening get sheets got the information right, but it only gave the other nodes "[]" what does that mean 😔
Chris Wright | byc Design
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.

Did you find this page helpful?