I don't recognize the connection.sde

115
1
08-21-2019 10:20 AM
Autoridad_Nacional_del_AguaANA
New Contributor II

I took my connection (sde) to the server (arcgis server) and it doesn't recognize the path.

I have the cnnGDB folder registered in the arcgis server and within the folder I have the connection (sde)

Please help !!!!!

Tags (2)
0 Kudos
1 Reply
LukeWebb
Occasional Contributor III

Look up python Raw Strings, or paths generally.

In short, when python sees:      \

It starts looking for special characters, like     \n   which means new line in python speak.

So, to tell it to read the text exactly as you have it entered, we add a "r" to say this is Raw string data, and ignore any fancy stuff.

So basically, you need to change the code from:

"E:\cnnGDB"

to

r"E:\cnnGDB"

0 Kudos