Skip to main content

i am reading a fixed width file from s3 and trying to parse with Jython evaluator in Data collector.

when i try to run the pipeline i am getting below isue.

 Script error while processing batch: javax.script.ScriptException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value in <script> at line number 60

i am reading file using UTF-8 option.

 

 

Hi @ashok verma , There seems to be some Unicode characters (non-ascii) in your incoming data that is not being properly handled and causing the script to error. Make sure this handled properly in your script.


@ashok verma Did Rishi’s suggestion help? If so, Please mark his reply as the “Best answer” as this helps others fins the answer quicker. :) 


Reply