<?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 Error in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/python-error/m-p/767654#M98</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automating the Publishing through arcpy scripting and modifying the properties of the SDDraft by xml parsing. Able to change most of the properties but when running the script for recycleInterval property I'm getting this error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if key.firstChild.data == 'recycleInterval': key.nextSibling.firstChild.data = 1&lt;BR /&gt;AttributeError: 'NoneType' object has no attribute 'data'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;for key in keys:&lt;BR /&gt; if key.firstChild.data == 'UsageTimeout': key.nextSibling.firstChild.data = 43200&lt;BR /&gt; if key.firstChild.data == 'WaitTimeout': key.nextSibling.firstChild.data = 300&lt;BR /&gt; if key.firstChild.data == 'IdleTimeout': key.nextSibling.firstChild.data = 1800&lt;BR /&gt; if key.firstChild.data == 'MinInstances': key.nextSibling.firstChild.data = 1&lt;BR /&gt; if key.firstChild.data == 'MaxInstances': key.nextSibling.firstChild.data = 2&lt;BR /&gt; if key.firstChild.data == 'recycleInterval': key.nextSibling.firstChild.data = 1&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get this issue resolved. Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jul 2017 01:48:46 GMT</pubDate>
    <dc:creator>RamakrishnaBillakanti</dc:creator>
    <dc:date>2017-07-12T01:48:46Z</dc:date>
    <item>
      <title>Python Error</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-error/m-p/767654#M98</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automating the Publishing through arcpy scripting and modifying the properties of the SDDraft by xml parsing. Able to change most of the properties but when running the script for recycleInterval property I'm getting this error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if key.firstChild.data == 'recycleInterval': key.nextSibling.firstChild.data = 1&lt;BR /&gt;AttributeError: 'NoneType' object has no attribute 'data'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;for key in keys:&lt;BR /&gt; if key.firstChild.data == 'UsageTimeout': key.nextSibling.firstChild.data = 43200&lt;BR /&gt; if key.firstChild.data == 'WaitTimeout': key.nextSibling.firstChild.data = 300&lt;BR /&gt; if key.firstChild.data == 'IdleTimeout': key.nextSibling.firstChild.data = 1800&lt;BR /&gt; if key.firstChild.data == 'MinInstances': key.nextSibling.firstChild.data = 1&lt;BR /&gt; if key.firstChild.data == 'MaxInstances': key.nextSibling.firstChild.data = 2&lt;BR /&gt; if key.firstChild.data == 'recycleInterval': key.nextSibling.firstChild.data = 1&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get this issue resolved. Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 01:48:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-error/m-p/767654#M98</guid>
      <dc:creator>RamakrishnaBillakanti</dc:creator>
      <dc:date>2017-07-12T01:48:46Z</dc:date>
    </item>
  </channel>
</rss>

