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.
Alteryx crashes when running a Python module that doesn't set every field on the output record.
If a set_from_*/set_null is not called for every field on every record, the underlying data structure is left uninitialized and for String fields can cause a crash. For Integer/Double/Datetime fields whose contents are within the datastructure itself, downstream tools will read the uninitialized memory. String fields are more dangerous as they appear to be stored as uninitialized pointers. These pointers can point to anywhere in memory and depending on their contents dereferencing these pointers causes Alteryx to crash.
Sometimes the following message also appears: "You have found a bug. Replicate, then let us know. We shall fix it soon."
The following code snippet can cause this: record_creator.reset() out_record = record_creator.finalize_record() output_anchor.push_record(out_record)
Alternatively see attached for a test case. Install the plugin. Run the first workflow repeatedly and check the browse tool each time. Run the second workflow for an almost guaranteed crash.
(Note: Increasing the number of rows doesn't increase the likelihood of a crash in this test case as the underlying datastructure is reused).
Edit: Technically I did make a Python plugin. Do I get a Python Contest badge too?