none
Execute Python Script Error XDRReader RRS feed

  • Question

  • I am getting a strange error when I pull a table with ~200 columns of boolean values into a Execute Python Script Module in ML Studio. 

    I believe the error at hand is this one:  raise Exception('Invalid boolean flag from XDR: [{0}]'.format(flag))Exception: Invalid boolean flag from XDR: [-2147483648]  It appears that it is getting some strange number instead of a boolean.  When I check the data, it indeed only has boolean values.

    Here's the full error:  

    Start of error message from Python interpreter ----------\r\nCaught exception while executing function: Traceback (most recent call last):\r\n File \"C:\\server\\invokepy.py\", line 192, in batch\r\n idfs = [parameter for infile in infiles\r\n File \"C:\\server\\invokepy.py\", line 194, in <listcomp>\r\n infile, is_buffer=False)]\r\n File \"C:\\server\\XDRReader\\xdrutils.py\", line 45, in XDRToPyObjects\r\n attrList = xdrreader.read_attribute_list()\r\n File \"C:\\server\\XDRReader\\xdrreader3.py\", line 39, in read_attribute_list\r\n car = self.read_object()\r\n File \"C:\\server\\XDRReader\\xdrreader3.py\", line 140, in read_object\r\n vectorObject[i] = self.read_object()\r\n File \"C:\\server\\XDRReader\\xdrreader3.py\", line 92, in read_object\r\n raise Exception('Invalid boolean flag from XDR: [{0}]'.format(flag))\r\nException: Invalid boolean flag from XDR: [-2147483648]\r\nProcess returned with non-zero exit code 1\r\n\r\n---------- End of error message from Python interpreter ----------"}}Error: Error 0085: The following error occurred during script evaluation, please view the output log for more information:---------- Start of error message from Python interpreter ----------Caught exception while executing function: Traceback (most recent call last): File "C:\server\invokepy.py", line 192, in batch idfs = [parameter for infile in infiles File "C:\server\invokepy.py", line 194, in <listcomp> infile, is_buffer=False)] File "C:\server\XDRReader\xdrutils.py", line 45, in XDRToPyObjects attrList = xdrreader.read_attribute_list() File "C:\server\XDRReader\xdrreader3.py", line 39, in read_attribute_list car = self.read_object() File "C:\server\XDRReader\xdrreader3.py", line 140, in read_object vectorObject[i] = self.read_object() File "C:\server\XDRReader\xdrreader3.py", line 92, in read_object raise Exception('Invalid boolean flag from XDR: [{0}]'.format(flag))Exception: Invalid boolean flag from XDR: [-2147483648]Process returned with non-zero exit code 1---------- End of error message from Python interpreter

    Wednesday, October 9, 2019 3:46 PM

All replies

  • Hi Lucas,

    Thanks for reaching out. Error 0085 indicates a syntax error in the script. Does the input dataset to the module contain the coloumns you are trying to drop? Are you using 1s and 0s only for Boolean Values? 

    Regards,

    Yutong

    Wednesday, October 9, 2019 7:48 PM
    Moderator
  • Hi Lucas,

    Hope you are doing well. I am checking are you still suffering from this issue? Please let us know if you still have any question. Thanks.

    Regards,

    Yutong

    Monday, October 14, 2019 8:31 PM
    Moderator