ServiceNow – Migrated records not initializing UI correctly until a field is changed

sharma412
Tera Contributor

I have migrated data from a legacy system into a custom table in ServiceNow using Load Data / Import Set.

When I open a migrated record for the first time, the form does not behave as expected:

  • Normally, most fields should be read-only except Assigned to, but on the migrated record almost no fields are read-only (except Primary Contact).

  • The Activity section (Work Notes and Additional Comments with filtering) is not visible.

  • The Resolution Notes section is also missing.

  • UI Actions such as Cancel and Resolve are visible, but they do nothing when clicked.

  • The form context menu (Save, Configure, Export, Show XML, etc.) is not available.

However, if I change the value of any field (for example, Issue) and click Update, then:

  • All read-only rules apply correctly

  • Activity and Resolution sections appear

  • UI Actions start working

  • The form context menu becomes available

Simply clicking Update without changing any field does not fix the issue — a real field change is required.

4 REPLIES 4

RaghavSh
Mega Patron

check the console, there should be an error (right click + inspect) in console.

share its screenshot.


Raghav
MVP 2023
LinkedIn

sharma412
Tera Contributor

Hi Raghav,

I have attached the screenshot , if you get anything i would be great help.

did you mask the script names? Those scripts need to be checked.


Raghav
MVP 2023
LinkedIn

sharma412
Tera Contributor

when i check the error it showing on this line 

var genAICard =new GenAIRecordSummary('table_name','table label',......)
angular.element(document).scope().$on('record.updated',genAICard.onRecordUpdated.bind(genAICard));  //error in this line

and there other script in that this class GenAIRecordSummary is defined
but i have not created and added this script i think this are some inbuilt script in servicenow or plugin through this i am getting this..
Now, what can do?