Error when loading form with a!queryEntity

We have SAIL Form which takes inputs from user and query database using a!queryEntity, passing those inputs.
We are facing issue, sometimes we receive error pop-up on UI when user enters details to fetch data from database, but sometimes database transaction is successful. When we checked logs-

"com.appiancorp.process.expression.ExpressionRuntimeException$AppianExceptionWithRootCauseProvider: Expression evaluation error in rule 'prequal_cpe_create_device_search' (called by rule 'Show_User_data_UI') at function a!buttonWidget [line 76]: An error occurred while executing a save: Expression evaluation error in rule 'Fetch_User_Data_From_Database' at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-019)
./server.log.2016-04-18:18:45:16,285 INFO [stdout] (ajp-/144.226.143.101:8009-26) Caused by: com.appiancorp.suiteapi.common.exceptions.AppianException: An error occurred while executing a save: Expression e...

OriginalPostID-207641

OriginalPostID-207641

  Discussion posts and replies are publicly visible