Invoke python method error

Hello everyone,i got a problem to consult with you.
As you can see here,i use “Invoke Python Method”,the python code runs well,but in uipath error occurs.

What the python code does is delete extra rows in excel,like from row 540 to row 543 shows in the third picture.

I want to tell you that the error occurs only when you really need to delete the rows.If the extra row are already deleted,the error will not occur in uipath.

Do you know why ?

Thanks in advance.

Hi @yu.xingxing

Maybe you can try to simply use Start Process or Invoke Power Shell to run your python source by below command, and confirm if the error still occurs.