<?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 Python Scripting Problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6476#M558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a python script. when it run the following message display&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SyntaxError: unexpected character after line continuation character (Script1.py, line 29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (LISTool1.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cant understand what,s wrong with my script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 05:39:22 GMT</pubDate>
    <dc:creator>H_A_D_Padmasiri</dc:creator>
    <dc:date>2013-11-13T05:39:22Z</dc:date>
    <item>
      <title>Python Scripting Problem</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6476#M558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a python script. when it run the following message display&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SyntaxError: unexpected character after line continuation character (Script1.py, line 29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (LISTool1.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cant understand what,s wrong with my script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 05:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6476#M558</guid>
      <dc:creator>H_A_D_Padmasiri</dc:creator>
      <dc:date>2013-11-13T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python Scripting Problem</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6477#M559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The line that includes your query is escaping quotes wrong-- this doesn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;" " \Layer\ " LIKE 'BOUND%'&amp;nbsp; AND " \Layer\ " NOT LIKE 'BOUND-ADMIN-VIR' "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The quote escape works like this:&amp;nbsp; \"&amp;nbsp; ...or this:&amp;nbsp; \'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;" \"Layer\" LIKE 'BOUND%'&amp;nbsp; AND \"Layer\" NOT LIKE 'BOUND-ADMIN-VIR%' "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Test it - and if your single quotes are also giving trouble (I don't think they will), then try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;" \"Layer\" LIKE \'BOUND%\'&amp;nbsp; AND \"Layer\" NOT LIKE \'BOUND-ADMIN-VIR%\' "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;..enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6477#M559</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-11-13T09:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Scripting Problem</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6478#M560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can eliminate the confusing escape characters by using string substitution and the AddFieldDelimiters function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;query =&amp;nbsp; "{0} LIKE 'BOUND%'&amp;nbsp; AND {0} NOT LIKE 'BOUND-ADMIN-VIR'".format(arcpy.AddFieldDelimiters(Polyline, 'Layer'))
arcpy.FeatureClassToFeatureClass_conversion(Polyline, Fea_Class_Path, "PCL_LN", query)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I don't see your Polyline variable declared anywhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-problem/m-p/6478#M560</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-10T20:16:13Z</dc:date>
    </item>
  </channel>
</rss>

