Hello,
When attempting to add a {COMPONENT} feed to an HTML or a Text widget, we receive an error message: "Cannot read properties of undefined (reading 'replace').
This appears to be specific to our application (LCA). For example, the error still occurs when the existing LCA is duplicated. On a brand new empty LCA, there are no errors.
Although the page is loaded with errors in the F12 Developer Tool of our web browsers, we're not able to see anything specific to the error message above.
We are currently running DataMiner (10.4.12.0-15149).
Any insights on this issues?
Thank you!
This issue is most likely caused by the app being in a corrupt state. This corruption can occur when multiple people edit the app simultaneously (which is no longer possible).
To fix the app, follow these steps:
-
Navigate to:
C:/Skyline DataMiner/applications/[your app GUID from the URL]/[latest_version]
-
Open
App.config.json
and access thePages
folder. -
Compare the IDs of Panels and Pages inside
App.config.json
against thedmadb.json
files in thePages
folder. -
Remove any file that is not present inside
App.config.json
.
Once App.config.json
is in sync with the files in Pages
, the error should disappear.
If your app contains a large number of pages and panels, we can handle this for you, as we have tools to quickly validate it. Feel free to reach out to techsupport@skyline.be in that case.
Hi Kobu,
While I cannot tell you why this error occurs in the specific LCA you are building, I can say that this issue is most likely fixed in a newer version of the Web apps. I suggest that you perform a Web-only upgrade to a more recent version and check if the issue still occurs. A web-only upgrade will only upgrade the web apps without any DMS downtime.
Thank you Wout! I believe this issue carried over when we upgraded the DataMiner from 10.4.10.0 to 10.4.12.0.
Gilles' suggestion did the trick in getting the {COMPONENT} function to work again.
Thanks again!
Thanks so much Gilles, there was one file that was not inside the App.config.json.
After removing the file and reloading the LCA, we're able to get the functioning {COMPONENT} in the Web and the Text panels.
Thank you again!