<?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: Advanced label expression crashing 10.2.2 in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214318#M2274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pathway between my ArcGIS and Python folder was corrupt or messed up in some fashion. A repair of the software seemed to fix everything up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2014 20:25:26 GMT</pubDate>
    <dc:creator>DavidWhitehead</dc:creator>
    <dc:date>2014-07-18T20:25:26Z</dc:date>
    <item>
      <title>Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214309#M2265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been at this for a while and a little disappointed in the amount of money spent on this software and some of the seemingly easy things it should be able to do that it cannot. For example, being able to display a table of values from the attribute table as a label. So since that is not possible I have been trying to use my minimal coding skills to create a functional advanced expression. I have come up with the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ([SWSID], [Stn_Name], [First_Date], [Last_Date], [Percentage], [First_Da_1], [Last_Dat_1], [Percenta_1], [First_Da_2], [Last_Dat_2], [Percenta_2], [First_Da_3], [Last_Dat_3], [Percenta_3]):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = [[SWSID]]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in flds:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label += "&amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[SWSID]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[Stn_Name]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt;\n" + "T_avg" + "&amp;nbsp; " + [First_Date]+ "&amp;nbsp; " + [Last_Date] + "&amp;nbsp; " +[Percentage]+"\n" + "Snowfall" + "&amp;nbsp; " + [First_Da_1]+ "&amp;nbsp; " + [Last_Dat_1] + "&amp;nbsp; " +[Percenta_1]+"\n"+ "Snow Depth" + "&amp;nbsp; " + [First_Da_2]+ "&amp;nbsp; " + [Last_Dat_2] + "&amp;nbsp; " +[Percenta_2]+"\n"+ "Rain" + "&amp;nbsp; " + [First_Da_3]+ "&amp;nbsp; " + [Last_Dat_3] + "&amp;nbsp; " +[Percenta_3]+"\n"&lt;/P&gt;&lt;P&gt;return FindLabel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to do a verify, it crashes. So I thought, maybe it is too many variables, so I modified just for testing purposes to this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ([SWSID], [Stn_Name], [First_Date]):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = [[SWSID]]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in flds:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label += "&amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[SWSID]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[Stn_Name]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt;\n" + "T_avg" + "&amp;nbsp; " + [First_Date]&lt;/P&gt;&lt;P&gt;return FindLabel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still crashing.... Any ideas on how to fix this issue or a different way to go about creating a table label. I'd like it to look something like below. It needs the row names but does not need the column headers in row 2, I have resigned to that. &lt;IMG alt="table.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2329_table.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 17:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214309#M2265</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214310#M2266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try return label instead of return FindLabel, FindLabel is your function, label is your string you built which you want to show up.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214310#M2266</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-18T18:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214311#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should have seen that earlier, but doesn't fix the problem, still crashing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214311#M2267</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214312#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using a for loop?&amp;nbsp; SWSID is a single field, there is nothing to loop through, for each feature it will return the value in that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried making you label =&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;"&amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[SWSID]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt; &lt;/TD&gt;&lt;TD&gt;&amp;lt;und&amp;gt;&amp;lt;bold&amp;gt;[Stn_Name]&amp;lt;/bold&amp;gt;&amp;lt;/und&amp;gt;\n" + "T_avg" + "&amp;nbsp; " + [First_Date]+ "&amp;nbsp; " + [Last_Date] + "&amp;nbsp; " +[Percentage]+"\n" + "Snowfall" + "&amp;nbsp; " + [First_Da_1]+ "&amp;nbsp; " + [Last_Dat_1] + "&amp;nbsp; " +[Percenta_1]+"\n"+ "Snow Depth" + "&amp;nbsp; " + [First_Da_2]+ "&amp;nbsp; " + [Last_Dat_2] + "&amp;nbsp; " +[Percenta_2]+"\n"+ "Rain" + "&amp;nbsp; " + [First_Da_3]+ "&amp;nbsp; " + [Last_Dat_3] + "&amp;nbsp; " +[Percenta_3]+"\n"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; I'm guessing all those in brackets are fields that are part of your shapefile or feature class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:32:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214312#M2268</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-18T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214313#M2269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to my initial frustration, if I try to verify the original function that ArcGIS populates in the box, it also crashes the program. So, who knows....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214313#M2269</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214314#M2270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mind posting the file and let me give it a go?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214314#M2270</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-18T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214315#M2271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually got it figured out after talking with ESRI support. I had a rogue version of Python that was interferring with what was installed with ArcGIS. A reinstall to re-set the paths cleared it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 19:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214315#M2271</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T19:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214316#M2272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, so it wasn't your label expression crashing, it was ArcMap crashing.&amp;nbsp; Glad you got it worked out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 19:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214316#M2272</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-18T19:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214317#M2273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, it was the whole program! Relatively easy fix, just took effort figuring out what it was. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 20:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214317#M2273</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced label expression crashing 10.2.2</title>
      <link>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214318#M2274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pathway between my ArcGIS and Python folder was corrupt or messed up in some fashion. A repair of the software seemed to fix everything up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 20:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/advanced-label-expression-crashing-10-2-2/m-p/214318#M2274</guid>
      <dc:creator>DavidWhitehead</dc:creator>
      <dc:date>2014-07-18T20:25:26Z</dc:date>
    </item>
  </channel>
</rss>

