<?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 Local Feature Service not starting when MPKX has relative paths to GDB source in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/local-feature-service-not-starting-when-mpkx-has/m-p/1137796#M10735</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure whether the problem is in Pro (v2.9.1) or in local server (I'm using v100.12). It could be fixed in either products I beleive, or there should be options I'm not aware of.&lt;/P&gt;&lt;P&gt;What I need: in my Runtime .Net application run local server and start a local feature service using the MPKX package file containing links to file geodatabase (GDB)&lt;/P&gt;&lt;P&gt;What I do: in ArcGIS Pro add layers from GDB to map and generate MPKX file using "Package Map" tool with turned on "Support ArcGIS Runtime" and "Reference all data for rauntime" options.&lt;/P&gt;&lt;P&gt;What I get:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If "Output File" in the "Package Map" tool points to the disk or UNC root &lt;STRONG&gt;other&lt;/STRONG&gt; than where GDB is located, then local server works fine.&lt;/LI&gt;&lt;LI&gt;If "Output File" in the "Package Map" tool points to the &lt;STRONG&gt;same&lt;/STRONG&gt; disk or UNC root where GDB is located then &lt;STRONG&gt;LocalFeatureService.StartAsync()&lt;/STRONG&gt; throws an error like &lt;EM&gt;"Feature service creation failed. hr=0x80040067 No Layer or Table was initialized."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What I discovered: digging into mpkx/msd I found that in &lt;STRONG&gt;case #2 the package stores relative paths to GDB&lt;/STRONG&gt;. &lt;STRONG&gt;Local server fails&lt;/STRONG&gt; to run a service in this case. "Package map" tool doesn't provide options to force using absolute paths.&lt;/P&gt;&lt;P&gt;This looks like a bug, since "Support ArcGIS Runtime" option must ensure the package is compatible or the tool should provide absolute path option at least.&lt;/P&gt;&lt;P&gt;So, for now as a workaround we have to use different disks/UNC roots when generating MPKX.&lt;/P&gt;&lt;P&gt;Are there any options I'm not aware of or any other workaround for this issue or am I right this is a bug that needs fixing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 09:30:28 GMT</pubDate>
    <dc:creator>DenisGlukhov2</dc:creator>
    <dc:date>2022-01-27T09:30:28Z</dc:date>
    <item>
      <title>Local Feature Service not starting when MPKX has relative paths to GDB source</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/local-feature-service-not-starting-when-mpkx-has/m-p/1137796#M10735</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure whether the problem is in Pro (v2.9.1) or in local server (I'm using v100.12). It could be fixed in either products I beleive, or there should be options I'm not aware of.&lt;/P&gt;&lt;P&gt;What I need: in my Runtime .Net application run local server and start a local feature service using the MPKX package file containing links to file geodatabase (GDB)&lt;/P&gt;&lt;P&gt;What I do: in ArcGIS Pro add layers from GDB to map and generate MPKX file using "Package Map" tool with turned on "Support ArcGIS Runtime" and "Reference all data for rauntime" options.&lt;/P&gt;&lt;P&gt;What I get:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If "Output File" in the "Package Map" tool points to the disk or UNC root &lt;STRONG&gt;other&lt;/STRONG&gt; than where GDB is located, then local server works fine.&lt;/LI&gt;&lt;LI&gt;If "Output File" in the "Package Map" tool points to the &lt;STRONG&gt;same&lt;/STRONG&gt; disk or UNC root where GDB is located then &lt;STRONG&gt;LocalFeatureService.StartAsync()&lt;/STRONG&gt; throws an error like &lt;EM&gt;"Feature service creation failed. hr=0x80040067 No Layer or Table was initialized."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What I discovered: digging into mpkx/msd I found that in &lt;STRONG&gt;case #2 the package stores relative paths to GDB&lt;/STRONG&gt;. &lt;STRONG&gt;Local server fails&lt;/STRONG&gt; to run a service in this case. "Package map" tool doesn't provide options to force using absolute paths.&lt;/P&gt;&lt;P&gt;This looks like a bug, since "Support ArcGIS Runtime" option must ensure the package is compatible or the tool should provide absolute path option at least.&lt;/P&gt;&lt;P&gt;So, for now as a workaround we have to use different disks/UNC roots when generating MPKX.&lt;/P&gt;&lt;P&gt;Are there any options I'm not aware of or any other workaround for this issue or am I right this is a bug that needs fixing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 09:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/local-feature-service-not-starting-when-mpkx-has/m-p/1137796#M10735</guid>
      <dc:creator>DenisGlukhov2</dc:creator>
      <dc:date>2022-01-27T09:30:28Z</dc:date>
    </item>
  </channel>
</rss>

