In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Python tool: cannot save to gallery when "Validate workflow" option is selected

fed_
7 - Meteor

Hello, 

I'm having some issues with saving to the gallery any workflow that is using the python tool, if I decide to validate it before saving.

I always have my code split into multiple jupyter cells. When I try to save the workflows to my private gallery I run into the following errors
Screenshot 2021-10-27 at 16.17.37.png

It looks like to me that the result of previous cells execution is not cached. If I move all the code to the first cell, the error disappears.
Is this the expected behaviour?

Is there a way for me to keep code split into cells, but be able to validate & save successfully to the gallery?

_In attachment a test workflow as I cannot share my original ones.
Thanks for your help

1 REPLY 1
AZuc
Alteryx Alumni (Retired)

@fed_ ,

 

I was able to reproduce the behavior in both interactive and production mode.

 

But I was able to publish without validation and it worked fine.

 

Basically the validation phase is a run with no records. To simulate that, I added a filter with a condition 1=0 before the python tool and I had the same error.

 

You can publish without validate as a workaround, and then test to see if your code could manage a 0 record input.

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Labels
Top Solution Authors