getting error "Cannot read property "name" from undefined " in workplace central

jp_rayudu_0909
Tera Contributor

While accessing the floor map of a building from Workplace Central, I'm encountering the following error: *"Cannot read property 'name' from undefined."* Maps are installed, and they load and work correctly when creating a scenario plan. However, when I try to open the floor map directly from the building view, this error appears.

 

jp_rayudu_0909_0-1730704737994.png

Does anyone know if this error might be due to a system property, ACL, or script?

 

4 REPLIES 4

nikhilguntupall
ServiceNow Employee
ServiceNow Employee

Hi @jp_rayudu_0909 , were you able to resolve the issue? If yes can you share the resolution steps you followed, i am facing the same issue.

 

Hey Hi @nikhilguntupall ,

So we are using Workplace entities, coming to map based administration if we delete any workplace entity record in workplace entity table it will create impact on allocation table like, related allocation record will be active true but the entity name will be shown as empty due to this in map based administration maps were unable to get the name of the workplace entity record in allocation table.

Arvid
ServiceNow Employee
ServiceNow Employee

Hello @jp_rayudu_0909 , can you please confirm that the "Scenario Planning" view is active for the buildings and floors?

You can manage the views by opening Map Studio > go to "view editor" > select "Scenario Planning" and edit the view from here.

 

Arvid_0-1740138611047.png

 

Best regards,

Arvid

Andrea7
Tera Guru

Hi @jp_rayudu_0909,

You may need to run the following fix script "Load space details table- current state", this job populates the tables used to create a Scenario.

 

I hope that helps!