Append Range Blank Lines

I am having issues with Append Range adding blank lines. My process takes one data table and appends it to an excel spreadsheet. The spreadsheet has alot of formulas that is expanded into the new data correctly. I close the spreadsheet and when I try to append another similar data table it is always leaving blank lines (sometimes over 100). The data gets appended after the blank lines and as a result is not formatted into my table on the master spreadsheet.

Any suggestions?

1 Like

Same here, when the data is more than 100 rows itā€™s not appending when I trigger from Orchestrator. Itā€™s appending when open VM and run.

@mkkajtez

Actually Append Range activity should work here. Donā€™t know whatā€™s went wrong.

You can try below way to overcome this issue.

  1. First use Read Range activity to read the data from existing sheet and will give you output as DataTable and say ā€˜DTā€™

     Int rowCount = DT.Rows.count
    
  2. Then use Write Range activity to write into the same excel file and provide range as ā€œAā€+(rowCount+1).Tostring

Note: If existing data contains column headers then it should be rowCount + 1 else it should be rowCount

1 Like

Hi @lakshman,

Even Iā€™m using given solution, itā€™s not writing (Appending) the data in the excel (Running from Orchestrator). If I login to VM and ran, itā€™s working fine.

Why is this?

Thanks!

I had the same problem. In my case it was a mistake in ā€œBuild Data Tableā€. By Default ā€œBuild Data Tableā€ comes with a blank row, i didnā€™t exclude it and was using ā€œAdd Data Rowā€ and ā€œAppend Rangeā€, so it was appending the Data Tableā€™s blank row.

I just deleted it and the problem was solved.

2 Likes