<?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 How to set the input parameter for &amp;quot;define projection&amp;quot; local geoprocessing package in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-set-the-input-parameter-for-quot-define/m-p/228335#M2718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I made the "define project" local geoprocessing package via arcmap 10.2&amp;nbsp;toolbox-&amp;gt;data management tools-&amp;gt;projections and transformations-&amp;gt;Define Projection via option "support Arcgis runtime" checked. and then I call this local service via arcgis runtime .net 100.6, the code snippet is shown as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoprocessingParameters gpParams = new GeoprocessingParameters(GeoprocessingExecutionType.AsynchronousSubmit);&lt;BR /&gt; gpParams.Inputs["coor_system"] = new GeoprocessingString(projectString);&lt;BR /&gt; gpParams.Inputs["in_dataset"] = new GeoprocessingFeatures(new Uri(tifPath));//with loca tif abosolute path, is it wrong here?&lt;BR /&gt; // Create the job&lt;BR /&gt; m_gpJob = m_gpTask.CreateJob(gpParams);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got error on&amp;nbsp;JobChanged event saying, "Illegal state: Server job has failed. Invalid return value: c:\users\peter\appdata\local\temp\arcgisruntime_28976\defineprojection_dom\jobs\defineprojection_dom_gpserver\j98a707d142604f029a969ffa2d886c9e\scratch\dom.tif."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help find out where is going wrong and give some clues to make the local service work as expected? thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached snapshot is the 'define projection' local service submit&amp;nbsp;job&amp;nbsp;page, how to set the correct value for the input 'in_dataset‘ with type&amp;nbsp;&lt;EM style="color: #000000; background-color: #ffffff; font-size: 12.8px;"&gt;GPRasterDataLayer?&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2019 02:25:37 GMT</pubDate>
    <dc:creator>PeterChen1</dc:creator>
    <dc:date>2019-09-30T02:25:37Z</dc:date>
    <item>
      <title>How to set the input parameter for "define projection" local geoprocessing package</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-set-the-input-parameter-for-quot-define/m-p/228335#M2718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I made the "define project" local geoprocessing package via arcmap 10.2&amp;nbsp;toolbox-&amp;gt;data management tools-&amp;gt;projections and transformations-&amp;gt;Define Projection via option "support Arcgis runtime" checked. and then I call this local service via arcgis runtime .net 100.6, the code snippet is shown as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoprocessingParameters gpParams = new GeoprocessingParameters(GeoprocessingExecutionType.AsynchronousSubmit);&lt;BR /&gt; gpParams.Inputs["coor_system"] = new GeoprocessingString(projectString);&lt;BR /&gt; gpParams.Inputs["in_dataset"] = new GeoprocessingFeatures(new Uri(tifPath));//with loca tif abosolute path, is it wrong here?&lt;BR /&gt; // Create the job&lt;BR /&gt; m_gpJob = m_gpTask.CreateJob(gpParams);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got error on&amp;nbsp;JobChanged event saying, "Illegal state: Server job has failed. Invalid return value: c:\users\peter\appdata\local\temp\arcgisruntime_28976\defineprojection_dom\jobs\defineprojection_dom_gpserver\j98a707d142604f029a969ffa2d886c9e\scratch\dom.tif."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help find out where is going wrong and give some clues to make the local service work as expected? thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached snapshot is the 'define projection' local service submit&amp;nbsp;job&amp;nbsp;page, how to set the correct value for the input 'in_dataset‘ with type&amp;nbsp;&lt;EM style="color: #000000; background-color: #ffffff; font-size: 12.8px;"&gt;GPRasterDataLayer?&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 02:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-set-the-input-parameter-for-quot-define/m-p/228335#M2718</guid>
      <dc:creator>PeterChen1</dc:creator>
      <dc:date>2019-09-30T02:25:37Z</dc:date>
    </item>
  </channel>
</rss>

