Skip to main content
sarathkumr268295
January 17, 2024
Question

Getting Expression Evaluation Error

  • January 17, 2024
  • 32 replies
  • 0 views

On the click of a button, we are populating values from the process model back to the interface. This is working perfectly for some users. But for some users, its throwing expression evaluation error even when the data is same in both cases. Could this be related to any permission or security issue?

Update : This is occuring for users who only have access to site page.

Thanks in advance

32 replies

karumurua531442
January 17, 2024

Hi [mention:b08a9915dde2428e9c6dfef8cba0cdd6:e9ed411860ed4f2ba0265705b8793d05]  could you share snap shot of error for better understanding of the issue

sarathkumr268295
January 17, 2024

harshitb6843
January 17, 2024

[mention:b08a9915dde2428e9c6dfef8cba0cdd6:e9ed411860ed4f2ba0265705b8793d05] Do one thing. In the dropdown's value, check if the value is a part of choiceValues, then only show it otherwise show null. 

You can achieve this using contains() function. 

jayaprakashr0001
Participating Frequently
January 17, 2024

Hi  sarathkumarr0001,

Check whether you are passing the correct data to the interface . Sometimes it may be related to security issue as well depends on the data that you are getting from record then the user should have atleast viewer permission to access the data.

It will be helpful if you keep the error message in the  chat for better understanding

sarathkumr268295
January 17, 2024

jayaprakashr0001
Participating Frequently
January 18, 2024

How you are getting the choice values data. Using constant or getting from the record. Check whether the user have the basic permissions to the data or not

mathieud0001
Brainy
January 17, 2024

Screenshots would be helpful here.

sarathkumr268295
January 17, 2024

mathieud0001
Brainy
January 17, 2024

Looks like whatever you're using to populate the choiceValues for your dropdown is empty.

amaans4178
January 17, 2024

yes it could be related to security issue. 

sarathkumr268295
January 17, 2024

We have provided proper null checks for the field. For the same data, when I am clicking on button, interface is loading properly. But when its some other user, its throwing the error which i have attached. The data is not coming from any record. Its coming from an external system and we are parsing it and showing it in our UI

amaans4178
January 17, 2024

what's that button doing ? 

sarathkumr268295
January 17, 2024

On the click of button, we will call external system to retrieve data and show it on our UI.

January 18, 2024

check for null data and disable field component if required, also hope count of values and choice label matches.