opengisch / qfieldsync

Sync your projects to QField
https://qfield.org/
GNU Lesser General Public License v3.0
55 stars 25 forks source link

Error messages when exporting packages with Qfield sync #583

Open Ipickedausername opened 6 months ago

Ipickedausername commented 6 months ago

After synchronizing, the following error appears:


IndexError: list index out of range 
Traceback (most recent call last):
  File "C:\Users\Artemisia\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qfieldsync\libqfieldsync.whl\libqfieldsync\offline_converter.py", line 568, in _on_offline_editing_next_layer
    layer_name=self.__offline_layer_names[layer_index - 1]
IndexError: list index out of range

Afterward, many similar messages appear for every relation widget I am using in my different layers. All relations are properly configured.

error

I have found a workaround for the second message: I need to open the properties of all my layers and click through each one to display the relation widget. After doing this, no more errors appear.

Here is a project on QGIS that must generate the error:

test_sync_QGIS.zip