Tokyo, UI Builder Error - "The Definition for this data resource instance could not be found"

tmonty79
Tera Contributor

Has anyone else experienced this? Everything was working fine. I added one new component to my page, then suddenly ALL of my data resources are displaying this message.

 

  • Running cache.do did not work.
  • Clearing my browser cache did not work.
  • If I add and configure a new data resource, the system recognizes the old data resources again, but none of the fetched data is displayed on the page.

The only solution I've found so far is to completely delete ALL of my data resources and build them from scratch.  This is the second time I've lost my work to this.  If this is to be the norm on the ServiceNow platform, we may consider a different vendor.

 

tmonty79_0-1679933612521.png

 

5 REPLIES 5

John Dahl
Tera Guru

Yep... I had this issue, but I don't believe I added any new components or did anything to trigger it... except quit for the day. I came back the next day to this error. Strangely, the functionality still worked on the page, but because UIB couldn't find the definition, I could not make updates.

I cleared the cache too, but then the functionality stopped worked. The definition must have been cached in the page so it worked as expected after the definition file was apparently deleted. I did not delete it so I'm not sure what happened. I recreated the data resource and everything seems to be working now.

Update: I created a new app with a new portal and multiple data resources. I saved and tested each and they were working fine. I closed the app and re-opened AES.

 

I'm getting the same issue... the Global > Look Up Records data resources are being deleted.

Update - Trigger and work around


After I experience this issue for the first time on a given page, it will consistently happen every time I open the page in UI Builder for the first time.  After it's corrected, the data resources will persist for the rest of that session.

 

Work around:
In my case, the data resources are not deleted, they're just "lost". I can restore them by doing the following:

  1. Add a new data resource to the page (I use a data lookup) and save the page.
  2. The original data resources are restored, but their "When to evaluate…" setting is reset for some reason.  So I correct the "When to evaluate…" setting, then save the page.
  3. At this point, the original data resources are restored.  Delete the temporary data resource from step 1.

This is annoying, but at least I don't have to recreate all of the data resources every time. I hope this helps.

 

Issue: Data resources are not found

step-1.png

 

Step 1: Add a new temporary data resource and save the page.

step-2.png

 

Step 2: After the page is saved with a new data resource, the original data resources are restored, but the "When to evaluate..." setting is changed/reset.  Adjust this setting if needed and save the page.  The issue should be resolved at this point.  Delete the temporary data resource.

step-3.png

Interesting... thanks for the update @tmonty79. Did you find that all of the other properties were there? In my case, all of the "Return fields" are cleared out. Your screenshot suggests the same.

 

JohnDahl_0-1680798625188.png