<?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: Error creating an offline geodatabase in Quartz in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292092#M3420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thad for looking into this. I can now create an offline geodatabase!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2017 10:46:41 GMT</pubDate>
    <dc:creator>PaulLivingstone</dc:creator>
    <dc:date>2017-01-13T10:46:41Z</dc:date>
    <item>
      <title>Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292086#M3414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting an error using the sample code (&lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/create-an-offline-map.htm"&gt;https://developers.arcgis.com/net/latest/wpf/guide/create-an-offline-map.htm&lt;/A&gt;)&amp;nbsp;for creating an offline replica geodatabase:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Job failed. Job error 22 User defined failure. Error while handling generate geodatabase job status. Job error 400 Failed to create replica. Multiple layers are referencing a dataset, which is not supported."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I point the endpoint to a local ArcGIS Server feature service with only 1 layer in it I get the same error. If I create it with the same arguments within a web browser then it creates the replica on the server without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a solution to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 15:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292086#M3414</guid>
      <dc:creator>PaulLivingstone</dc:creator>
      <dc:date>2017-01-04T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292087#M3415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a couple of other posts covering that problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/120118"&gt;https://community.esri.com/thread/120118&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/92922"&gt;Fail to create replica.Multiple layers are referencing a dataset,which is not support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292087#M3415</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-01-04T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292088#M3416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Morten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the links you supplied is that they are not for not for Quartz and I am using the Esri tutorial code from &lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/create-an-offline-map.htm"&gt;https://developers.arcgis.com/net/latest/wpf/guide/create-an-offline-map.htm&lt;/A&gt;&amp;nbsp;and&amp;nbsp;the Esri&amp;nbsp;ArcGIS online feature service uri and it is still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can supply the code I am using but it is just what Esri is saying to use!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 19:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292088#M3416</guid>
      <dc:creator>PaulLivingstone</dc:creator>
      <dc:date>2017-01-05T19:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292089#M3417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;The problem with the links you supplied is that they are not for not for Quartz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't really matter, since this is a service error, and not a runtime error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 19:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292089#M3417</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-01-05T19:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292090#M3418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - So the code examples you give for runtime Quartz will not work because the Esri rest endpoints (layers)&amp;nbsp;are invalid for&amp;nbsp;the example you provide in the tutorial. Can you give valid endpoints for your examples in the code tutorial?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not trying to be difficult but if I try with my local ArcGIS Server 10.4.1 endpoints with one feature layer then it still does not work. Someone In Esri needs to take responsibility for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morten can you escalate this to someone in ArcGIS Server/ ArcGIS Online?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292090#M3418</guid>
      <dc:creator>PaulLivingstone</dc:creator>
      <dc:date>2017-01-05T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292091#M3419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Paul,&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;this today and experienced the same issue you described. I took a closer look at the underlying REST request and the culprit was the value of the layers parameter, which looked like this: "[0,1,2,0,1]" (notice that layers 0 and 1 are in there twice).&amp;nbsp;The following code adds to the GenerateGeodatabaseParams.LayerOptions, but those layers (and one more) are already defined by default:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generateGdbParams.LayerOptions.Add(new GenerateLayerOption(marineLayerId, dolphinsOnlyWhereClause));&lt;BR /&gt;generateGdbParams.LayerOptions.Add(new GenerateLayerOption(birdsLayerId));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ... you just need to clear the LayerOptions before adding to them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generateGdbParams.LayerOptions.Clear(); //&amp;lt;--Do this before adding to the layer options&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;generateGdbParams.LayerOptions.Add(x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;generateGdbParams.LayerOptions.Add(y);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also found another glitch "downstream" from this that you might hit. When creating the layer from one of the output GDB tables, you need to make sure you load the table first, otherwise you'll get an exception when trying to read properties (such as the Name of the table):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// get the first table&lt;BR /&gt;var gdbFeatureTable = gdb.GeodatabaseFeatureTable(0);&lt;BR /&gt;await gdbFeatureTable.LoadAsync(); // &amp;lt;--Load it!&lt;BR /&gt;// create a FeatureLayer to display the table&lt;BR /&gt;var localGdbLayer = new FeatureLayer(gdbFeatureTable);&lt;BR /&gt;// name the layer with the table name&lt;BR /&gt;localGdbLayer.Name = gdbFeatureTable.TableName; //&amp;lt;--exception here if it's not loaded&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Apologies for the frustration, we certainly should have caught this before putting it in the doc. Thanks for pointing it out ... at least we can save the next person some stress! Please let us know if you hit anything else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292091#M3419</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2017-01-12T21:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating an offline geodatabase in Quartz</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292092#M3420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thad for looking into this. I can now create an offline geodatabase!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 10:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-creating-an-offline-geodatabase-in-quartz/m-p/292092#M3420</guid>
      <dc:creator>PaulLivingstone</dc:creator>
      <dc:date>2017-01-13T10:46:41Z</dc:date>
    </item>
  </channel>
</rss>

