Aakarsh Raj
Aakarsh Raj

Reputation: 75

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

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)

Upvotes: 0

Views: 557

Answers (0)

Related Questions