qfieldsync icon indicating copy to clipboard operation
qfieldsync copied to clipboard

Cannot open the project file when the export folder is defined by UNC path

Open jpdupuy opened this issue 2 years ago • 4 comments
trafficstars

Describe the issue

On Windows 10, QField reports an error when opening a local project file which has been defined in an export folder based on a UNC path (network folder)

Reproduction steps

Steps to reproduce the behavior:

  1. Configure QFieldSync to Export your project (cable export) in a network folder instead on C:/users//QField/export/ (see screenshot)
  2. Install QField for Windows on your desktop
  3. Open QField on your desktop, and select "a local project"
  4. Select your exported project from from network folder

Expected behavior

The map should be displayed without error message

Observed behavior

A blank map and an error message (see screenshot): Le fichier de projet "/QFieldProjet/Infrastructure/Export/GAZ_qfcloud_edu_qfield.qgs" n'existe pas

Screenshots and GIFs

image

image

[Please also attach additional files if a specific project/dataset is useful to investigate the problem.]

Desktop (please complete the following information)

  • OS: [Windows]
  • QGIS Version [3.28.4]
  • QFieldSync Version [4.4.8]

Mobile (please complete the following information)

  • Device: [Desktop]
  • OS: [Windows 10]
  • QField version: [2.7.0)]

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: [No]
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
  • Problem happens with all files and projects, not only some files or projects: [Yes]

[If the problem happened with QFieldCloud, please add your username and project name.]

jpdupuy avatar Mar 10 '23 09:03 jpdupuy

Does it work to mount the UNC path to a drive letter (as a workaround)?

m-kuhn avatar Mar 12 '23 05:03 m-kuhn

Likely related to https://bugreports.qt.io/browse/QTBUG-68634

m-kuhn avatar Mar 12 '23 09:03 m-kuhn

I have also tired this way, but it does not work . :-(

jpdupuy avatar Mar 13 '23 06:03 jpdupuy

I have occured the same problem - my usual set up for Qfield is: H:/Customer_Folder/ |____QGIS Project |____Qfield Cable |____Re-Import

I set up the QGZ / data in the QGIS Project folder, then i sync it with QfieldSync plugin into the Qfield Cable folder. This results into random behaviour: Some layers (marked for offline editing for cable sync) work, some get a "../QField Cable/Trees.gpkg" as datasource (when investigating within the created .qgs file), some only have "./Trees.gpkg" as datasource - the latter are working. I can manually manipulate the .qgs before copying it on my tablet, but this is kind of a nasty work around.

This is all happening on a network drive H:/

If i select C:/temp/ for example as output folder in QfieldSync, everything just works fine - which is a better workaround, but still requires manually copying the files back into my Customer_Folder.

meyerlor avatar May 08 '24 10:05 meyerlor