Hi There, I am trying to get my unread outlook email to a spreadsheet.
I know the problem is with “Add data row” but not sure what is wrong.
Appreciate your help.Thanks
Error message:
“message”: "Add Data Row: Input array is longer than the number of columns in this table.",
“level”: “Error”,
“logType”: “Default”,
“timeStamp”: “18:04:47”,
“fileName”: “oopermit”,
“processVersion”: “1.0.0”,
“jobId”: “94d8270c-43e4-47dd-be38-bd3799942439”,
“robotName”: “royang28@yahoo.com-attended”,
“machineId”: 651966,
“organizationUnitId”: 596273
As the error says, You must be passing a value that is greater than the defined number of columns in the table. Can you check the value that you are passing to Add Data Row? You can run it in debug mode and check.
Also, Could you Show us what is the Activity before Add Data Row ? Is it a Read Range Activity ?
If it is a Read Range Activity, Could you Check if you have given the same Datatable variable as that of Build Datatable Activity ?
We cannot get a full visual of the Workflow, But it should be that the Datatable dt_angemail is getting overwritten, that may be the cause of the Error, However, not really sure.
@Ang_Weng_Fook , If this is the Case, You would not Require a Read Range at that point.
You can simply Remove it.
At the End, that is after/Out of the For Each Activity, we could use a Write Range Activity with Sheet name as "Emails.Ex" and use the dt_angemail as the Datatable variable.