Right, the exception led me to a problem with my destination list which I'm not using yet (just trying to get it to select the right data to copy) so I commented that code out and it ran fine, writing the title of each field to a line in the console.
Not really sure what the problem is with my destination list (it's on a sub site) but that's definitely causing the problem.
At least it's running though!
Not really sure what the problem is with my destination list (it's on a sub site) but that's definitely causing the problem.
At least it's running though!