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 !!!!!
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"