Failed to write flowfile to stdin due to the pipe has been ended

498 Views Asked by At

enter image description here

I have been trying to get an excel file and process it using a python script in executestreamcommand. but it is showing this error.

Any idea on how to read excel file to stdin?

ExecuteStreamCommand Configuration

import pandas as pd
import openpyxl

df = pd.read_excel(sys.stdin)
df.to_csv(sys.stdout, index=False, header=True)
0

There are 0 best solutions below