Thanks to the feedback from all, I am not able to connect to Sharepoint and pull lists from it. When there is lot of data, sharepoint provides a field called __next.
I am trying to do pagination as below
The sub process "ReadList" has the pagination logic. Basically in the Decision shape I am checking if __next field is empty of not as it is empty when there is no paging or if we reached the end of the list, but the process runs and getrs first set of records and when decision shape loops it thru again it fails (screenshot below)
Error I get