I am facing an issue while attempting to retrieve data from a SharePoint list using the REST API. The list contains a single line of text column named "DisplayName". However, when making a REST API call to fetch items, the response does not include the DisplayName column.
Attempted Solution: I have tried to include a select query for the DisplayName column in the API call, as shown below:
_api/web/lists/getByTitle('SharepointList')/items(14)?$select=ID,DisplayName
However, this results in an error with the message:
'Value does not fall within the expected range.'
A screenshot illustrating the error is attached for reference:
Query:
- Can someone please explain why this error is occurring?
- Is there a specific approach or modification to the API call that needs to be made to successfully fetch data from the DisplayName column?
- Are there any additional considerations or configurations that might be causing this issue?
Any guidance or assistance in resolving this problem would be greatly appreciated.
Thank you in advance.

