<?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: GPServer Submit job (get) failing in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103976#M2625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like your file is not getting uploaded or not making it in to your process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried creating a parameters object and passing that object in the geoprocessorTask.SubmitJobAsync function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example shown here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/"&gt;http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 17:03:10 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2014-01-09T17:03:10Z</dc:date>
    <item>
      <title>GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103971#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a Geoprocess to upload an AutoCAD file (dxf) and return a Polygon contained in it. When I run the service using a post message, it runs and concludes sucessfuly. But when I try to use the service via get or Silverlight (wich also uses get) the service fails for the same file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code that calls my service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private void LoadCADFile(object sender, RoutedEventArgs e)
{
 var openFileDialog = new OpenFileDialog
 {
&amp;nbsp; Multiselect = false,
&amp;nbsp; Filter = "AutoCAD File (*.dxf)|*.dxf",
&amp;nbsp; FilterIndex = 1
 };
 openFileDialog.ShowDialog();

 if (openFileDialog.File == null) return;
 var fileStream = openFileDialog.File.OpenRead();

 var uploadTask = new UploadTask(@"http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer")
 {
&amp;nbsp; DisableClientCaching = true
 };
 
 uploadTask.UploadCompleted += CADFileLoaded;
 uploadTask.UploadAsync(new UploadParameters
 {
&amp;nbsp; FileName = openFileDialog.File.Name,
&amp;nbsp; FileStream = fileStream,
 });
}

private void CADFileLoaded(object sender, UploadEventArgs e)
{
 var geoprocessor = new Geoprocessor(@"http://myserver/arcgis/rest/services/AutoCad/GPServer/AutoCad")
 {
&amp;nbsp; DisableClientCaching = true,
&amp;nbsp; ReturnM = false,
&amp;nbsp; ReturnZ = false
 };
 geoprocessor.JobCompleted +=
&amp;nbsp; (s, args) =&amp;gt;
&amp;nbsp;&amp;nbsp; args.JobInfo.Messages.ForEach(
&amp;nbsp;&amp;nbsp;&amp;nbsp; message =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(message.Description, message.MessageType.ToString(), MessageBoxButton.OK));
 geoprocessor.SubmitJobAsync(new List&amp;lt;GPParameter&amp;gt;
 {
&amp;nbsp; new GPItemID("Parque_de_Pituaçu_2013__wgs84__dxf",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Result.Item.ItemID)
 });
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 17:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103971#M2620</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2014-01-08T17:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103972#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jonatas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at your server logs to see what may be causing the issue? Have you tried the gp service in both asynchronous and synchronous modes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 17:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103972#M2621</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-01-08T17:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103973#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the version of ArcGISServer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remember well, Upload is available only from 10.1 or 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To check that, you can browse to &lt;/SPAN&gt;&lt;A href="http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer"&gt;http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer&lt;/A&gt;&lt;SPAN&gt; and verify that there is an 'Uploads' child resource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With previous version you have to use a GPDataFile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 07:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103973#M2622</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-01-09T07:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103974#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jonatas,&lt;BR /&gt;&lt;BR /&gt;Have you looked at your server logs to see what may be causing the issue? Have you tried the gp service in both asynchronous and synchronous modes?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes i have, these are the messages that my server is returning:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Job Messages: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriJobMessageTypeInformative: Submitted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriJobMessageTypeInformative: Executing... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriJobMessageTypeError: ERROR 000735: Parque de Pituaçu 2013 (wgs84).dxf: Value is required &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriJobMessageTypeError: ERROR 000735: Parque de Pituaçu 2013 (wgs84).dxf: Value is required The value is empty. ERROR 000735: Input Data Element: Value is required &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriJobMessageTypeError: Failed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to run my gp service as asynchronous and synchronous, but in both cases i had the same error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103974#M2623</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2014-01-09T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103975#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the version of ArcGISServer?&lt;BR /&gt;&lt;BR /&gt;If I remember well, Upload is available only from 10.1 or 10.1 SP1.&lt;BR /&gt;To check that, you can browse to &lt;A href="http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer"&gt;http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer&lt;/A&gt; and verify that there is an 'Uploads' child resource.&lt;BR /&gt;With previous version you have to use a GPDataFile.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The version of my ArcGISServer is 10.1 SP1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103975#M2624</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2014-01-09T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103976#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like your file is not getting uploaded or not making it in to your process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried creating a parameters object and passing that object in the geoprocessorTask.SubmitJobAsync function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example shown here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/"&gt;http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 17:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103976#M2625</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-01-09T17:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer Submit job (get) failing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103977#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It looks like your file is not getting uploaded or not making it in to your process.&lt;BR /&gt;&lt;BR /&gt;Have you tried creating a parameters object and passing that object in the geoprocessorTask.SubmitJobAsync function.&lt;BR /&gt;&lt;BR /&gt;Example shown here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/"&gt;http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes i have, in my code below i am passing a list of GPParameters where my object parameter is a GPItemID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geoprocessor.SubmitJobAsync(new List&amp;lt;GPParameter&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; new GPItemID("Parque_de_Pituaçu_2013__wgs84__dxf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Result.Item.ItemID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 18:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/gpserver-submit-job-get-failing/m-p/103977#M2626</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2014-01-09T18:21:01Z</dc:date>
    </item>
  </channel>
</rss>

