<?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 Load FileGDB (exported from ArcGIS Pro) by Map SDK in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/load-filegdb-exported-from-arcgis-pro-by-map-sdk/m-p/1493855#M12794</link>
    <description>&lt;P&gt;we use Arc Pro to export a group layer into a LYRX file. This layer file indicates a FileGDB in the&amp;nbsp;dataConnection&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"dataConnection" : {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"type" : "CIMStandardDataConnection",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"workspaceConnectionString" : "DATABASE=C:\\Users\\Jun.Guan\\OneDrive - Bentley Systems, Inc\\Documents\\ArcGIS\\Packages\\KEk_GIS_20230414a_ajs_for_Geosoft_1ff973\\p20\\ek_map_20220622_ajs.gdb",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"workspaceFactory" : "&lt;STRONG&gt;FileGDB&lt;/STRONG&gt;",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"dataset" : "DescriptionOfMapUnits",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"datasetType" : "esriDTTable"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We try to load this FileGDB based on the sample in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/have-to-add-feature-classes-from-file-geodatabase/m-p/1019484/highlight/true#M9689" target="_blank"&gt;https://community.esri.com/t5/net-maps-sdk-questions/have-to-add-feature-classes-from-file-geodatabase/m-p/1019484/highlight/true#M9689&lt;/A&gt;. But we found the sample in the post is for v100.7, and it does not exist in the current version (&amp;gt;100.15). We try:&lt;/P&gt;&lt;P&gt;1. add the sample (&lt;SPAN&gt;DynamicWorkspaceShapefile) into the current version, and get the following error when loading the sample shapefile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Esri.ArcGISRuntime.Http.ArcGISWebException: Failed to create service mpk_blank MapServer. Wrong package type used to start service&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at Esri.ArcGISRuntime.Http.HttpDispatcher.SendAsync(HttpRequestMessage request, HandlerOptions options, CancellationToken cancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at System.Net.Http.HttpClient.&amp;lt;SendAsync&amp;gt;g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at Esri.ArcGISRuntime.LocalServices.LocalService.StartServiceInternal(IDictionary`2 serviceSpecificParams, CancellationToken cancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at ArcGISRuntime.WPF.Samples.DynamicWorkspaceShapefile.DynamicWorkspaceShapefile.StartLocalMapService(String filename, String path) in D:\others\arcgis-maps-sdk-dotnet-samples\src\WPF\WPF.Viewer\Samples\LocalServer\DynamicWorkspaceShapefile\DynamicWorkspaceShapefile.xaml.cs:line 107&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OK &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Update the "&lt;STRONG&gt;&lt;EM&gt;Local Server Image Map Layer"&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; sample to load the FileGDB as the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JunGuan_0-1718644679796.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107197i671E7C7C0C1564CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JunGuan_0-1718644679796.png" alt="JunGuan_0-1718644679796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Get the following error at line 106&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Esri.ArcGISRuntime.Http.ArcGISWebException&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; HResult=0x00000000&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; Message=Unable to find the specified 'dataSourceName' in 'dataSource' for dynamic dataLayer with 'id': 0.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; Source=Esri.ArcGISRuntime&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; StackTrace:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at Esri.ArcGISRuntime.Http.HttpDispatcher.&amp;lt;SendAsync&amp;gt;d__14.MoveNext()&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at Esri.ArcGISRuntime.Internal.RequestHandler.&amp;lt;IssueRequestAndRespond&amp;gt;d__4.MoveNext()&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at ArcGIS.WPF.Samples.LocalServerMapImageLayer.LocalServerMapImageLayer.&amp;lt;Initialize&amp;gt;d__2.MoveNext() in D:\others\arcgis-maps-sdk-dotnet-samples\src\WPF\WPF.Viewer\Samples\LocalServer\LocalServerMapImageLayer\LocalServerMapImageLayer.xaml.cs:line 125&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; This exception was originally thrown at this call stack:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; [External Code]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ArcGIS.WPF.Samples.LocalServerMapImageLayer.LocalServerMapImageLayer.Initialize() in LocalServerMapImageLayer.xaml.cs&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;My question is: Is Map SDK able to load a FileGDB (exported from Arc Pro)? if it is, would you please provide a sample code for this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 17:24:25 GMT</pubDate>
    <dc:creator>JunGuan</dc:creator>
    <dc:date>2024-06-17T17:24:25Z</dc:date>
    <item>
      <title>Load FileGDB (exported from ArcGIS Pro) by Map SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-filegdb-exported-from-arcgis-pro-by-map-sdk/m-p/1493855#M12794</link>
      <description>&lt;P&gt;we use Arc Pro to export a group layer into a LYRX file. This layer file indicates a FileGDB in the&amp;nbsp;dataConnection&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"dataConnection" : {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"type" : "CIMStandardDataConnection",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"workspaceConnectionString" : "DATABASE=C:\\Users\\Jun.Guan\\OneDrive - Bentley Systems, Inc\\Documents\\ArcGIS\\Packages\\KEk_GIS_20230414a_ajs_for_Geosoft_1ff973\\p20\\ek_map_20220622_ajs.gdb",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"workspaceFactory" : "&lt;STRONG&gt;FileGDB&lt;/STRONG&gt;",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"dataset" : "DescriptionOfMapUnits",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"datasetType" : "esriDTTable"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We try to load this FileGDB based on the sample in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/have-to-add-feature-classes-from-file-geodatabase/m-p/1019484/highlight/true#M9689" target="_blank"&gt;https://community.esri.com/t5/net-maps-sdk-questions/have-to-add-feature-classes-from-file-geodatabase/m-p/1019484/highlight/true#M9689&lt;/A&gt;. But we found the sample in the post is for v100.7, and it does not exist in the current version (&amp;gt;100.15). We try:&lt;/P&gt;&lt;P&gt;1. add the sample (&lt;SPAN&gt;DynamicWorkspaceShapefile) into the current version, and get the following error when loading the sample shapefile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Esri.ArcGISRuntime.Http.ArcGISWebException: Failed to create service mpk_blank MapServer. Wrong package type used to start service&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at Esri.ArcGISRuntime.Http.HttpDispatcher.SendAsync(HttpRequestMessage request, HandlerOptions options, CancellationToken cancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at System.Net.Http.HttpClient.&amp;lt;SendAsync&amp;gt;g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at Esri.ArcGISRuntime.LocalServices.LocalService.StartServiceInternal(IDictionary`2 serviceSpecificParams, CancellationToken cancellationToken)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at ArcGISRuntime.WPF.Samples.DynamicWorkspaceShapefile.DynamicWorkspaceShapefile.StartLocalMapService(String filename, String path) in D:\others\arcgis-maps-sdk-dotnet-samples\src\WPF\WPF.Viewer\Samples\LocalServer\DynamicWorkspaceShapefile\DynamicWorkspaceShapefile.xaml.cs:line 107&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OK &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Update the "&lt;STRONG&gt;&lt;EM&gt;Local Server Image Map Layer"&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; sample to load the FileGDB as the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JunGuan_0-1718644679796.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107197i671E7C7C0C1564CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JunGuan_0-1718644679796.png" alt="JunGuan_0-1718644679796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Get the following error at line 106&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Esri.ArcGISRuntime.Http.ArcGISWebException&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; HResult=0x00000000&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; Message=Unable to find the specified 'dataSourceName' in 'dataSource' for dynamic dataLayer with 'id': 0.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; Source=Esri.ArcGISRuntime&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; StackTrace:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at Esri.ArcGISRuntime.Http.HttpDispatcher.&amp;lt;SendAsync&amp;gt;d__14.MoveNext()&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at Esri.ArcGISRuntime.Internal.RequestHandler.&amp;lt;IssueRequestAndRespond&amp;gt;d__4.MoveNext()&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;at ArcGIS.WPF.Samples.LocalServerMapImageLayer.LocalServerMapImageLayer.&amp;lt;Initialize&amp;gt;d__2.MoveNext() in D:\others\arcgis-maps-sdk-dotnet-samples\src\WPF\WPF.Viewer\Samples\LocalServer\LocalServerMapImageLayer\LocalServerMapImageLayer.xaml.cs:line 125&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; This exception was originally thrown at this call stack:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; [External Code]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ArcGIS.WPF.Samples.LocalServerMapImageLayer.LocalServerMapImageLayer.Initialize() in LocalServerMapImageLayer.xaml.cs&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;My question is: Is Map SDK able to load a FileGDB (exported from Arc Pro)? if it is, would you please provide a sample code for this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-filegdb-exported-from-arcgis-pro-by-map-sdk/m-p/1493855#M12794</guid>
      <dc:creator>JunGuan</dc:creator>
      <dc:date>2024-06-17T17:24:25Z</dc:date>
    </item>
  </channel>
</rss>

