500 - Internal server error appears when updating a record on NOW mobile app on an iOS deviceIssue When updating a record in NOW mobile app on iOS device, users may see "500 - Internal server error". This message doesn't appear on Android devices.The following warning and error can be seen in the logs txid=1858888a1b17 WARNING *** WARNING *** Unable to execute scripted data item: <sys_id> txid=1858888a1b17 SEVERE *** ERROR *** An error occurred while submitting an actionjava.lang.IllegalStateException: Query script execution failureat com.glide.sg.data_item.ScriptedDataItem.getQuery(ScriptedDataItem.java:68)at com.glide.sg.data_item.DataItem.doesRecordMatch(DataItem.java:177)at com.glide.mobile.screen.document.SGRefreshedItemProvider.getRefreshedItem(SGRefreshedItemProvider.java:53)at com.glide.mobile.screen.document.SGTemplateProvider.getDocumentWithRefreshedItem(SGTemplateProvider.java:85)at com.glide.mobile.screen.document.SGTemplateProvider.getRefreshedDocument(SGTemplateProvider.java:65)at com.glide.sg.rest.SGRESTService.submitAction(SGRESTService.java:231)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)at com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:286)at com.glide.processors.AProcessor.runProcessor(AProcessor.java:553)at com.glide.processors.AProcessor.processTransaction(AProcessor.java:241)at com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:177)at com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:166)at com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)at com.glide.sys.Transaction.run(Transaction.java:2218)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)CauseThe error occurs in iOS devices when the queryString is not returned in the Scripted Data item.ResolutionMake sure that the queryString is always returned in the script of the Data item. If there are any conditional statements used, make sure that the "return queryString;" statement can be put outside of the conditional blocks. Related LinksConfigure a data item in the platform