Show us some code.. I feel like your datatable or dataset has no data.So basically this error states that the datasource(DataTable) is not having any rows. To avoid this exception use this before you read or loop through datatable:

1 solution

Solution 1

There is not enough information to explain what's going on in detail, but normally, the phrase "there are no row at position 0" is some exception message means that there is zero number of rows. As simple as that.

Please understand that in all cases you need to present comprehensive exception information as well as the code sample where this exception is thrown. One critical part of the question would be indication of exact code line where it happens. It's the best to do it by commenting this line accordingly.