2/16/2023 0 Comments The renamer not workingRename_management (t, 'testing.gdb' ) > MappingTemplate_gdb = 'U:\\R_Allen\\test\\testing.gdb' > MappingTemplate_RenameTyped_gdb = 'U:\\R_Allen\\test\\testing_retyped.gdb' > arcpy. 'U:\\R_Allen\\test\\testing.gdb' > arcpy. Rename_management (t, 'testing2.gdb' ) > t = 'U:\\R_Allen\\test\\testing.gdb' > t Rename_management (r, 'testing.gdb' ) > t = r 'U:\R_Allen\test\testing.gdb' > arcpy. '\\\\cordata\\Universal\\R_Allen\\test\\StormJetting.gdb' > arcpy. > r = r '\\cordata\Universal\R_Allen\test\StormJetting.gdb' > r Just need to make sure nothing is connected to the FGDB, as both these methods will fail if there are lock files present. If not, a FGDB is just a folder and can be renamed with os.rename. The fact that it works for you on local drive but not network suggests that it should work. Tested a few path formats, as well as variables vs. I don't have 10.1 to test, but in 10.2.1 Rename_management works just fine to rename a FGDB across network using UNC or mapped drives. Interface and no data is sent to or received from the Internet.įile "C:\TEST\RenameModel\Script\renameSdrviemappingTemplateTyped.py", line 18, in įile "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 3181, in RenameĮxecuteError: ERROR 999999: Error executing function. This connection is not visible on any external Makes to its subprocess using this computer's internal loopback Personal firewall software may warn about the connection IDLE Type "copyright", "credits" or "license()" for more information. MappingTemplate_RenameTyped_gdb = "S:\\WSL\\testing\\MappingTemplate_RenameTyped.gdb"Īrcpy.Rename_management(MappingTemplate_gdb, MappingTemplate_RenameTyped_gdb, "Workspace") MappingTemplate_gdb = "S:\\WSL\\testing\\MappingTemplate.gdb" It will work if I change the paths to C:\drive (local) NOT network. I have exported the model to python, but it does not work on the network. I have a model created from ModelBuilder to Rename a file geodatabase.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |