Good day all,
Please, I am having an error with Invoke Python Method activity. I was able to load my python script but my bot is throwing an error at Invoke Python Method activity.
Below is the error message I got.
Invoke Python Method: One or more errors occurred.
Below is my python script:
import pandas as pd
def main(filePath):
df = pd.read_excel(filePath)
with pd.ExcelWriter(filePath, mode=‘a’, engine=‘openpyxl’, if_sheet_exists=‘new’) as writer:
df.to_excel(writer, sheet_name=‘Sheet2’, index=False)
Note: filePath is my input parameter I am passing in.