PyException in Python formulas in Prepare recipes after upgrading to 5.1.1

John_Kelly
John_Kelly Registered Posts: 16 ✭✭✭✭

I upgraded DSS from 5.0.4 to 5.1.1, and now I'm getting the error shown below for any Python formula in a Prepare recipe that returns a row or rows. Even the default code returns the error. Standalone Python recipes, as well as formulas in Prepare recipes that only return a cell, work just fine. I have updated the Python code environment as indicated by the upgrade instructions, and I have tried changing the project's code environment (including using the DSS's builtin environment option).

Any ideas? If I don't resolve this soon I'll have to try rolling back to 5.0.4.

Thanks,

John

Tagged:

Best Answer

Answers

  • John_Kelly
    John_Kelly Registered Posts: 16 ✭✭✭✭
    Thanks for the help via chat! Issue was not from the upgrade, but from unicode (non-ascii) someone getting into the data. Adding a "Perform unicode_encode on all columns" step before the Python step took care of it. I'll have to come back to it later to find where the unicode came from.
  • John_Kelly
    John_Kelly Registered Posts: 16 ✭✭✭✭
    Just to add, though, there is something at least that changed with the upgrade, as it's happening in places where the input data to the recipe definitely did not change. Adding a "Perform unicode_encode on all columns" still provides a stopgap fix.
Setup Info
    Tags
      Help me…