<?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: Deleted filed still shows up in the List layout and form layout but not in table ? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680326#M252105</link>
    <description>&lt;P&gt;Hi Veena,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;yeah, i can see the field in '&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;sys_storage_alias' in table. I will check on creating a ticket. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;-Raj&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Apr 2017 19:07:58 GMT</pubDate>
    <dc:creator>rajendravunnam</dc:creator>
    <dc:date>2017-04-14T19:07:58Z</dc:date>
    <item>
      <title>Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680318#M252097</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a &amp;nbsp; string field 'platform'(u_platform) , i tried to convert it into Reference. I have deleted the field and created a new one with the same name 'Platform' (u_platform) but as a reference field. All this is captured in a single update set. When this update set is moved to Dev from Beta environment, there was an error &amp;nbsp; while committing the update set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: none; border-top: solid #BDC0C4 1.0pt; background: whitesmoke; padding: 0 2.25pt 0 2.25pt;" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman',serif; color: #343d47;"&gt;&lt;A href="https://devusaa.service-now.com/sys_update_preview_problem.do?sys_id=c45cfbbd4f0e3ec0d89bcb4e0210c79b&amp;amp;sysparm_record_target=sys_update_preview_problem&amp;amp;sysparm_record_row=1&amp;amp;sysparm_record_rows=1&amp;amp;sysparm_record_list=status%3D%5eremote_update_set%3Db23cf7bd4f0e3ec0d89bcb4e0210c70d"&gt;&lt;SPAN style="color: blue;"&gt;Error&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #BDC0C4 1.0pt; background: whitesmoke; padding: 0 2.25pt 0 2.25pt;" width="239"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman',serif; color: #343d47;"&gt;&lt;A href="https://devusaa.service-now.com/sys_update_xml.do?sys_id=fe3cf7bd4f0e3ec0d89bcb4e0210c70d"&gt;&lt;SPAN style="color: blue;"&gt;sys_dictionary_change_request_u_platform&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #BDC0C4 1.0pt; background: whitesmoke; padding: 0 2.25pt 0 2.25pt;" width="351"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman',serif; color: #343d47;"&gt;Type change not allowed. Invalid type conversion for field 'Platform' on table 'Change Request'. Cannot convert from 'String' to 'Reference'. There exists data records (252) that are not a Sys ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;so, in &amp;nbsp; my Beta instance i have deleted the Reference field and added it back as a String and moved it to dev (the update set which has String configuration captured). Now dev looked good. But again i have deleted this field in beta and moved the update set to Dev. Unfortunately the field was still showing up as 'u_platform' on the form and list layout but i can't see it in the table. &amp;nbsp; When i tried to configure dictionary on this field, it is giving me 'no record found'.There were already some records for which this field is populated in Dev. &amp;nbsp; I am not sure how to fix this and what problems would arise when i move this change to TEST and beyond. Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 15:26:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680318#M252097</guid>
      <dc:creator>rajendravunnam</dc:creator>
      <dc:date>2017-04-14T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680319#M252098</link>
      <description>&lt;P&gt;I got a little lost in all the detail. Sorry, it's my brain working on too many things this morning.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What is the state of dev right now?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Do you have an entry in the dictionary for u_platform? If so, what type is it?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Is it appearing on the form/list?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 15:30:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680319#M252098</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2017-04-14T15:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680320#M252099</link>
      <description>&lt;P&gt;The field is not showing up in the table in Dev. I can't find it in the dictionary but it is showing up in both List and form. when i right click on the field('u_platform') and configure dictionary, it says 'Record not found'.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 16:00:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680320#M252099</guid>
      <dc:creator>rajendravunnam</dc:creator>
      <dc:date>2017-04-14T16:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680321#M252100</link>
      <description>&lt;P&gt;Hey Rajendra, &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Have you tried checking your form through Form Design or Form Layout to see if the field still appears there? It seems that the dictionary definition doesn't exist anymore but somehow there's still an orphan of its existence in the form definitions. I think all you need to do is remove the field from your form. Let me know if that solves your problem.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 16:36:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680321#M252100</guid>
      <dc:creator>johnolivermendo</dc:creator>
      <dc:date>2017-04-14T16:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680322#M252101</link>
      <description>&lt;P&gt;If you input information in to the field on the form and save it, does it save?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Have you looked in the dictionary for other fields called u_platform?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 16:38:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680322#M252101</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2017-04-14T16:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680323#M252102</link>
      <description>&lt;P&gt;yes, but none of them are on the table I am working on.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 17:00:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680323#M252102</guid>
      <dc:creator>rajendravunnam</dc:creator>
      <dc:date>2017-04-14T17:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680324#M252103</link>
      <description>&lt;P&gt;Hi Rajendra!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've faced this way too many times! If you check the 'sys_storage_alias' table, and search for the field name in the element column, I'm pretty sure you'll find it which is the reason you see it in the layouts, but not in the table.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;When we delete a field, the storage alias is not being deleted sometimes. Once that's deleted too, it shouldn't show up anymore. However, even admins cannot delete stuff from that table and its not advices to change the acls. You need to create a HI ticket and ask HI team to delete it for you.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 17:47:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680324#M252103</guid>
      <dc:creator>veena_kvkk88</dc:creator>
      <dc:date>2017-04-14T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680325#M252104</link>
      <description>&lt;P&gt;I tried removing it but it is still available to add to the form layout/list layout&lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" data-renderedposition="8_473_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/sad.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 19:01:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680325#M252104</guid>
      <dc:creator>rajendravunnam</dc:creator>
      <dc:date>2017-04-14T19:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680326#M252105</link>
      <description>&lt;P&gt;Hi Veena,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;yeah, i can see the field in '&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;sys_storage_alias' in table. I will check on creating a ticket. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;-Raj&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Apr 2017 19:07:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680326#M252105</guid>
      <dc:creator>rajendravunnam</dc:creator>
      <dc:date>2017-04-14T19:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680327#M252106</link>
      <description>&lt;P&gt;Hi Veena,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much, you have helped me resolve this pesky issue!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dan&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:36:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680327#M252106</guid>
      <dc:creator>DanielG50278433</dc:creator>
      <dc:date>2018-08-06T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680328#M252107</link>
      <description>&lt;P&gt;For future readers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following Veena's suggestion, I took at look at 'sys_storage_alias' table and found me "ghost field" in there. Moreover, I was able to delete a record in that table without contacting HI.&lt;/P&gt;
&lt;P&gt;I ran the following background script to delete the record:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var sys_id = "e7e80a80dbb35f00a41efb0e0f96199b"; // substitute your sys id
var gr = new GlideRecord('sys_storage_alias');
gr.get(sys_id);
gs.info(' Table Name: ' + gr.table_name + ' Column Name: ' + gr.element_name);
gr.setWorkflow(false);
var flag = gr.deleteRecord();
gs.info(flag); // will return true if record is deleted successfully&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:46:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680328#M252107</guid>
      <dc:creator>DanielG50278433</dc:creator>
      <dc:date>2018-08-06T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680329#M252108</link>
      <description>&lt;P&gt;Hi Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the same script and executed it in the background script.&lt;/P&gt;
&lt;P&gt;The record is deleted from the&amp;nbsp;'sys_storage_alias' but, still, the field is available in the form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to hide via UI Policies, but no luck&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 04:52:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680329#M252108</guid>
      <dc:creator>DNC</dc:creator>
      <dc:date>2021-08-31T04:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680330#M252109</link>
      <description>&lt;P&gt;Hi Nagarjuna,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using the following &lt;A href="https://docs.servicenow.com/bundle/quebec-application-development/page/build/applications/concept/c_FixScripts.html" target="_blank"&gt;Fix Script&lt;/A&gt;&amp;nbsp;to fully and cleanly delete table columns as it requires not only clearing sys_storage_alias, but also sys_dictionary and sys_documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Name:&amp;nbsp;&lt;/STRONG&gt;Delete table column&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Active:&lt;/STRONG&gt; true&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Unloadable:&amp;nbsp;&lt;/STRONG&gt;false&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Run once:&amp;nbsp;&lt;/STRONG&gt;false&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Flush cache:&amp;nbsp;&lt;/STRONG&gt;false&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Before:&amp;nbsp;&lt;/STRONG&gt;false&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Description:&amp;nbsp;&lt;/STRONG&gt;Deleting a column doesn't cleanly remove all references to it. Use this script to cleanly delete table columns.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;// Replace with your table name
var table = 'incident';

// Replace with your column name
var column = 'u_metric';

// Running and checking success
gs.info("cleanDict successful? " + cleanDict(table, column));
gs.info("cleanAlias successful? " + cleanAlias(table, column));
gs.info("cleanDoc successful? " + cleanDoc(table, column));


function cleanDict(table, column) {
	var gr = new GlideRecord('sys_dictionary');
	gr.addQuery('name', table);
	gr.addQuery('element', column);
	gr.query();
	while (gr.next()){
		gr.setWorkflow(false);
		return gr.deleteRecord();
	}
}

function cleanAlias(table, column) {
	var gr = new GlideRecord('sys_storage_alias');
	gr.addQuery('table_name', table);
	gr.addQuery('element_name', 'CONTAINS', column);
	gr.query();
	while (gr.next()){
		gs.info(gr.getDisplayValue());
		gs.info(' Table Name: ' + gr.table_name + ' Column Name: ' + gr.element_name);
		gr.setWorkflow(false);
		return gr.deleteRecord();
	}
}

function cleanDoc(table, column) {
	var gr = new GlideRecord('sys_documentation');
	gr.addQuery('name', table);
	gr.addQuery('element', 'CONTAINS', column);
	gr.query();
	while (gr.next()){
		gs.info(gr.getDisplayValue());
		gs.info(' Table Name: ' + gr.name + ' Column Name: ' + gr.element + ' Column Label: ' + gr.label );
		gr.setWorkflow(false);
		return gr.deleteRecord();
	}
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After it's all set up, you can Run Fix Script with the UI action on the Fix Script form. Note that if you've already delete your column from sys_storage_alias, the deletion will appear not successful because the record is already gone.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 17:34:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/680330#M252109</guid>
      <dc:creator>DanielG50278433</dc:creator>
      <dc:date>2021-08-31T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted filed still shows up in the List layout and form layout but not in table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/2430385#M482455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Background Script to find out those which are not sys_id :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ga = new GlideAggregate('table_name');           
var c = 0;
ga.groupBy('field_name');
ga.query();
while (ga.next()) {
if (ga.field_name.toString().length!=32){
gs.print(ga.field_name);
c+=1;
}}
gs.print(c);&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 Jan 2023 15:58:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/deleted-filed-still-shows-up-in-the-list-layout-and-form-layout/m-p/2430385#M482455</guid>
      <dc:creator>RiteshSwarnakar</dc:creator>
      <dc:date>2023-01-01T15:58:59Z</dc:date>
    </item>
  </channel>
</rss>

