<?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 Limit to character length: Geoprocessing Inputs in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632759#M21089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good day all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to get clarity on an issue I am having with the use of Geoprocessing tools in VB.NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I have an Add-In that draws in a number of Geoprocessing Operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the GP.Execute(Geprocessor Name, Nothing) way of conducting the whole thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The inputs for this need to be the path of the shapefiles i.e. C:\Directory\Test.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting stuck when trying to use data sitting on the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The GP.Execute simply will not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do the process manually, it works - so I do not think its a server rights issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which leads me to believe its a Character Limit - is there a character limit to inputs / outputs in a geoprocessor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I keep the data on my C:\ and use short directory names, everything works 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas / solutions will be welcomed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;K&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 12:34:11 GMT</pubDate>
    <dc:creator>KeaganAllan</dc:creator>
    <dc:date>2013-10-21T12:34:11Z</dc:date>
    <item>
      <title>Limit to character length: Geoprocessing Inputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632759#M21089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good day all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to get clarity on an issue I am having with the use of Geoprocessing tools in VB.NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I have an Add-In that draws in a number of Geoprocessing Operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the GP.Execute(Geprocessor Name, Nothing) way of conducting the whole thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The inputs for this need to be the path of the shapefiles i.e. C:\Directory\Test.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting stuck when trying to use data sitting on the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The GP.Execute simply will not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do the process manually, it works - so I do not think its a server rights issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which leads me to believe its a Character Limit - is there a character limit to inputs / outputs in a geoprocessor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I keep the data on my C:\ and use short directory names, everything works 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas / solutions will be welcomed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;K&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 12:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632759#M21089</guid>
      <dc:creator>KeaganAllan</dc:creator>
      <dc:date>2013-10-21T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to character length: Geoprocessing Inputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632760#M21090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Good day all,&lt;BR /&gt;&lt;BR /&gt;I was hoping to get clarity on an issue I am having with the use of Geoprocessing tools in VB.NET.&lt;BR /&gt;&lt;BR /&gt;Essentially I have an Add-In that draws in a number of Geoprocessing Operations.&lt;BR /&gt;&lt;BR /&gt;I am using the GP.Execute(Geprocessor Name, Nothing) way of conducting the whole thing.&lt;BR /&gt;The inputs for this need to be the path of the shapefiles i.e. C:\Directory\Test.shp&lt;BR /&gt;&lt;BR /&gt;I am getting stuck when trying to use data sitting on the server.&lt;BR /&gt;The GP.Execute simply will not work.&lt;BR /&gt;&lt;BR /&gt;If I do the process manually, it works - so I do not think its a server rights issue.&lt;BR /&gt;Which leads me to believe its a Character Limit - is there a character limit to inputs / outputs in a geoprocessor?&lt;BR /&gt;&lt;BR /&gt;If I keep the data on my C:\ and use short directory names, everything works 100%.&lt;BR /&gt;&lt;BR /&gt;Any ideas / solutions will be welcomed!&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;K&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok an update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have since tried creating a nightmare of a directory tree, trying to max out the number characters used in the input and outputs of the GP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now guessing that although I can do the process manually to our network drive, trying to do it from ArcMap using the VB Add-In may be causing the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have READ and WRITE access to this drive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something I need to call in order to allow me to use the network information?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find my Code Below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;K&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function VS()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim gp As New Geoprocessor

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim VSh As ESRI.ArcGIS.Analyst3DTools.Viewshed = New ESRI.ArcGIS.Analyst3DTools.Viewshed
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim out As String
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out = Label1.Text


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VSh.in_observer_features = Label3.Text&amp;nbsp; ' reads this from a label populated with the full path to the input feature
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VSh.in_raster = Label2.Text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' reads this from a label populated with the full path to the raster feature
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VSh.out_raster = Label4.Text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' reads this from a label populated with the full path to the output raster 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VS = gp.Execute(VSh, Nothing)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' if the label text above points to my C:\ this works, if it points to the network drive (G:\ ; H:\ ; Q:\) it all fails
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp = Nothing

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632760#M21090</guid>
      <dc:creator>KeaganAllan</dc:creator>
      <dc:date>2021-12-12T02:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to character length: Geoprocessing Inputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632761#M21091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Final Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that the code does not like spaces in the Directory Path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some of my project folders contained spaces and Murphy's Law, those were the ones I was testing in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moral of the story: Avoid having spaces in filenames and paths.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 04:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/limit-to-character-length-geoprocessing-inputs/m-p/632761#M21091</guid>
      <dc:creator>KeaganAllan</dc:creator>
      <dc:date>2013-10-31T04:52:29Z</dc:date>
    </item>
  </channel>
</rss>

