iOS Offline app after synchronisation: Unable to find objects for guids

We encounter a problem on iOs with an offline app after synchronisation. The android devices do not throw this kind of error.  We get the following error message using modeller 7.24, runtime 7.23.4: Connector: com.mendix.systemwideinterfaces.MendixRuntimeException: Unable to find objects for guids: Set(24206847997121996) 11:43:12APPINFOat com.mendix.webui.actions.client.RegularClientActions$.doCommit(RegularClientActions.scala:192) 11:43:12APPINFOat com.mendix.webui.actions.client.RegularClientActions$.synchronize(RegularClientActions.scala:179) 11:43:12APPINFOat com.mendix.webui.requesthandling.ClientRequestHandler.$anonfun$clientActions2$11(ClientRequestHandler.scala:62) 11:43:12APPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$4(RegularClientAction.scala:46) 11:43:12APPINFOat com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:33) 11:43:12APPINFOat com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:21) 11:43:12APPINFOat com.mendix.webui.actions.client.RegularClientAction.withState(RegularClientAction.scala:21) 11:43:12APPINFOat com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:44) 11:43:12APPINFOat scala.util.Try$.apply(Try.scala:213) Any ideas how to resolve this?
1 answers

If you are hosting in a cloud foundry environment, you will need an additional file storage service. In a cloud foundry environment, all file objects will be lost when you restart the app. this causes problems with the sync because the DB still sees the file objects in the database, but they are empty objects.

Either add on a file storage service, or delete the empty objects and the sync should start working.

Important to note when checking the file document objects, don’t use the hasContents attribute to check, as this may be true even if the file is missing. rather check that the contents attribute is != empty