Write array data to excel?

Hello
I'm doing some simple tests writing data from Ansys workbench mechanical to an existing Excel document. The small script I have works when looping through data in the array and write it elementwise to Excel. For efficiency purpose I would like to write all data in the array "at once" (without looping) but have some difficulties achieving this.

1) Elementwise - ok

2) Array-wise
Below is what I tried with, but this gives some sort of exception result, which I don't know how to interpret. Something is obviously wrong here, but what?
Any suggestions or ideas that I can try out?

Best regards,
Erik