<?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: Need some help on evaluating the Automation Exception in Network Analysis in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740966#M19677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pavan's original post:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh. I thought "Unknown source" indicated that debug symbols were missing, so it couldn't give the line numbers: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/3132302/unknown-source-in-exception-stack-trace"&gt;http://stackoverflow.com/questions/3132302/unknown-source-in-exception-stack-trace&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that we need to see the code the creates the context though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 13:42:26 GMT</pubDate>
    <dc:creator>JasonPike</dc:creator>
    <dc:date>2013-03-27T13:42:26Z</dc:date>
    <item>
      <title>Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740959#M19670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one please help me evaluating the following Automation Exception I am getting while I am trying to get the state of Network Dataset through the INALocator reference in arcobjects Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is the Exception I am getting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AutomationException: 0x80004001 - Not implemented&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.geodatabase.INetworkDatasetProxy.getState(Unknown Source).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 06:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740959#M19670</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-03-25T06:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740960#M19671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the source code that is throwing that exception?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 20:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740960#M19671</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-26T20:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740961#M19672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Leo Donahue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the FileGDB.The following is the code which is failing for me with the case in getting the state of the NetworkDataset as such which gives the information of it.Like whether it is built(or)unbuilt(or)unknown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INetworkDataset nds = naContext.getNALocator.getNetworkDataset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int state = nds.getState();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I will try with code post like instead of getting the state of the NetworkDataset through naLocator reference I will make like to get the state of it from directly getting the NetworkDataset through the naContext.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 10:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740961#M19672</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-03-27T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740962#M19673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Leo Donahue,&lt;BR /&gt;&lt;BR /&gt;I am using the FileGDB.The following is the code which is failing for me with the case in getting the state of the NetworkDataset as such which gives the information of it.Like whether it is built(or)unbuilt(or)unknown.&lt;BR /&gt;&lt;BR /&gt;INetworkDataset nds = naContext.getNALocator.getNetworkDataset();&lt;BR /&gt;int state = nds.getState();&lt;BR /&gt;&lt;BR /&gt;However I will try with code post like instead of getting the state of the NetworkDataset through naLocator reference I will make like to get the state of it from directly getting the NetworkDataset through the naContext.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently, not all INetworkDatasets support the State property. It doesn't seem to be documented for FileGDB, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the documentation: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For network datasets in an ArcSDE geodatabase, the State property will return the error "Object does not support this action."&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/java/api/arcobjects/com/esri/arcgis/geodatabase/NetworkDataset.html"&gt;http://resources.esri.com/help/9.3/arcgisengine/java/api/arcobjects/com/esri/arcgis/geodatabase/NetworkDataset.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/State_Property/00250000055r000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/State_Property/00250000055r000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to be common throughout the ArcGIS API. I think it is a violation of the interface segregation principle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Interface_segregation_principle"&gt;http://en.wikipedia.org/wiki/Interface_segregation_principle&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 11:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740962#M19673</guid>
      <dc:creator>JasonPike</dc:creator>
      <dc:date>2013-03-27T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740963#M19674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pavan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you show us how you are creating your NAContext?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you setting the LocatorByRef to a INALocator?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And you have added a LocatorAgent?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you bind the NetWorkDataset to your INALocatorAgent? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;correction:&amp;nbsp; it goes all the way back to how you instantiated your NetworkDataset.&amp;nbsp; Did you use NetworkDatasetFDExtension and IDatasetContainer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably where it starts since your error indicates an unknown source.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740963#M19674</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-27T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740964#M19675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pavan,&lt;BR /&gt;&lt;BR /&gt;Can you show us how you are creating your NAContext?&amp;nbsp; &lt;BR /&gt;Are you setting the LocatorByRef to a INALocator?&amp;nbsp; &lt;BR /&gt;And you have added a LocatorAgent?&amp;nbsp; &lt;BR /&gt;How did you bind the NetWorkDataset to your INALocatorAgent? &lt;BR /&gt;&lt;BR /&gt;correction:&amp;nbsp; it goes all the way back to how you instantiated your NetworkDataset.&amp;nbsp; Did you use NetworkDatasetFDExtension and IDatasetContainer ?&lt;BR /&gt;&lt;BR /&gt;This is probably where it starts since your error indicates an unknown source.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Leo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you explain how you got from a "Not Implemented" exception to "unknown source"? I didn't see anything in the documentation that explains that. I know I'm missing something...&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, 27 Mar 2013 13:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740964#M19675</guid>
      <dc:creator>JasonPike</dc:creator>
      <dc:date>2013-03-27T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740965#M19676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pavan's original post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;The following is the Exception I am getting.&lt;BR /&gt;&lt;BR /&gt;AutomationException: 0x80004001 - Not implemented&lt;BR /&gt;at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source)&lt;BR /&gt;at &lt;SPAN style="text-decoration:underline;"&gt;com.esri.arcgis.geodatabase.INetworkDatasetProxy.getState(Unknown Source)&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740965#M19676</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-27T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740966#M19677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pavan's original post:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh. I thought "Unknown source" indicated that debug symbols were missing, so it couldn't give the line numbers: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/3132302/unknown-source-in-exception-stack-trace"&gt;http://stackoverflow.com/questions/3132302/unknown-source-in-exception-stack-trace&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that we need to see the code the creates the context though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740966#M19677</guid>
      <dc:creator>JasonPike</dc:creator>
      <dc:date>2013-03-27T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740967#M19678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the Java API, there is only one concrete class that implements INetworkDataset, and it supports getState().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22988[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740967#M19678</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-27T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740968#M19679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Oh. I thought that was because of missing debug symbols: &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We can only go by what he posted.&amp;nbsp; There might be more he didn't post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740968#M19679</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-27T13:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740969#M19680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Plus.. in Java:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String.valueOf(null); will debug with the line of error using the JDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Exception in thread "main" java.lang.NullPointerException
&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.String.&amp;lt;init&amp;gt;(String.java:177)
&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.String.valueOf(String.java:2840)
&amp;nbsp;&amp;nbsp;&amp;nbsp; at AimsConnectDemo.main(AimsConnectDemo.java:20)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you check the Java Source code for the String class, you will find that line 177 tries to the get length of null.&amp;nbsp; But this is probably not related to Pavan's issue - I hope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unknown source seems like an appropriate error message since it could be that Pavan's network dataset might not have been created properly?&amp;nbsp; I can only point people in certain directions, they have to figure out the rest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740969#M19680</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-12T07:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740970#M19681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Plus.. in Java:&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;String.valueOf(null); will debug with the line of error using the JDK.&lt;BR /&gt;&lt;BR /&gt;which is:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Exception in thread "main" java.lang.NullPointerException
&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.String.&amp;lt;init&amp;gt;(String.java:177)
&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.String.valueOf(String.java:2840)
&amp;nbsp;&amp;nbsp;&amp;nbsp; at AimsConnectDemo.main(AimsConnectDemo.java:20)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If you check the Java Source code for the String class, you will find that line 177 tries to the get length of null.&amp;nbsp; But this is probably not related to Pavan's issue - I hope.&lt;BR /&gt;&lt;BR /&gt;Unknown source seems like an appropriate error message since it could be that Pavan's network dataset might not have been created properly?&amp;nbsp; I can only point people in certain directions, they have to figure out the rest.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Leo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that the exception in the article I linked to has nothing to do with Pavan's issue. I was just confused when you mentioned "Unknown source" as something that helped identify the problem. You have correctly pointed out that it is probably an incorrect initialization of the object that is the root of the problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still think "(Unknown source)" is a red herring--the contents parentheses after the stack frame information is used to give the source code file name (e.g. String.java) and the line number in that source file. When it says "Unknown source", that indicates that the runtime doesn't know the name of the source code file or the line number in that source code file for that particular stack frame. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for detracting from the actual problem and creating noise on the thread--I'm just trying to learn from how the senior members, like yourself, analyze problems so that I can be a better problem solver.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740970#M19681</guid>
      <dc:creator>JasonPike</dc:creator>
      <dc:date>2021-12-12T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740971#M19682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Sorry for detracting from the actual problem and creating noise on the thread--I'm just trying to learn from how the senior members, like yourself, analyze problems so that I can be a better problem solver.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No noise, no detractions, no worries.&amp;nbsp; I hope you don't think I was nitpicking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it means the origination of the exception is unknown at the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html"&gt;http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740971#M19682</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-27T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740972#M19683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Leo Donahue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating the NAContext reference through&amp;nbsp; ArcGIS Map Service through the naLayer reference like in the following way&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INAContext naContext = naLayer.getContext();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; And I am not setting the LocatorByRef to naLocator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am not adding any LocatorAgent to my naLocator reference.I am justing setting the snapTolerance for naLocator like in the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;following way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;naLocator.setSnapTolerance(0.005);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if any information needed in order to help me in resolving the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 10:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740972#M19683</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-03-28T10:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740973#M19684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you checked out the java sample in the ArcObjects Developer Kit samples from the install?&amp;nbsp; This method shows how ESRI created an instance of the NetworkDataset object.&amp;nbsp; It might help you to compare this to your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 /**
&amp;nbsp; * Solves a route based on specified network dataset and stops fc
&amp;nbsp; * @param workspacePath
&amp;nbsp; * @param inputStopsFC
&amp;nbsp; * @param shapeInputNameField
&amp;nbsp; * @param networkDatasetName
&amp;nbsp; * @param outLayerPath
&amp;nbsp; */
 public void solveRoute(
&amp;nbsp;&amp;nbsp; String workspacePath
&amp;nbsp;&amp;nbsp; ,String inputStopsFeatureDataset, String inputStopsFC
&amp;nbsp;&amp;nbsp; ,String shapeInputNameField
&amp;nbsp;&amp;nbsp; ,String networkDatasetFeatureDataset, String networkDatasetName
&amp;nbsp;&amp;nbsp; ,String outLayerPath
 ){
&amp;nbsp; // Open the feature workspace, input feature class, and network dataset
&amp;nbsp; try
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; //open file geodatabase
&amp;nbsp;&amp;nbsp; IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
&amp;nbsp;&amp;nbsp; IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(workspaceFactory.openFromFile(workspacePath, 0));
&amp;nbsp;&amp;nbsp; //open input feature class
&amp;nbsp;&amp;nbsp; IFeatureDataset featureDataset = featureWorkspace.openFeatureDataset(inputStopsFeatureDataset);
&amp;nbsp;&amp;nbsp; IFeatureClassContainer inputStopsFeatureCC = new IFeatureClassContainerProxy(featureDataset);
&amp;nbsp;&amp;nbsp; IFeatureClass inputStopsFClass = inputStopsFeatureCC.getClassByName(inputStopsFC);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; //open network dataset
&amp;nbsp;&amp;nbsp; featureDataset = featureWorkspace.openFeatureDataset(networkDatasetFeatureDataset);
&amp;nbsp;&amp;nbsp; IFeatureDatasetExtensionContainer fdsExtCont = new IFeatureDatasetExtensionContainerProxy(featureDataset);
&amp;nbsp;&amp;nbsp; IFeatureDatasetExtension fdsExt = fdsExtCont.findExtension(esriDatasetType.esriDTNetworkDataset);
&amp;nbsp;&amp;nbsp; IDatasetContainer2 dsCont = new IDatasetContainer2Proxy(fdsExt);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; IDataset dataset = dsCont.getDatasetByName(esriDatasetType.esriDTNetworkDataset, networkDatasetName);
&amp;nbsp;&amp;nbsp; NetworkDataset networkDataset = new NetworkDataset(dataset);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; // Create the Route NALayer
&amp;nbsp;&amp;nbsp; INALayer naLayer = createRouteAnalysisLayer("Route", networkDataset);
&amp;nbsp;&amp;nbsp; INAContext naContext = naLayer.getContext();
&amp;nbsp;&amp;nbsp; INAClass stopsNAClass = (INAClass) naContext.getNAClasses().getItemByName("Stops");
&amp;nbsp;&amp;nbsp; // Load the Stops
&amp;nbsp;&amp;nbsp; INAClassFieldMap naClassFieldMap = new NAClassFieldMap();
&amp;nbsp;&amp;nbsp; naClassFieldMap.setMappedField("Name", shapeInputNameField);
&amp;nbsp;&amp;nbsp; INAClassLoader naLoader = new NAClassLoader();
&amp;nbsp;&amp;nbsp; naLoader.setLocatorByRef(naContext.getLocator());
&amp;nbsp;&amp;nbsp; naLoader.setNAClassByRef(stopsNAClass);
&amp;nbsp;&amp;nbsp; naLoader.setFieldMapByRef(naClassFieldMap);
&amp;nbsp;&amp;nbsp; int[] rowsInCursor = { 0 };
&amp;nbsp;&amp;nbsp; int[] rowsLocated = { 0 };
&amp;nbsp;&amp;nbsp; ITrackCancel cancelTracker = new CancelTracker();
&amp;nbsp;&amp;nbsp; FeatureCursor cursor = new FeatureCursor(inputStopsFClass.search(new QueryFilter(), false));
&amp;nbsp;&amp;nbsp; naLoader.load(cursor, cancelTracker, rowsInCursor, rowsLocated);
&amp;nbsp;&amp;nbsp; // Solve
&amp;nbsp;&amp;nbsp; INASolver naSolver = naContext.getSolver();
&amp;nbsp;&amp;nbsp; naSolver.solve(naContext, new GPMessages(), cancelTracker);
&amp;nbsp;&amp;nbsp; // Save the layer to disk
&amp;nbsp;&amp;nbsp; saveLayerToDisk(naLayer, outLayerPath);
&amp;nbsp; }
&amp;nbsp; catch (Exception e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; e.printStackTrace();
&amp;nbsp; }
 }

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740973#M19684</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-12T07:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on evaluating the Automation Exception in Network Analysis</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740974#M19685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Leo Donahue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually what I did was , I followed the same sample code snippet which is there in ArcObjects Developer Kit samples install.I had &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;requirement like to get the state of NetworkDataset during the course running the solver.while I am trying to do that I am getting the above I mentioned exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can you please help me in resolving this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 06:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-some-help-on-evaluating-the-automation/m-p/740974#M19685</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-04-01T06:53:26Z</dc:date>
    </item>
  </channel>
</rss>

