Skip to main content
sarathkumr268295
Known Participant
Jan 17, 2024 12:05 PM UTC
Question

Getting Expression Evaluation Error

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
Participating Frequently
Jan 17, 2024 12:06 PM UTC

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

sarathkumr268295
Known Participant
Jan 17, 2024 12:24 PM UTC

harshitb6843
Brainy
Jan 17, 2024 12:41 PM UTC

[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
Jan 17, 2024 12:10 PM UTC

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
Known Participant
Jan 17, 2024 12:27 PM UTC

jayaprakashr0001
Participating Frequently
Jan 18, 2024 1:33 AM UTC

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
Genius
Jan 17, 2024 12:12 PM UTC

Screenshots would be helpful here.

sarathkumr268295
Known Participant
Jan 17, 2024 12:24 PM UTC

mathieud0001
Genius
Jan 17, 2024 12:25 PM UTC

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

amaans4178
Brainy
Jan 17, 2024 12:20 PM UTC

yes it could be related to security issue. 

sarathkumr268295
Known Participant
Jan 17, 2024 12:25 PM UTC

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
Brainy
Jan 17, 2024 12:28 PM UTC

what's that button doing ? 

sarathkumr268295
Known Participant
Jan 17, 2024 12:29 PM UTC

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

Participating Frequently
Jan 18, 2024 5:51 AM UTC

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