Hello, we are working with some people on the field in Africa. They pushed the data they have been sampling today but the synchronization failed . When I try to Re-apply the changes, it does not work (see picture 1). Based on the info I got, I think the people on the field do not have the last version of the project (see picture 2). I would like to resolve this by changing the raw JSON (see picture 3) but cannot do this. Do you have any idea how I can resolve this ?
Imported from GitHub discussion by @sachatk on 2023-02-15T14:58:15Z
Is there any chance the user nouri
had an outdated version of your project file? Is it possible this layer has been deleted and readded in you project file?
Imported from GitHub comment by @suricactus on 2023-02-15T15:16:45Z
Yess the user Nouri has an outdated version of our project file… He did not synchronize before going to the field. Any ideahow I could solve this issue ? Not a lot has changed between the old and new project file.
Imported from GitHub comment by @sachatk on 2023-02-15T15:18:33Z
Short answer: no, you cannot do much beyond manual fix.
Long answer: you can trick the system in two different ways.
-
download the .qgs
file from the cloud and manually change the layer id in the XML file to match the one in the error, or just reupload the outdated .qgs file. Do not reupload anything else besides the .qgs file. Then try to reapply the changes, QFieldCloud should accept them.
-
download the raw JSON files on you machine and feed them to the apply_deltas.py
script https://github.com/opengisch/qfieldcloud/blob/master/docker-qgis/apply_deltas.py. You can get some inspiration how to run it from here QFieldCloud/docker-qgis/tests/test_apply_deltas.sh at master · opengisch/QFieldCloud · GitHub .
Either way, it is far from the most pleasent thing to do. We will look for QFieldCloud native solution for such problems in the future, but this is all we have for now.
If you need extra support, please drop us an email on infoopengis.ch .
Imported from GitHub comment by @suricactus on 2023-02-15T15:27:05Z
You mean the qgz file ? I do not have any qgs file.
Imported from GitHub comment by @sachatk on 2023-02-15T15:37:47Z
.qgz is the zipped version of the .qgs file. If you open the .qgz file with your archive manager you will find your .qgs file inside. So they are practically the same thing, using the .qgz has some benefits from user perspective and it is the default in QGIS.
Imported from GitHub comment by @suricactus on 2023-02-15T15:44:52Z
Hello, could you show me how to access this download this qgs file and acces the XML file ? I cannot find this file… when downloading the project via the QGIS plugin…
Imported from GitHub comment by @sachatk on 2023-02-15T15:56:06Z
Hey sachatk , as I said, you have to open the .qgz file with your archive manager program, not with QGIS. Note both solutions I have mentioned above are for quite advanced QGIS/Python users. I will leave any further help to the broader QFieldCloud community for now. As I said before, you can also ask for a support offer on infoopengis.ch .
Imported from GitHub comment by @suricactus on 2023-02-15T17:05:18Z