[Table Column Reorder] An exception occurred in the client script.  parentNode
Web icon
Forge component by Justin Babel
Application Type
Traditional Web
Service Studio Version
11.12.7 (Build 51940)

Hello!  We have an error "An exception occurred in the client script.  Error:  Cannot read properties of undefined (reading 'parentNode') that is challenging to reproduce as the developer (it doesn't happen for me), so we have to rely on the end user.  

To reproduce, the end user accesses the application main dashboard which has a default view set with all table columns.  He then selects a saved view with the 'Created By' field.  The error comes up.  There are a few other one-off scenarios where the error will appear as well.  

In this application, the user can also create and save any number of new views.  In this case, the end user has created a view that includes a specific field which appears to be the problem:  Created By.  The issue appears to be only with that column, because if he removes it, the problem is gone.  

image (5).png

Hi Elyse,

Based on the error, there seems to either be an incompatibility of the saved JSON on the view that the user is leveraging or an issue around the timing of events on when the JavaScript and table is being loaded.

Given that this is only happening for a particular user and everything is functioning appropriately in your tests, the JSON incompatibility sounds more likely.

In the case where the users are able to save their views, if any of the values have changed on a particular column, there may be a chance of facing errors like the error shared.

A few things to check: 

1) The JSON saved for that particular view for the user at hand. Check to see if any of the column values are different than what you'd expect based on your tests and values defined for the columns in Service Studio.

2) The defined attribute name and value in Service Studio for the 'Created By' column. Ensure that the definition is consistent with the rest of the columns.

Once you are able to check these, send a follow up note on your findings and hopefully it will get us a step closer to fixing the issue.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.