Why has the data path format changed and is now causing errors in data transfer between steps?

This topic was automatically generated from Slack. You can find the original thread here.

Since yesterday, the passing of data between steps seems to not work anymore. Odd thing, when I copy the path to a return value from another step, the path looks different than usual:

Now: steps.get_auth_tokens.$return_value.wp_auth_header
Before: pd.steps[“get_auth_tokens”][“$return_value”][“wp_auth_header”]

Using the path like it is now is (obviously) generating an error.

Has someone had the same problems?

I think the steps.get_auth_tokens.$return_value.wp_auth_header is actually the appropriate way

Would you mind sharing a screenshot of your issue?

Hi . Thank you for your fast reply. Before yesterday, when I copied a path, the old version was applied. I just copied the path again to post it here, and now, the old version is copied (correctly) again. But as you asked, this will be the error you get.

Hi could you please share the screenshot of your action?

The version

pd.steps[“get_auth_tokens”][“$return_value”][“wp_auth_header”]

Doesn’t throw an error and I’m using this in many other flows

Are you using the path in Python code step?

The issue I’m facing at the moment is that no data is passed from task to task. This happened out of a sudden without a change to the code from my side…

Yes, python. Sorry, would be crucial to mention that too :slightly_smiling_face:

The missing of context is really hard for me to pinpoint your problem

If it’s python then the path pd.steps["get_auth_tokens"]["$return_value"]["wp_auth_header"] is a valid one

the path steps.get_auth_tokens.$return_value.wp_auth_header is for Node.js

May I ask why do you used steps.get_auth_tokens.$return_value.wp_auth_header?

Odd thing, when I copy the path to a return value from another step
What other step that you copied from? Is it Node.js step?

So, the story is the following.

Yesterday, I was working on my code. All of a sudden, the action didn’t produce any output.

As it was late, I let it sit.

Today, the issue is still the same. And I tried starting to debug. Then I checked for the path to prior actions. I just copied the path to the value, and got the path you asked.

Understood

All Python steps. Don’t know how to reply to you messages by quoting them :see_no_evil:

The path you copied is the path for Custom Expression that will be used for Props (the part with brackets {{ steps.get_images_from_wp.$return_value }}) as the image below. The path there is actually Node.js code, which the Custom Expression will evaluate to a value.

Though you can not use that path in your Python code (since the path is for Node.js). You’ll need to use pd.steps["get_auth_tokens"]["$return_value"]["wp_auth_header"]

I’m debugging right now some stuff. But I think my issue is not related to the path. I will get back in a few minutes :+1::skin-tone-2:

Thank you already for your time and help on this. I really appreciate :pray::skin-tone-2: