Select to view content in your preferred language

Calculating hyperlink internal with backslash (EOL scanning string)

503
3
02-06-2023 07:48 AM
Tom_De_Smet
Emerging Contributor

Hello, I am trying to calculate a hyperlink field in ArcGIS pro. The hyperlink is made to an internal map structure. The link starts with a "\\xxx.zz\...\". It is made in a text field.

I get an error 'EOL while scanning string'.

In ArcMap that wasn't a problem and I didn't get any errors.

Thanks in advance!

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

paths can't end in a single backslash

"\\xxx.zz\yyy\"
  Cell In[1], line 1
    "\\xxx.zz\yyy\"
                   ^
SyntaxError: EOL while scanning string literal


"\\xxx.zz\yyy"
'\\xxx.zz\\yyy'

... sort of retired...
0 Kudos
Tom_De_Smet
Emerging Contributor

I am ending it with a "\" because I want to add another (unique) field to the hypelink

0 Kudos
DanPatterson
MVP Esteemed Contributor

therefore...

"\\xxx.zz\yyy\\"
Out[1]: '\\xxx.zz\\yyy\\'

... sort of retired...
0 Kudos