Facing issue with Duplicate default view is creation

Community Alums
Not applicable

Hi All,

I am facing issue with creation of Duplicate "Default" view in our instance.

Recently we are facing issue with duplicate view "Default"   on demand table. When ever we create a new record or open a demand from list layout, The form is opening in "Default" (Name is "default") view. But it should open with OOB Default view (which has empty name).

Even I have deleted the entries under "System UI > Views", I can see Demand forms are opening with "default" view. I observed new "Default" view created when ever I opened the Demand form.

Below is the URL I can see when I open the Demand form (Highlighted the sysparm_view of the form )

https://<instance_id>.service-now.com/dmn_demand.do?sys_id=de4b2ae4db34cf00ab6a70d9bf961975&sysparm_view=default&sysparm_record_target=dmn_demand&sysparm_record_row=2&sysparm_record_list=sys_class_name%3Ddmn_demand%5EORDERBYDESCsys_updated_on&sysparm_record_rows=495

This is screenshot of duplicate default view form which doesn't have any records for related list.

find_real_file.png

Could anyone tell me how to fix the issue and what are the components I have delete to fix the issue. ctomasi

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Ramya,

 

We have one incorrect view rule, that was causing the issue. We have fixed the issue by changing the view rule. 

 

I observed if view created for Form design then logical name of view will be empty and emtpy view will show as default one. And views rules on page will cause issue.

If you created new view on table, then check the logical name of view. There should be one view without logical name.

Please explain your more detail if you are still facing the issue.

View solution in original post

9 REPLIES 9

cynlink1
Tera Expert

Hello,

 

Will you please let me know where do I check the logical name of the view? Also, should every scoped app have a view rule associated to it?

 

Thank you so much!

Cyndi

 

 

cynlink1
Tera Expert

Another question just came to mind >> after you identified and fixed the issue with the incorrect view rule, did you have to run a script to identify and clean-up the duplicate views? If yes, would you mind sharing it with me?

Community Alums
Not applicable

Hi Cyndi,

Check for sysparm_view tag in URL of record to get the logical name of view. I am not sure about scoped app, But I guess there will be view rule as well.

 

We haven't run script to identify duplicate views. We have changed the View name in script itelf. Invalid view in script wont create new View record  Under  "sysparm_view"  table. It just add view name in URL.

 

Check "sys_ui_form" table for list of Views associated with forms. Check this table to see list of available views for your table and remove if any duplicate view exist.

cynlink1
Tera Expert

Swamy,

 

Thank you so much for the additional information. I will let you know if any more questions surface. 

 

Thanks again!

Cyndi

 

rakesh241
Giga Contributor

Hi Swamy,

I am facing a similar issue in our instance. I deleted the Duplicate default view. I see all the related records to this view are deleted and then I had to again delete the record from sys_ui_view. But strangely I see this view is getting created again. Like you suggested I had a look at the view rules, but I see there are not view rules existing. I am on Problem Table. Could you think of any other reasons and extend your help here. Thanks in advance

Thank you,

Rakesh