Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QField Offline layer is empty #4695

Closed
Oisin-JK opened this issue Oct 27, 2023 · 7 comments
Closed

QField Offline layer is empty #4695

Oisin-JK opened this issue Oct 27, 2023 · 7 comments
Labels
QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue

Comments

@Oisin-JK
Copy link
Sponsor

I have a QGIS project, with multiple layers. Some are shape (.shp) files, others are geopackage (.gpkg) files.

I am having problems with one of the layers in a geopackage called 'trees.gpkg'. The geopackage contains two layers: 'tree-pt' and 'tree-ar', containing approximately 2500 and 200 features respectively .

I am packaging using QFieldSync for cable export. Cable layer action for both layers is set to offline editing. However, in the packaged QField project, the layer 'tree-pt' is empty. All source files and QField project are on local (not network) drives.

If I set the 'Cable layer action' action for 'tree-pt' to copy, it is not empty.

If I create two geopackages, one for each layer, and for each set 'Cable layer action' to 'offline editing', neither is empty. This is a workaround solution that I will use, but I suspect this is a bug and hence why I have posted the issue.

Although I have encountered this issue on other projects, it does not occur for all projects and I cannot reliably recreate the issue. For this particular project, I have tried creating a new project using the same layers but the problem persists. In this same project I have another geopackage called 'relations.gpkg' that contains three non-spatial tables. These are also set to 'offline editing' and all package successfuly for QFIeld.

To be clear, the issue seems to be that for a particular geopackage file containing two (or more?) layers, when using 'offline editing' one layer does not package correctly and is empty in the QField Project.

Software

  • OS: Windows10
  • QGIS Version 3.28.11
  • QFieldSync Version 4.6.0

Unfortunately, I cannot share the project publicly.

Any suggestions welcomed.

@nirvn nirvn added the QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue label Oct 29, 2023
@nirvn
Copy link
Member

nirvn commented Oct 29, 2023

@Oisin-JK , without access to a sample dataset to replicate the issue here, it'll be difficult to fix it. Try to come up with a small sample project you can share.

@Oisin-JK
Copy link
Sponsor Author

Hi Mathieu
I could share the full project with you, but just not on a public forum. Is that possible?

@ckpusitaro
Copy link

we have similar error, maybe @nirvn can check my project in qfieldcloud community project.
project name "KRK-KKPR"
username "ckpu-sitaro"
broken layer name "Polaruang_Sitaro"

@nirvn
Copy link
Member

nirvn commented Mar 15, 2024

I think this should be fixed with qfieldsync 4.9.0.

@ckpusitaro
Copy link

have been using the 4.9.0, the problem still, no feature shown

@nirvn
Copy link
Member

nirvn commented Mar 15, 2024

@ckpusitaro , can you try to change the packaging offliner to "optimized packager" in your cloud project settings (on app.qfield.cloud):

image

@ckpusitaro
Copy link

Thanks @nirvn Works like a charm!

@nirvn nirvn closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue
Projects
None yet
Development

No branches or pull requests

3 participants