Hi,
I am trying to add a feature layer in a geodatabase on a network share to a map.
Using the following tool works without issue:
The layer is added to the current map.
If I attempt to do this using Python, I get the following error about credentials.
Any ideas on how to resolve this?
Thanks!
Jill
Solved! Go to Solution.
I get different error, but what about declaring the path as a raw string?
newLayer = m.addDataFromPath(r'\\dotims4\maps\accela_update\accell_data.gdb\parcelPoint')
R_
I get different error, but what about declaring the path as a raw string?
newLayer = m.addDataFromPath(r'\\dotims4\maps\accela_update\accell_data.gdb\parcelPoint')
R_
you cannot use relative paths, it is considered a security issue (it seems)
Put the full path to your .gdb or your .sde file
The relative path worked fine once I declared it as a raw string.
Thanks!
Fun fact: I received this error when the layer file (.lyrx) I wanted to load didn't exist.