<?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: Object Reference not set to an instance of an object in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361431#M1196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: johnmdye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Mahunter243,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI Technical Support pointed out the same thing. I moved the OutFC reference to be inside the loop so that it can reference the table created by the for loop. However, that didn't change anything. I still received the same error. Here's a copy of the updated script and the persisting error. I even tried just completely removing the arcpy.ValidateTableName function and just using the table name by naming the output feature class as &amp;lt;Table + "_TradeArea"&amp;gt; but still received the object not referenced error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17211[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17213[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 12:06:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-08-24T12:06:47Z</dc:date>
    <item>
      <title>Object Reference not set to an instance of an object</title>
      <link>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361429#M1194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to batch a trade area creation process. We have over a thousand of them to do but I'm just testing with 5 tables right now. In any case, I've created the script but it keeps erroring out with the error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception has occured in Business Analyst. Please contact your system Administrator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Object reference not set to an instance of an object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've embeded a copy of the script and the error I'm receiving. I can't click on details because I have to cancel the script first...which it won't cancel so I have to shut it down via the Task Manager which closes the entire ArcGIS application I'm running the script tool from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17039[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17041[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 13:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361429#M1194</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2012-08-17T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference not set to an instance of an object</title>
      <link>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361430#M1195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not that familiar with the functions you are using, but right off the bat I notice that the name "Table" is unreferenced in the line with ValidateTableName.&amp;nbsp; That's supposed to be a string denoting the name of the table in the given workspace.&amp;nbsp; The name Table at this point in your script does not point to anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 02:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361430#M1195</guid>
      <dc:creator>MikeHunter</dc:creator>
      <dc:date>2012-08-19T02:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference not set to an instance of an object</title>
      <link>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361431#M1196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: johnmdye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Mahunter243,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI Technical Support pointed out the same thing. I moved the OutFC reference to be inside the loop so that it can reference the table created by the for loop. However, that didn't change anything. I still received the same error. Here's a copy of the updated script and the persisting error. I even tried just completely removing the arcpy.ValidateTableName function and just using the table name by naming the output feature class as &amp;lt;Table + "_TradeArea"&amp;gt; but still received the object not referenced error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17211[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17213[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 12:06:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361431#M1196</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-24T12:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference not set to an instance of an object</title>
      <link>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361432#M1197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update: There was an issue with the table schema, not the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/object-reference-not-set-to-an-instance-of-an/m-p/361432#M1197</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2012-09-12T14:52:02Z</dc:date>
    </item>
  </channel>
</rss>

