<?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: Python parameter type changed during packaging from python to geoprocessing packa in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183964#M511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I to have similar issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I pass the input Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geoprocessor.executeAsync(parameters, new CallbackListener&amp;lt;GPParameter[]&amp;gt;(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onError(Throwable e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onCallback(GPParameter[] result) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(result != null){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; System.out.println("success");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives following error::&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;com.esri.core.io.EsriServiceException: Unable to complete operation.&lt;BR /&gt;Error executing tool.: ERROR 000735: inGraphics: Value is required&lt;BR /&gt;ERROR 000735: inGraphics: Value is required&lt;BR /&gt;ERROR 000735: inGraphics: Value is required&lt;BR /&gt;&lt;BR /&gt; at com.esri.core.io.EsriServiceException.fromJson(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.c.a(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.l.a(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.l.a(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.b(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.a(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.execute(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.tasks.b.call(Unknown Source)&lt;BR /&gt; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:138)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 08:34:10 GMT</pubDate>
    <dc:creator>RavindraSingh</dc:creator>
    <dc:date>2013-05-08T08:34:10Z</dc:date>
    <item>
      <title>Python parameter type changed during packaging from python to geoprocessing package</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183962#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:dwong@lgc.com"&gt;dwong@lgc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to set up a geoprocessing service from a very simple python script.&amp;nbsp; The parameters are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�?� Input Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Data Type: FeatureSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Type: Required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Direction: Input&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?� Output File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Data Type: File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Type: Required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Direction: Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks fine in ArcMap during its packaging into gpk:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23530[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not look fine when I use the sample Runtime app com.esri.client.samples.geoprocessing.LocalGPTaskInfoApp to look at the parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23531[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The inFeatureSet switch from the Feature Set type into the GPString type.&amp;nbsp; Subsequently, the geoprocessing operation fails with the following error that appears to be related to the parameter type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23532[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how the parameter type gets changed in the gpk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Need some pointers to keep the parameter type from changing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 20:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183962#M509</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-15T20:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python parameter type changed during packaging from python to geoprocessing packa</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183963#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: gyoung76&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I discovered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;if you use either of the following forms of python code, the parameter becomes a GPString (verified by using the LocalGPTaskInfoApp sample)&lt;/LI&gt;&lt;BR /&gt;[INDENT]InputGPFeatureRecordSetLayerPoints = "InputGPFeatureRecordSetLayerPoints [150757_04232013]"&lt;BR /&gt;[/INDENT]&lt;BR /&gt;[INDENT]InputGPFeatureRecordSetLayerPoints = "in_memory\\{1ECB4347-E633-41A8-9809-F3CE032625D3}"[/INDENT]&lt;BR /&gt;&lt;LI&gt;if you use the following form, the parameter becomes a com.esri.core.tasks.ags.geoprocessing.GPFeatureRecordSetLayer. This is the type that corresponds to FeatureSet.&lt;/LI&gt;&lt;BR /&gt;[INDENT]InputGPFeatureRecordSetLayerPoints = "%ScratchWorkspace%\\scratch.gdb\\InputGPFeatureRecordSetLayerPoints"&lt;BR /&gt;[/INDENT]&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure where or how you see the dialog that shows you the parameters are good while creating the GPK, I think you must have 10.1 SP2; so I'll give that a try. The "Working with feature sets and record sets" may give you other ideas of how to force a feature set in python.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001n000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gayle.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 09:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183963#M510</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-24T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python parameter type changed during packaging from python to geoprocessing packa</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183964#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I to have similar issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I pass the input Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geoprocessor.executeAsync(parameters, new CallbackListener&amp;lt;GPParameter[]&amp;gt;(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onError(Throwable e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onCallback(GPParameter[] result) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(result != null){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; System.out.println("success");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives following error::&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;com.esri.core.io.EsriServiceException: Unable to complete operation.&lt;BR /&gt;Error executing tool.: ERROR 000735: inGraphics: Value is required&lt;BR /&gt;ERROR 000735: inGraphics: Value is required&lt;BR /&gt;ERROR 000735: inGraphics: Value is required&lt;BR /&gt;&lt;BR /&gt; at com.esri.core.io.EsriServiceException.fromJson(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.c.a(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.l.a(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.io.handler.l.a(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.b(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.a(Unknown Source)&lt;BR /&gt; at com.esri.core.tasks.ags.geoprocessing.b.execute(Unknown Source)&lt;BR /&gt; at com.esri.core.internal.tasks.b.call(Unknown Source)&lt;BR /&gt; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:138)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 08:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/python-parameter-type-changed-during-packaging/m-p/183964#M511</guid>
      <dc:creator>RavindraSingh</dc:creator>
      <dc:date>2013-05-08T08:34:10Z</dc:date>
    </item>
  </channel>
</rss>

