<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Unexpected Creation of 5000+ Records in sc_req_item in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3567660#M559175</link>
    <description>&lt;P&gt;(function executeRule(current, previous) {&lt;BR /&gt;&lt;BR /&gt;if (!(current.active.changesTo(false))) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;var cart = new Cart(GlideGuid.generate(null));&lt;BR /&gt;&lt;BR /&gt;cart.setRequestedFor(current.sys_id.toString());&lt;BR /&gt;&lt;BR /&gt;var cartItem = cart.addItem('sys_id_of the catalog item');&lt;BR /&gt;&lt;BR /&gt;cart.setVariable(cartItem, 'requested_for', current.sys_id.toString());&lt;BR /&gt;cart.setVariable(cartItem, 'user_name', current.name.toString());&lt;BR /&gt;cart.setVariable(cartItem, 'email', current.email.toString());&lt;BR /&gt;&lt;BR /&gt;cart.placeOrder();&lt;BR /&gt;})(current, previous);&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;I implemented an &lt;STRONG&gt;After Update Business Rule&lt;/STRONG&gt; on the sys_user table to automatically trigger a catalog item whenever a user is deactivated (Active changes from true to false).&lt;/P&gt;&lt;P&gt;The Business Rule uses cart.placeOrder() to create a request for the catalog item. However, after deploying it, I observed that more than &lt;STRONG&gt;5000 records were automatically generated in the sc_req_item table&lt;/STRONG&gt;, including records for users who were not intentionally deactivated.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;could any assist me to figureout what could be the reason.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2026 12:55:07 GMT</pubDate>
    <dc:creator>AshutoshaP</dc:creator>
    <dc:date>2026-07-02T12:55:07Z</dc:date>
    <item>
      <title>Unexpected Creation of 5000+ Records in sc_req_item</title>
      <link>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3567660#M559175</link>
      <description>&lt;P&gt;(function executeRule(current, previous) {&lt;BR /&gt;&lt;BR /&gt;if (!(current.active.changesTo(false))) {&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;var cart = new Cart(GlideGuid.generate(null));&lt;BR /&gt;&lt;BR /&gt;cart.setRequestedFor(current.sys_id.toString());&lt;BR /&gt;&lt;BR /&gt;var cartItem = cart.addItem('sys_id_of the catalog item');&lt;BR /&gt;&lt;BR /&gt;cart.setVariable(cartItem, 'requested_for', current.sys_id.toString());&lt;BR /&gt;cart.setVariable(cartItem, 'user_name', current.name.toString());&lt;BR /&gt;cart.setVariable(cartItem, 'email', current.email.toString());&lt;BR /&gt;&lt;BR /&gt;cart.placeOrder();&lt;BR /&gt;})(current, previous);&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;I implemented an &lt;STRONG&gt;After Update Business Rule&lt;/STRONG&gt; on the sys_user table to automatically trigger a catalog item whenever a user is deactivated (Active changes from true to false).&lt;/P&gt;&lt;P&gt;The Business Rule uses cart.placeOrder() to create a request for the catalog item. However, after deploying it, I observed that more than &lt;STRONG&gt;5000 records were automatically generated in the sc_req_item table&lt;/STRONG&gt;, including records for users who were not intentionally deactivated.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;could any assist me to figureout what could be the reason.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 12:55:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3567660#M559175</guid>
      <dc:creator>AshutoshaP</dc:creator>
      <dc:date>2026-07-02T12:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Creation of 5000+ Records in sc_req_item</title>
      <link>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3568309#M559191</link>
      <description>&lt;P&gt;Check the business rule condition and also check why only those 5000 records were generated ? were there any recent updates to them other than active flag change ?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 14:30:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3568309#M559191</guid>
      <dc:creator>NoobNar</dc:creator>
      <dc:date>2026-07-03T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Creation of 5000+ Records in sc_req_item</title>
      <link>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3568402#M559194</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Put the condition Active changes to false in the condition builder under &lt;STRONG&gt;When to run. Hope that works!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeepakK_0-1783099788506.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/522165i51AFCDFFDEC84B9A/image-size/medium?v=v2&amp;amp;px=400" alt="DeepakK_0-1783099788506.png" title="DeepakK_0-1783099788506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 17:38:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unexpected-creation-of-5000-records-in-sc-req-item/m-p/3568402#M559194</guid>
      <dc:creator>Deepak K</dc:creator>
      <dc:date>2026-07-03T17:38:22Z</dc:date>
    </item>
  </channel>
</rss>

