Packaging file pathway issue

Hi,

I’m having an issue when packaging my map to Qfield. All of the SHP’s I’m using are on a local database on my PC.

Issue - (Example) is outside the project’s home directory. QFieldSync may not transfer your layer.

The package goes ahead - when I open the map on Qfield on my phone none of the layers are available.

In the package folder it creates on my PC all of the shp files are in there

I have created a different map previously in the same way and haven’t had an issue.

Hello and welcome Albatross. Some questions for you, to see if we get a solution that works for you:

  • If you open the .qgs of the generated package folder on your PC in QGIS, what path does it use for your .shp files? Is it the local copied .shp, or the ones in your local database?
  • Have you tried Shared datasets (link to documentation)? You’ll need to do a little bit of setup at first, but might be a good solution for your problem. It’s essentially a way to let QField know how to handle reusable files on central locations without forcing you to change much of your current workflow. It works with cable transfers and QFieldCloud, although of course the cable transfer is a little more involved.
  • On your previous successful attempts, were you also working with .shp files on this same “local database”?

Hi cuprico, thank you.

-When I create the .qgs it saves all of the shp files added to my map from my data base into the folder it’s created in. Even when I get the package error of “shp. is outside of home directory” it still creates the package folder the way it should. None of the pathways seem broken

When transferred and opened on my phone it says unable to load layers.

Since creating a new map project the error is now happening on the map that was previously working fine.

Thanks for your help.

Albatross