<?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 Collector won't sync when using a query string in layer url in ArcGIS Collector Questions</title>
    <link>https://community.esri.com/t5/arcgis-collector-questions/collector-won-t-sync-when-using-a-query-string-in/m-p/128115#M2307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have build an automated AGOL web map publishing tool that creates web maps with non-hosted, credential-embedded FeatureLayers that all point to a single service. Each unique web maps adds the layers with a query string parameter, e.g. the webmap JSON layers definition looks like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;"operationalLayers" : [{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "id" : "Event_Collector_0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "layerType" : "ArcGISFeatureLayer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt;&amp;nbsp; "url" : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Futility.arcgis.com%2Fusrsvcs%2Fservers%2F33b430edb78b4b888933dd93b63309a0%2Frest%2Fservices%2FIMT%2FEvent_Collector%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;https://utility.arcgis.com/usrsvcs/servers/33b430edb78b4b888933dd93b63309a0/rest/services/IMT/Event_Collector/FeatureServer/0&lt;/A&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;?extraParameter=foo&lt;/STRONG&gt;&lt;/SPAN&gt;",&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "visibility" : true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "opacity" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "mode" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "title" : "Event_Collector - Event Point",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "itemId" : "33b430edb78b4b888933dd93b63309a0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "layerDefinition" : null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;}, ...]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This way, all edits performed on these webmaps appear at the destination server with their unique&amp;nbsp;extra query string parameter (or POST body element), in this case "extraParameter": "foo". We use a SOI on the destination server to manipulate the data based on this parameter. &amp;nbsp;This system works very well for almost all REST operations (query, applyEdits, createReplica, etc.) but Collector will not perform a&amp;nbsp;syncronizeReplica operation with replicas it has created. Instead it performs an unregisterReplica and uploads a new replica, and pops up a sign&amp;nbsp;in dialog that does not successfully sign in (since we've embedded credentials in the AGOL feature service, you shouldn't have to log in anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess as to what's happening is that Collector is not recognizing replicas that do not fit a predefined url pattern, i.e. the query string is making it think the replica is invalid. If I publish the map without any query string, Collector works normally and syncs just fine. Any ideas out there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 12:56:07 GMT</pubDate>
    <dc:creator>DanielWalton</dc:creator>
    <dc:date>2017-05-19T12:56:07Z</dc:date>
    <item>
      <title>Collector won't sync when using a query string in layer url</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-won-t-sync-when-using-a-query-string-in/m-p/128115#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have build an automated AGOL web map publishing tool that creates web maps with non-hosted, credential-embedded FeatureLayers that all point to a single service. Each unique web maps adds the layers with a query string parameter, e.g. the webmap JSON layers definition looks like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;"operationalLayers" : [{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "id" : "Event_Collector_0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "layerType" : "ArcGISFeatureLayer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt;&amp;nbsp; "url" : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Futility.arcgis.com%2Fusrsvcs%2Fservers%2F33b430edb78b4b888933dd93b63309a0%2Frest%2Fservices%2FIMT%2FEvent_Collector%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;https://utility.arcgis.com/usrsvcs/servers/33b430edb78b4b888933dd93b63309a0/rest/services/IMT/Event_Collector/FeatureServer/0&lt;/A&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;?extraParameter=foo&lt;/STRONG&gt;&lt;/SPAN&gt;",&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "visibility" : true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "opacity" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "mode" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "title" : "Event_Collector - Event Point",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "itemId" : "33b430edb78b4b888933dd93b63309a0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; "layerDefinition" : null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'courier new', courier, monospace;"&gt;}, ...]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This way, all edits performed on these webmaps appear at the destination server with their unique&amp;nbsp;extra query string parameter (or POST body element), in this case "extraParameter": "foo". We use a SOI on the destination server to manipulate the data based on this parameter. &amp;nbsp;This system works very well for almost all REST operations (query, applyEdits, createReplica, etc.) but Collector will not perform a&amp;nbsp;syncronizeReplica operation with replicas it has created. Instead it performs an unregisterReplica and uploads a new replica, and pops up a sign&amp;nbsp;in dialog that does not successfully sign in (since we've embedded credentials in the AGOL feature service, you shouldn't have to log in anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess as to what's happening is that Collector is not recognizing replicas that do not fit a predefined url pattern, i.e. the query string is making it think the replica is invalid. If I publish the map without any query string, Collector works normally and syncs just fine. Any ideas out there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 12:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-won-t-sync-when-using-a-query-string-in/m-p/128115#M2307</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2017-05-19T12:56:07Z</dc:date>
    </item>
  </channel>
</rss>

