This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Find answers, ask questions, and share expertise about Alteryx Designer.
General Discussions has some can't miss conversations going on right now! From conversations about automation to sharing your favorite Alteryx memes, there's something for everyone. Make it part of your community routine!
1) Make sure you don't run the entire workflow and pass a value that contains a single "\" (Your SelectFile value currently has several "\"). It will error out and delete all your python code. Alteryx is aware of the issue. I haven't checked, but I suppose it should not error out if you just doubled them all up to "\\". This is only a problem for reference shortcuts, as the juypter notebook is gracefully changing "\" to "\\" whenever your code includes a "\" (but reference shortcuts are done outside of that).
2) You should add your idea over here. My biggest complaint is that when you run the entire workflow, it will actually permanently replace the text. So your python code would become print("W:\......zip"). I think you should add your idea that it should also work when you run the cell as it currently does not work at all.
I get a lot of value from passing data this way and I think the python tool would be even better if it handled reference shortcuts similar to any other tool (and especially the R tool).
So I don't know if this accomplishes what you are looking for or not, and my Python is still fairly minimal, so if there's a reason why this won't accomplish your need, please let me know (you'll help me learn)!
Could you have a Text Input in your workflow, with the following configuration:
Then you could connect this to the Python tool, and rename the connection as Question.SelectFile (for consistency)