<?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: GPMultiValue:GPFeatureRecordSetLayer Help in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062673#M73308</link>
    <description>&lt;P&gt;Here are a couple things I would try while troubleshooting an issue like this:&lt;/P&gt;&lt;P&gt;1) Test the same request in a REST Client (like Postman). It may work directly on the endpoint but break when the request comes from an external source for some reason. Use the same headers, body, etc.&lt;/P&gt;&lt;P&gt;2) Try using &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify" target="_self"&gt;JSON.stringify()&lt;/A&gt;&amp;nbsp;on the array before sending the request.&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 23:16:31 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2021-05-27T23:16:31Z</dc:date>
    <item>
      <title>GPMultiValue:GPFeatureRecordSetLayer Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062190#M73294</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm attempting to submit a job to a gp service that takes multiple Feature Sets as a parameter aka GPMultiValue:GPFeatureRecordSetLayer on the gp service end.&lt;/P&gt;&lt;P&gt;I have confirmed my gp service is working correctly by submitting jobs via the rest endpoint and manually supplying the parameter.&lt;/P&gt;&lt;P&gt;I'm using array.push() to add my feature sets to an array and using this as the parameter value for the gp service in my app.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the arcgis server shows my input as having no value when coming from my app. I can see the network traffic and the array looks good when submitted. In fact I have copied the text in the headers and submitted it manually and the gp service runs great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have some insight as to what might be happening here?&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;-Dane&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 07:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062190#M73294</guid>
      <dc:creator>dcarson1661</dc:creator>
      <dc:date>2021-05-27T07:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: GPMultiValue:GPFeatureRecordSetLayer Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062673#M73308</link>
      <description>&lt;P&gt;Here are a couple things I would try while troubleshooting an issue like this:&lt;/P&gt;&lt;P&gt;1) Test the same request in a REST Client (like Postman). It may work directly on the endpoint but break when the request comes from an external source for some reason. Use the same headers, body, etc.&lt;/P&gt;&lt;P&gt;2) Try using &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify" target="_self"&gt;JSON.stringify()&lt;/A&gt;&amp;nbsp;on the array before sending the request.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 23:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062673#M73308</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2021-05-27T23:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: GPMultiValue:GPFeatureRecordSetLayer Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062706#M73314</link>
      <description>&lt;P&gt;Thanks for the ideas!&lt;/P&gt;&lt;P&gt;I had tried JSON.stringify() before with no luck and had failed to mention it.&lt;/P&gt;&lt;P&gt;This did give me an idea for a workaround though. I changed my gp service to take in a single string and fed it the JSON.stringify() version of my array of feature sets. On the gp service end I converted the string back to JSON and then used JSON to Features conversion to then work with the data as feature classes again. It's a workaround, but fits my needs at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 02:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gpmultivalue-gpfeaturerecordsetlayer-help/m-p/1062706#M73314</guid>
      <dc:creator>dcarson1661</dc:creator>
      <dc:date>2021-05-28T02:40:56Z</dc:date>
    </item>
  </channel>
</rss>

