<?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 BA Trade Area exception on Feature class in ArcGIS Solutions Questions</title>
    <link>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703840#M740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used VBA code to add a featureclass from SDE and I tired to execute the Business Analyst Trade area tool to draw simple rings and it threw an error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps to be followed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Use VBA to add a featureclass from SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Click on Trade Area tool from Business analyst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.Choose create trade area and click next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.Choose simple rings and click next and the error appears&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The VBA code I used to add layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkspaceFactory As IWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkspaceFactory = New SdeWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPropSet As IPropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPropSet = New PropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With pPropSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "Server", server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "Instance", instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "user", user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "password", password&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "version", version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End With&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkSpace As IFeatureWorkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkSpace = pWorkspaceFactory.Open(pPropSet, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pClass As IFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pClass = pWorkSpace.OpenFeatureClass("xyz")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pLayer As IFeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pLayer = New FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pLayer.FeatureClass = pClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pLayer.Name = pClass.AliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pMxDoc.AddLayer pLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pMxDoc.ActiveView.PartialRefresh esriViewGeography, pLayer, Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error that is being displayed is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception has occurred in Business Analyst. Please contact your system administrator &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message stack:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at esriBA9.Common.DBUtilities.GetDatasetFilePath(IDataset ds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone tell me if you have faced such issues and how to go about it...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2013 10:49:22 GMT</pubDate>
    <dc:creator>archanababu</dc:creator>
    <dc:date>2013-07-01T10:49:22Z</dc:date>
    <item>
      <title>BA Trade Area exception on Feature class</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703840#M740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used VBA code to add a featureclass from SDE and I tired to execute the Business Analyst Trade area tool to draw simple rings and it threw an error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps to be followed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Use VBA to add a featureclass from SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Click on Trade Area tool from Business analyst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.Choose create trade area and click next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.Choose simple rings and click next and the error appears&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The VBA code I used to add layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkspaceFactory As IWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkspaceFactory = New SdeWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPropSet As IPropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPropSet = New PropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With pPropSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "Server", server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "Instance", instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "user", user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "password", password&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.SetProperty "version", version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End With&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkSpace As IFeatureWorkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkSpace = pWorkspaceFactory.Open(pPropSet, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pClass As IFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pClass = pWorkSpace.OpenFeatureClass("xyz")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pLayer As IFeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pLayer = New FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pLayer.FeatureClass = pClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pLayer.Name = pClass.AliasName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pMxDoc.AddLayer pLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pMxDoc.ActiveView.PartialRefresh esriViewGeography, pLayer, Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error that is being displayed is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception has occurred in Business Analyst. Please contact your system administrator &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message stack:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at esriBA9.Common.DBUtilities.GetDatasetFilePath(IDataset ds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone tell me if you have faced such issues and how to go about it...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 10:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703840#M740</guid>
      <dc:creator>archanababu</dc:creator>
      <dc:date>2013-07-01T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: BA Trade Area exception on Feature class</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703841#M741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume that the feature class being queried from SDE is a point feature.&amp;nbsp; That aside I would suggest to try using Store Setup first instead of doing directly to the Simple Ring trade area tool.&amp;nbsp; Another good test is after adding the feature to the table of contents is exporting as a shapefile/feature class to the C:\My Output Data folder and giving that a go with Simple Rings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason R.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 00:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703841#M741</guid>
      <dc:creator>Jason_RobinsonRobinson</dc:creator>
      <dc:date>2013-07-09T00:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: BA Trade Area exception on Feature class</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703842#M742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies for the late response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it was a point featureclass but it does not work for polygons as well.It is not about simple rings but any tool from BA is yielding this error.I tried using the Site analysis and the error still occurrs.I do not get any error if I add a table from sde to TOC ,error occurs only for featureclasses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error that is being displayed is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception has occurred in Business Analyst. Please contact your system administrator &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message stack:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index was outside the bounds of the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at esriBA9.Common.DBUtilities.GetDatasetFilePath(IDataset ds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know your thoughts about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 04:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/ba-trade-area-exception-on-feature-class/m-p/703842#M742</guid>
      <dc:creator>archanababu</dc:creator>
      <dc:date>2013-11-26T04:02:39Z</dc:date>
    </item>
  </channel>
</rss>

