I am trying to select some fields on a list using pnp.sp.web.lists.getByTitle('Test Case').items.get().
But I am facing the error: 'Input string was not in a correct format'. This is weird because the same code works for another list.
I also did try to use the select option, but many fields are not located. 'Title' and 'Id' works fine the following code. I also did try using 'Author', but same result.
pnp.sp.web.lists.getByTitle('Test Case').items.select( 'Title', 'Id','Author0') .get().then(function(items) {
console.log(items);
});
The code returns the error:
'The query to field 'Author0' is not valid. The $select query string must specify the target fields and the $expand query string must contains Author0.'
Any ideia of what could be the issue on that list or in the fields?
Thanks