<?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 Re: Sys id returned but record does not exist in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108754#M531332</link>
    <description>&lt;P&gt;Hi Collin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess I am quite a newbie to ServiceNow. I actually thought something like that, and I see many BR's are present on that table. I am wondering if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 09:20:34 GMT</pubDate>
    <dc:creator>gianlucagil</dc:creator>
    <dc:date>2024-11-20T09:20:34Z</dc:date>
    <item>
      <title>Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3107857#M531291</link>
      <description>&lt;P&gt;I have a strange behaviour when trying to create a record: everything seems to work fine but the record is not actually created, though insert() method returns a sys id. How can I find what's happening?&lt;/P&gt;&lt;P&gt;This is the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var taskGr = new GlideRecord('wm_task');&lt;/P&gt;&lt;P&gt;taskGr.initialize();&lt;BR /&gt;taskGr.u_snj_mandatory_task = false;&lt;BR /&gt;taskGr.short_description = taskDescription;&lt;BR /&gt;taskGr.u_snj_request_type = requestType;&lt;BR /&gt;taskGr.parent = woSysId;&lt;BR /&gt;taskGr.state = 1;&lt;BR /&gt;taskGr.substate = 10;&lt;BR /&gt;taskGr.u_snj_model_requested = woModel;&lt;BR /&gt;taskGr.u_snj_stockroom = woStockroom;&lt;BR /&gt;taskGr.assigned_to = woAssignTo;&lt;BR /&gt;taskGr.assignment_group = woAssignmentGroup;&lt;BR /&gt;var insertedId = taskGr.insert();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I show&amp;nbsp; insertedId on a UI message and it does have a value, but there are no records on the table&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 12:16:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3107857#M531291</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-19T12:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108735#M531329</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;most likely there is some business rule or acl that prevents you from creating/inserting a record in the table. So check those table configurations.&lt;BR /&gt;initialize or using a .do reserves a sysid + recordnumber... but when you abort the action nothing is created.&lt;BR /&gt;&lt;BR /&gt;Hopefully this gives you some guidons.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Collin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:10:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108735#M531329</guid>
      <dc:creator>Collin Romeijn</dc:creator>
      <dc:date>2024-11-20T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108743#M531330</link>
      <description>&lt;P&gt;Hi Collin,&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess I am quite newbie to ServiceNow. I actually thought something about that, and I see that there are many BR's on that table. I wonder if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed for that.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:16:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108743#M531330</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-20T09:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108749#M531331</link>
      <description>&lt;P&gt;Hi Collin,&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess, I'm quite a newbie to ServiceNow. I actually thought something like that, and I see that many BR's are present on that table. I am wondering if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:18:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108749#M531331</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-20T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108754#M531332</link>
      <description>&lt;P&gt;Hi Collin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess I am quite a newbie to ServiceNow. I actually thought something like that, and I see many BR's are present on that table. I am wondering if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:20:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108754#M531332</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-20T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108762#M531334</link>
      <description>&lt;P&gt;Hi Collin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess I am quite a newbie to ServiceNow. I actually thought something like that, and I see many BR's are present on that table. I am wondering if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:24:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108762#M531334</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-20T09:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sys id returned but record does not exist</title>
      <link>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108817#M531340</link>
      <description>&lt;P&gt;Hi Collin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. As you may guess I am quite a newbie to ServiceNow. I actually thought something like that, and I see many BR's are present on that table. I am wondering if either an 'after' BR is able to abort record insertion, or if a 'before' one is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 10:37:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/sys-id-returned-but-record-does-not-exist/m-p/3108817#M531340</guid>
      <dc:creator>gianlucagil</dc:creator>
      <dc:date>2024-11-20T10:37:03Z</dc:date>
    </item>
  </channel>
</rss>

