How can this be undefined?

A workflow that worked for a month now stopped. A Google Drive file update node says that the file ID I’m passing is undefined. But the value is visible in the execution:

I can’t paste the workflow cause it’s too long. Here’s a screenshot

I had the same issue with another node.

In my case, the problem was that IDs were not transmitted in the loop that I was using.

Did you tried to remove your blocks one by one to see where the transmission of your ID stopped ?

It was the Switch node. I think I solved adding a loop over items node.
But I suspect the problem may have arised from a pinned node.

Mmm, interesting.

I keep this information because, in my case, the switch also altered informations passing through the flow.