<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Field calculator error 999999 in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/field-calculator-error-999999/m-p/633539#M3802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try doing it in python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Codeblock:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import re 
def toFileName(fname):
 output = re.sub(r'[^0-9]', '',fname)
 if output:
&amp;nbsp; return 'photo\\' + output + '.jpg'
 else:
&amp;nbsp; return ''
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PHOTO_HYP=&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
toFileName(!FOTO!)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:57:06 GMT</pubDate>
    <dc:creator>norie</dc:creator>
    <dc:date>2021-12-12T02:57:06Z</dc:date>
    <item>
      <title>Field calculator error 999999</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/field-calculator-error-999999/m-p/633538#M3801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arcmap 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a vb script to creat a hyperlink in a new column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Arcmap 9.3 this script works perfect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But in 10.1 i get a error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Field [FOTO]&amp;nbsp; holds the values of a photonumber (example 105-2087).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Script Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim naam as string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim v as variant&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;naam = [FOTO]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if naam = "" or naam =&amp;nbsp; " " or&amp;nbsp; isempty(naam) then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; naam = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; v = split(naam,"/")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; naam = v(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; naam = "Fotos\Foto_2012\p"&amp;amp;replace(naam,"-" ,"")&amp;amp;".jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result window gives error 999999.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any surgesties the solve the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there a new kind of script that i can use to get a photo numer from one column to an other with txt infront and behind&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;example: column photo input: 105-0285&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;column photo_hyp output: photo\1050285.jpg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 09:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/field-calculator-error-999999/m-p/633538#M3801</guid>
      <dc:creator>PeterCeelen</dc:creator>
      <dc:date>2013-01-28T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculator error 999999</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/field-calculator-error-999999/m-p/633539#M3802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try doing it in python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Codeblock:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import re 
def toFileName(fname):
 output = re.sub(r'[^0-9]', '',fname)
 if output:
&amp;nbsp; return 'photo\\' + output + '.jpg'
 else:
&amp;nbsp; return ''
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PHOTO_HYP=&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
toFileName(!FOTO!)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/field-calculator-error-999999/m-p/633539#M3802</guid>
      <dc:creator>norie</dc:creator>
      <dc:date>2021-12-12T02:57:06Z</dc:date>
    </item>
  </channel>
</rss>

