arcpy.Compress_management(r"Database Connections\saxon2_bierstadt_sde_loader.sde")
This didn't work for me with 10.2.2. It tells me error 000837 saying the workspace is not the correct workspace type. Any ideas?
Giving the direct C drive link worked for me as well. Thanks for posting the reply, it helped.
I am not sure if I might get any response on this thread as it looks to be quite an old thread. I am facing a very weird issue in setting the workspace. When I setup the workspace inside python window in ArcMap/ArcCatalog, it just works fine.
But the moment I do the same in a standalone script, the things do not work at all. I tried other options like creating connection file in scratch folder and then setting it as a workspace but still no luck.
This is driving me crazy and any help in this regard is really appreciated.
I interrupted my script while it was compressing the GDB during some testing. Subsequently, I received ERROR 000837 when I reran it. After running the arcpy.ClearWorkspaceCache_management() function, everything worked fine again.
Harshal,
I'm experiencing the same, what was your solution?
Thanks
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.