I think your issue is related to pagination and the sysparm_limit setting because ServiceNow is indicating that the query being built is too large, which prevents ADF from successfully fetching data.
So try to reduce the complexity of the query and you can do that by retrieving the necessary fields (sysparm_fields
) so you can reduce the number of fields in your query can help lower the size of the response.
You can set sysparm_suppress_pagination_header
to true
This option is mentioned in the error, and it can be set to suppress pagination headers. This means that ServiceNow will not try to paginate the response, potentially helping with large data retrieval. If ADF supports this parameter through the ServiceNow connector, you should add it to the request. However, as this isn't always exposed directly via ADF connectors, you might need to use a custom REST API connection if the standard connector doesn't support this feature.
As you mentioned, a general REST API connection could be an alternative. You can use the sysparm_limit
to control the number of records retrieved in a single request. If you're dealing with large datasets, you may need to implement paging (retrieving data in smaller chunks) and handle the pagination manually. The ADF REST connector can be used for this.