<?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: Geoprocessing fails from silverlight in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186546#M4637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dominique &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After your input to change it to Expression, I tested the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I saw that my geoprocessing looks like working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I kept break on&amp;nbsp; geoprocessorTask_JobCompleted method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see it comes back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I saw that I get the status as failed when I look at the values for job status.(shown in snap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I got back to the browser and submit the job again. It runs sucessfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to give the the expression as shown in the snap shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your reference I showed the rest definition also&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also Note that in my silverlight code I see the parameter value enclosed in double quote as u can see in snap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"TRANS_ID='17bec382-fd6b-44b7-9724-675f2d4334c2'""&amp;nbsp;&amp;nbsp; (rest definition says this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But in browser to run the job I need to give it like this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TRANS_ID='17bec382-fd6b-44b7-9724-675f2d4334c2'&amp;nbsp; Then only it runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has this any thing to do with the service failing when I run from silverlight code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot figure out any thing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 16:55:26 GMT</pubDate>
    <dc:creator>MuralidharMoka</dc:creator>
    <dc:date>2011-05-25T16:55:26Z</dc:date>
    <item>
      <title>Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186542#M4633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run my geoprocessing code from silveright , It fails&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when I go to geoprocessing service and submit the&amp;nbsp; jobs it runs sucessfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I need to give the TRANS_ID in single quote when I run the geoproc service in the browser. double quote will fail. does it has any thing to do about my silverlight code failing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The snap attached contains my silverlight code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if I should provide any more details. Because I could not figure out why this is happening.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 00:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186542#M4633</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-13T00:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186543#M4634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From my understanding, the name of your parameter is 'Expression' and the value should be something like "TRANS_ID = '3'".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So your code should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(new GPString("Expression", string.Format("TRANS_ID='{0}'", transid);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 06:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186543#M4634</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-05-13T06:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186544#M4635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much. Great support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Muralidhar Moka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 15:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186544#M4635</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-13T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186545#M4636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are welcome. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 15:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186545#M4636</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-05-13T15:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186546#M4637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dominique &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After your input to change it to Expression, I tested the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I saw that my geoprocessing looks like working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I kept break on&amp;nbsp; geoprocessorTask_JobCompleted method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see it comes back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I saw that I get the status as failed when I look at the values for job status.(shown in snap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I got back to the browser and submit the job again. It runs sucessfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to give the the expression as shown in the snap shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your reference I showed the rest definition also&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also Note that in my silverlight code I see the parameter value enclosed in double quote as u can see in snap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"TRANS_ID='17bec382-fd6b-44b7-9724-675f2d4334c2'""&amp;nbsp;&amp;nbsp; (rest definition says this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But in browser to run the job I need to give it like this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TRANS_ID='17bec382-fd6b-44b7-9724-675f2d4334c2'&amp;nbsp; Then only it runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has this any thing to do with the service failing when I run from silverlight code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot figure out any thing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 16:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186546#M4637</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-25T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186547#M4638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At first glance your code looks good, I don't see any difference between the expression you enter in the web page and the value you generated by code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you could use fiddler to look at the requests sent to the server, that could give a clue by comparing the working request and the&amp;nbsp; non working request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186547#M4638</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-05-25T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186548#M4639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dominique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To the GeoprocessingTask we sent the TRANSID ='3fc22379-ac83-47f2-aa2a-77a74d867a64'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We observed the URLS in fiddler, Here are the URL which we observed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The url sent from silverlight code (The non working request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gis.dev.fmh.com /ArcGISWeb/rest/services/Geoprocessing/ORACLE_FMH_CLU_SP11_GeoProc/GPServer/PivotBuffer/submitJob?Expression=TRANS_ID%3d%5cu00273fc22379-ac83-47f2-aa2a-77a74d867a64%5cu0027&amp;amp;f=json&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The url submitted from browser(The working request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gis.dev.fmh.com /ArcGISWeb/rest/services/Geoprocessing/ORACLE_FMH_CLU_SP11_GeoProc/GPServer/PivotBuffer/submitJob?Expression=TRANS_ID%3D%273fc22379-ac83-47f2-aa2a-77a74d867a64%27&amp;amp;env%3AoutSR=&amp;amp;env%3AprocessSR=&amp;amp;f=htm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We used a URL decoder from web and then just tried decoding the above two to find whether they match with we sent. They look like these after decoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The url sent from silverlight code (The non working request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gis.dev.fmh.com /ArcGISWeb/rest/services/Geoprocessing/ORACLE_FMH_CLU_SP11_GeoProc/GPServer/PivotBuffer/submitJob?Expression=TRANS_ID=\u00273fc22379-ac83-47f2-aa2a-77a74d867a64\u0027&amp;amp;f=json&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The url submitted from browser(The working request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gis.dev.fmh.com /ArcGISWeb/rest/services/Geoprocessing/ORACLE_FMH_CLU_SP11_GeoProc/GPServer/PivotBuffer/submitJob?Expression=TRANS_ID='3fc22379-ac83-47f2-aa2a-77a74d867a64'&amp;amp;env:outSR=&amp;amp;env:processSR=&amp;amp;f=htm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing we note after we observed the decoded one that fails, is we see a \u0027 added after TRANSID=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It shows that our single quote ' in silveright gets encoded to \u0027 after we sumit to the geoprocessorTask.SubmitJobAsync(parameters);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you guess what's happening here. We could not figure out this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the URL decoding site we found which helped to decode our URLS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://meyerweb.com/eric/tools/dencoder/"&gt;http://meyerweb.com/eric/tools/dencoder/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the link to Url encoding symbols&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.w3schools.com/TAGS/ref_urlencode.asp"&gt;http://www.w3schools.com/TAGS/ref_urlencode.asp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: %3D is an = (equal sign)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %27 is a&amp;nbsp; '&amp;nbsp; (single quote)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Muralidhar Moka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 15:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186548#M4639</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-26T15:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186549#M4640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After further investigations, it seems it's a bug in the encoding of the string parameters which has been fixed in 2.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you try with the 2.2 beta for checking that it's really fixed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 16:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186549#M4640</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-05-26T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing fails from silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186550#M4641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Installing beta 2.2 fixed the Geoprocessing problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much once again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Muralidhar Moka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 18:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geoprocessing-fails-from-silverlight/m-p/186550#M4641</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-26T18:24:33Z</dc:date>
    </item>
  </channel>
</rss>

