Skip to main content

I'm trying to export feature layers from ArcGIS Online to Geodatabase, then upload the Geodatabase to Google Drive. I'm using a 'Choice with Alias (multiple)' user parameter to select and export one or more feature layers. If I select one feature layer my FME script works fine. If I select more than one layer then I get a geodatabase lock error while uploading the Geodatabase to Google Drive. This is the error message:

 

PermissionError: Errno 13] Permission denied: 'C:\\\\MyDirectory\\\\MyGeodatabase.gdb\\\\_gdb.JD2344.18360.9116.sr.lock'

Error encountered while calling method `input'

GoogleDrive_Geo_CALLER (PythonFactory): PythonFactory failed to process feature

 

I'm hoping someone can suggest a solution. My FME script is attached.

Regards, Damian

The .lock file indicates that the GDB is open. Could you try putting a featureHolder or Decelerator after your featureWriter to ensure that FME has fully completed writing to the GDB.

 

Also if you have any other applications/processes accessing the GDB you will need to close these.


Thank you for your suggestions @hkingsbury​ , greatly appreciated. I tried the Featureholder but unfortunately I still got the same error. However the Decelerator did work. I guess the only issue is that I sometimes run the script on up to 80 feature layers, which means I have to set a very long delay time for the Decelerator (2 hours maybe). So if I'm only running a couple of feature layers, I still have to wait all that time for the script to run - unless I calculate a clever variable for the delay time.

Regards, Damian


Reply