<?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: ArcGIS Pro 2.9 - Python Script Failing for Labels in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119236#M48136</link>
    <description>&lt;P&gt;I believe the issue lies with this line:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;width_str = '&amp;lt;ITA&amp;gt;Width = {}\'&amp;lt;/ITA&amp;gt;'.format("&amp;lt;ITA&amp;gt;" + [Width] + "&amp;lt;/ITA&amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;Replace it with this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;width_str ="&amp;lt;ITA&amp;gt;Width = " + [Width] + "&amp;lt;/ITA&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only guess some changes behind the scene have occurred, may be with the parser or version of python?&lt;/P&gt;&lt;P&gt;I think the writing is on the wall with python as they are pushing Arcade as the default, cross platform labelling language, so it might be worth your while investing some time learning this new scripting language.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 16:55:16 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2021-11-22T16:55:16Z</dc:date>
    <item>
      <title>ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119213#M48126</link>
      <description>&lt;P&gt;Before upgrading to 2.9, I never had an issue with my labeling code at all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def FindLabel([TrailName],[Width]):

  str_list = []
  if [TrailName] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0"):
    str_list.append([TrailName])
    
  if [Width] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0", " "):
    width_str = '&amp;lt;ITA&amp;gt;Width = {}\'&amp;lt;/ITA&amp;gt;'.format("&amp;lt;ITA&amp;gt;" + [Width] + "&amp;lt;/ITA&amp;gt;")
    str_list.append(width_str)    

  label_str = '\n'.join(str_list)
  return(label_str)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now that I switched to 2.9, I'm now getting the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Invalid Expression&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;expression", line 1, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;NameError: name 'FindLabel' is not defined&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have pasted the exact same code into ArcMap 10.8.1 and it works just fine.&amp;nbsp; So I'm very confused why all of a sudden a labeling script I've used for over a year now just fails in Pro?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 16:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119213#M48126</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-22T16:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119221#M48131</link>
      <description>&lt;P&gt;Did you recently upgrade to Pro 2.9 form an earlier version of Pro or is this a fresh install?&amp;nbsp; Did this work in Pro 2.8.x and earlier?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 16:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119221#M48131</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-22T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119236#M48136</link>
      <description>&lt;P&gt;I believe the issue lies with this line:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;width_str = '&amp;lt;ITA&amp;gt;Width = {}\'&amp;lt;/ITA&amp;gt;'.format("&amp;lt;ITA&amp;gt;" + [Width] + "&amp;lt;/ITA&amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;Replace it with this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;width_str ="&amp;lt;ITA&amp;gt;Width = " + [Width] + "&amp;lt;/ITA&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only guess some changes behind the scene have occurred, may be with the parser or version of python?&lt;/P&gt;&lt;P&gt;I think the writing is on the wall with python as they are pushing Arcade as the default, cross platform labelling language, so it might be worth your while investing some time learning this new scripting language.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 16:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119236#M48136</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-11-22T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119250#M48141</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;:&amp;nbsp; Yes I was on 2.8.3 before and the label script has worked just fine in all previous Pro versions for the past year or more.&amp;nbsp; In fact I used the script the week before without any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119250#M48141</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-22T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119251#M48142</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3515"&gt;@DuncanHornby&lt;/a&gt;&amp;nbsp;I tried your suggestion, but, no luck and I continue to get the same issue that it can't define the "FindLabel" name that I defined in the first line.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Just seems really strange.&amp;nbsp; Yeah I think it might take me way too long to learn Arcade, I'm not the quickest at learning languages at all...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119251#M48142</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-22T17:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119278#M48148</link>
      <description>&lt;P&gt;Since it worked in earlier versions of Pro, this sounds like a new undocumented feature (aka bug) at 2.9.&amp;nbsp; In the old days of ArcInfo as well as ArcGIS the unwritten rule was never update to a new version that ends in dot zero.&amp;nbsp; I relearned this lesson at 2.8.0 and rolled back to 2.7.4. Once 2.8.2 came out I updated to that.&amp;nbsp; If this was happening to me, I'd roll back to the last version your script worked.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 18:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119278#M48148</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-22T18:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119320#M48162</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;:&amp;nbsp; Due to another unrelated bug that prevents me from properly working in 2.9, I actually did just that and uninstalled 2.9 and reinstalled 2.8 and the 3 service packs and now that I'm back in 2.8.3, the code works fine.&amp;nbsp; So yes, it seems to be yet another bug I've found in 2.9.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Bad thing is I'm unable to even submit a bug report due to the website having issues for the past few days &lt;EM&gt;(I did get ESRI support on the phone and they're looking into the issue now),&lt;/EM&gt; but it will be another bug I'll have to remember to submit with 2.9 then...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 20:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119320#M48162</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-22T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119395#M48176</link>
      <description>&lt;P&gt;Let ESRI log the bug; it's their problem...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 22:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119395#M48176</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-22T22:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119396#M48177</link>
      <description>&lt;P&gt;Hopefully they see it then, but at least I know it's a version issue then and one of 2 bug issues that is enough for me not to continue using 2.9...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 22:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119396#M48177</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-22T22:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119492#M48188</link>
      <description>&lt;P&gt;Pete,&lt;/P&gt;&lt;P&gt;Not sure why you are still getting an error as the code works for me, I suspect you don't have the correct indentation?&lt;/P&gt;&lt;P&gt;I spoofed up your fields in a dataset I have and as you can see it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DuncanHornby_0-1637666225537.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28079iD552BEFF154733A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DuncanHornby_0-1637666225537.png" alt="DuncanHornby_0-1637666225537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code being:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def FindLabel([TrailName],[Width]):

  str_list = []
  if [TrailName] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0"):
    str_list.append([TrailName])
    
  if [Width] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0", " "):
    width_str ="&amp;lt;ITA&amp;gt;Width = " + [Width] + "&amp;lt;/ITA&amp;gt;"
    str_list.append(width_str)    

  label_str = '\n'.join(str_list)
  return(label_str)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 11:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119492#M48188</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-11-23T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119511#M48191</link>
      <description>&lt;P&gt;Yeah I have no idea.&amp;nbsp; I've always just copied the code and it's always worked until 2.9.&amp;nbsp; As I rolled back to 2.8.3 due to other issues I've found in 2.9, the same code works as it should in 2.8.&amp;nbsp; I don't get it at all.&amp;nbsp; I had even copied the code directly from 2.9 and tested it in ArcMap and it worked there as well.&amp;nbsp; So I have no idea other than some freak glitch with the 2.9 install or something?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119511#M48191</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-23T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119522#M48192</link>
      <description>&lt;P&gt;Yeah I've had a bit of a nightmare with 2.9. Not a single tool would run! I had to uninstall everything, kill off some user directories and then reinstall from an ISO I had downloaded. But now fingers crossed it does appear to be stable and my processing is chugging alone fine...&lt;/P&gt;&lt;P&gt;I got quite excited about the new toolbox format until &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/enable-metadata-support-for-the-new-atbx-toolbox/idi-p/1119208" target="_self"&gt;this&lt;/A&gt;... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 14:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119522#M48192</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-11-23T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119531#M48194</link>
      <description>&lt;P&gt;Good to know then it's not just me who has had issues.&amp;nbsp; I can't even get my keybinds to save anymore and for editing in Pro, that's a nightmare without that ability.&amp;nbsp; I might just way for the next 2.9 patch then and hopefully that fixes some things, but good to know it wasn't just me that's having 2.9 issues at all...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 14:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119531#M48194</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-11-23T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119572#M48199</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129401"&gt;@KoryKramer&lt;/a&gt;&amp;nbsp;; you might want to read this post....&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1119572#M48199</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-23T16:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1120014#M48269</link>
      <description>&lt;P&gt;Thanks for bringing this to our attention.&amp;nbsp; We're working on a fix for it.&amp;nbsp; Until then you can use the workaround below.&lt;/P&gt;&lt;P&gt;swapping the quotes and removing the escape character can be used as a workaround&lt;/P&gt;&lt;P&gt;def FindLabel([TrailName],[Width]):&lt;BR /&gt;str_list = []&lt;BR /&gt;if [TrailName] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0"):&lt;BR /&gt;str_list.append([TrailName])&lt;BR /&gt;if [Width] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0", " "):&lt;BR /&gt;width_str = "&amp;lt;ITA&amp;gt;Width = {}'&amp;lt;/ITA&amp;gt;".format("&amp;lt;ITA&amp;gt;" + [Width] + "&amp;lt;/ITA&amp;gt;")&lt;BR /&gt;str_list.append(width_str)&lt;BR /&gt;label_str = '\n'.join(str_list)&lt;BR /&gt;return(label_str)&lt;/P&gt;&lt;P&gt;This was the original part that was broken&lt;/P&gt;&lt;P&gt;'&amp;lt;ITA&amp;gt;Width = {}\'&amp;lt;/ITA&amp;gt;'&lt;/P&gt;&lt;P&gt;This is the updated part&lt;/P&gt;&lt;P&gt;"&amp;lt;ITA&amp;gt;Width = {}'&amp;lt;/ITA&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 18:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1120014#M48269</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2021-11-24T18:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1122157#M48587</link>
      <description>&lt;P&gt;Thanks Wendy for that workaround.&amp;nbsp; I just feel I have a lot of scripts and taking the time doing this to every one of them might not be worth it.&amp;nbsp; I think I'll just skip over 2.9 until this (and another bug I have that prevents me from using 2.9) are resolved...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 13:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1122157#M48587</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-12-02T13:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1122603#M48641</link>
      <description>&lt;P&gt;the number for this issue is BUG-000144967.&amp;nbsp; You can track it through support services.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 18:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1122603#M48641</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2021-12-03T18:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1128173#M49273</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/31431"&gt;@PeteJordan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;here's the second part you requested&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;def FindLabel([TrailName],[Width]):&lt;/P&gt;&lt;P&gt;&amp;nbsp; str_list = []&lt;/P&gt;&lt;P&gt;&amp;nbsp; if [TrailName] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; str_list.append([TrailName])&lt;/P&gt;&lt;P&gt;&amp;nbsp; if [Width] not in (None, "&amp;lt;NULL&amp;gt;","&amp;lt;Null&amp;gt;", "", "0", " "):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width_str = "&amp;lt;FNT size = '20'&amp;gt;&amp;lt;ITA&amp;gt;Width = {}'&amp;lt;/ITA&amp;gt;".format("&amp;lt;ITA&amp;gt;" + [Width] + "&amp;lt;/ITA&amp;gt;")+"&amp;lt;/FNT&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;str_list.append(width_str)&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;label_str = '\n'.join(str_list)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return(label_str)&lt;/P&gt;&lt;P&gt;resulting in a label like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WendyHarrison_0-1640125258239.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30176i3B1C49E0D3F17115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WendyHarrison_0-1640125258239.png" alt="WendyHarrison_0-1640125258239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 22:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1128173#M49273</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2021-12-21T22:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.9 - Python Script Failing for Labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1128297#M49279</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1209"&gt;@WendyHarrison&lt;/a&gt;:&amp;nbsp; Yes I figured it out and deleted the message, but guess you must have seen it before I was able to remove the post.&amp;nbsp; It was the single quote that I had accidentally gotten rid of when I should have kept that one part and only changed the other single quotes was my issue...&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 13:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-9-python-script-failing-for-labels/m-p/1128297#M49279</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2021-12-22T13:39:21Z</dc:date>
    </item>
  </channel>
</rss>

