addDataFromPath credential error

225
1
Jump to solution
02-12-2024 12:21 PM
JillianStanford
Occasional Contributor III

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:

JillianStanford_0-1707769062494.png

The layer is added to the current map.

If I attempt to do this using Python, I get the following error about credentials.

JillianStanford_1-1707769125595.png

Any ideas on how to resolve this?

Thanks!

Jill

 

 

0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Frequent Contributor

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_

View solution in original post

1 Reply
RhettZufelt
MVP Frequent Contributor

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_