konclave
konclave2d ago

Input doesn't get preprocessor output in the flow

I have a flow that is triggered by the email trigger. I've added a Preprocessor step that maps the trigger event to the other data structure. Let's say, preprocessor returns this object: { account: "Account Name", amount: "5" } When I test the preprocessor, it works as expected. I've added the arguments to the Input step: account: string amount: string But when I trigger the flow with sending the email, for some reason Input step gets not the Preprocessor step output, but the Trigger event. I check that in the Runs -> Graph -> Node status. The Preprocessor step has "The execution of this node has no information attached to it. The job likely did not run yet" in the status. The setup is really basic, and I can't get what I have done wrong.
No description
6 Replies
rubenf
rubenf2d ago
what version of windmill are you on ? Are you using the default email address or the custom email one ? can you show us the full args passed to the flow
konclave
konclaveOP23h ago
It's a cloud version of windmill, so I assume that it's the latest stable. I'm using the default email address that was suggested after I added a token to the trigger. I didn't get which arguments exactly you want to see. At the very top of the flow, it's an event of the "email" kind. And I parse the body of the email in the preprocessor and map it into the object. Preprocessor returns the following object:
return {
account,
currency,
date,
merchant,
amount,
originalAmount,
originalCurrency
}
return {
account,
currency,
date,
merchant,
amount,
originalAmount,
originalCurrency
}
And the Input flow has the corresponding arguments set up:
No description
rubenf
rubenf23h ago
I can't reproduce. Mind sharing workspace id, flow path, email address used. We will investigate when we can.
konclave
konclaveOP21h ago
Workspace id: zenmoney Flow path, I guess: u/konclave/zenmoney email: u.konclave.zenmoney+pjsw43lpnzsxsk3gnrxxoltvfzvw63tdnrqxmzjopjsw43lpnzsxsk3pjrxtk5l2kvxdoqzumfevumlbgjsgq2tjg55din2ygrzvkvkvim@mx.app.windmill.dev
rubenf
rubenf21h ago
Thank you! (cc @Hugo C. , couldn't do a trivial reproduction)
Hugo
Hugo2h ago
looking into it Hi @konclave it should work if you add a step inside your flow we don't handle well the edge case when the flow is empty and will fix it

Did you find this page helpful?