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.
Please open the locals panel in debug mode and expand the exception details you would see more details of what exactly is the issue and from there we can take next steps based on the error you need