If it is the problem with credentials, we shouldn't get even top 10 or top 100 results. And with the same credentials, we are able to fetch data from ServiceNow.
Getting error code 2200 and 401 response Azure Data Factory Copy Data ans ServiceNow connector
We are using ServiceNow connector as (linked object) as source and pulling the data into our database. If we have limited data, we are able to retrieve and copy. But if we have larger data more than 300 rows, we are seeing error code 2200 and 401 error.
The 401 received is:
{
"errorCode": "2200",
"message": "Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [HY000] [Microsoft][ServiceNow] (60) API Connection Failed (Unauthorized Access). Check credentials. HTTP Response code: 401,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=System.Data.Odbc.OdbcException,Message=ERROR [HY000] [Microsoft][ServiceNow] (60) API Connection Failed (Unauthorized Access). Check credentials. HTTP Response code: 401,Source=ServiceNowODBCPlugin_sb64.dll,'",
"failureType": "UserError",
"target": "3-LOAD-LANDING",
"details": []
}