I am trying to write message in excel by creating new sheet in excel but, it is giving error like range not exist.According to me range is correct and it is creating new sheet also but while writing message it is giving eror.
Please help me to solve this.
here are the screenshots.
screenshot of script.
Scope is correct.i am attaching the workflow please go through and let me know if u find something.
May be it will not run at ur end but still just go through the process Process.xaml (111.9 KB)
I tried same logic which i have written with new excel sheet.now working.
but dont know why it not worked when i am creating sheet 2
Thanks for ur suggetions
Hey, I had run into this issue so was looking around briefly. But, I also figured out what the problem may have been for me. Some of the data was not structured with the other columns, and I think the Excel Write Range didn’t like that.
Maybe it’s a bug which should be fixed, but for now I suggest finding what rows is not structured (such as Total Amount -type rows or empty rows) and remove them before writing. A simple way is to use linq, for example dt1.AsEnumerable.Skip(0).Take(dt1.Rows.Count - 3).CopyToDataTable
EDIT: for me, it was a row that consisted of many '='s in each column