Hi, I am updating the storage using 5 calls in a row, data is in json format (key + array in a form of string). I do all this calls in a row, also they all have separate callback classes. Sometimes it works fine, sometimes it throws an exception "Exception : com.shephertz.app42.paas.sdk.csharp.App42Exception: System.InvalidCastException: Cannot cast from source type to destination type.". The data I am sending is the same, but sometimes it doesn't go through. If I set up a one second delay between each call - then it works without an exception, but the delay is too long in this case. The example code is below. What is the best solution for this case? Since it sometimes work, sometimes it does not (while the data is the same) - I do not think that it can not really cast something.
storageService.AddOrUpdateKeys(dbName,"Games",gameToJoin,"{\"deck\":"+ deckk+ "}",new UnityCallBack1());
storageService.AddOrUpdateKeys(dbName,"Games",gameToJoin,"{\"hand1\":"+ hand11+ "}",new UnityCallBack2());
storageService.AddOrUpdateKeys(dbName,"Games",gameToJoin,"{\"hand2\":"+ hand22+ "}",new UnityCallBack3());