sysparam_limit is not honoured for some objects in my Servicenow instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 10:15 PM
Servicenow Object returns less no of records in response than the value specified in sysparam_limit.
I am using the below API call to fetch rows of a table. Ideally it should return 2000 rows but I am getting much less no of rows in response.
Could you please suggest is there anything I am missing here?
OR
why sysparam_limit property is not working properly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 10:43 PM - edited 12-18-2023 10:48 PM
Hi @skansal
there are different reasons possible.
One could be that loading 10000 records from a table with much data takes longer that the configured "Transaction Quota Rules". In that case ServiceNow interrupts further loading and you will receive less than 10000 records.
A second reason could be that some data in your table is restricted via ACLs. In that case you will get less records than 10000. See the following article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0676165
Another reason could that your table actually has less than 10000 records.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 10:56 PM
Hi, I have more than 10000 records in the table and even if I set the sysparam_limit as 100, then also the results are not proper. intermittently I am getting different no of rows for different values of sysparam_limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 11:11 PM
Hi @skansal
without access to your instance and the chance to examine your requests and results and I cannot tell you more than I already have provided.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 01:14 AM
Hi, for some objects it is working fine, whereas the issue is observed for some objects like sys_attachment, sys_email, etc.
any idea what could be reason behind these objects not honouring sysparam_limit