<?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 Cannot load locator created with ArcGIS Pro in ArcGIS Runtime SDK for WPF app in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1294398#M69709</link>
    <description>&lt;P&gt;I created a POI locator using ArcGIS Pro. I have a wpf app and i want to use the created locator in that app.&lt;/P&gt;&lt;P&gt;I am trying to load it using the following code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            string streetMapOSMPath = AppDomain.CurrentDomain.BaseDirectory + "MapTest20200328_2.mmpk";
            string testmmpkPath = AppDomain.CurrentDomain.BaseDirectory + "test20230530.mmpk";
            string locatorPath = AppDomain.CurrentDomain.BaseDirectory + "GIS_test_20230_POI_Locator.loc";
            Uri _serviceUri = new Uri(locatorPath);
            try
            {
                // Load the package
                MobileMapPackage streetMapOSMPackage = await MobileMapPackage.OpenAsync(streetMapOSMPath);
                MobileMapPackage testMapOSMPackage = await MobileMapPackage.OpenAsync(testmmpkPath);

                // Load Geocoder
                //_geocoder = testMapOSMPackage.LocatorTask;
                  _geocoder = await LocatorTask.CreateAsync(_serviceUri);
}
            catch (Exception ex)
            {
                // Handle any exception
                System.Windows.MessageBox.Show(ex.Message, "Error opening package");
                return;
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried mmpk and .loc approaches with no success. i get LoadStatus: FailedToLoad.&lt;/P&gt;&lt;P&gt;Geocoder creation error: file too small to contain valid file header"&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 08:39:31 GMT</pubDate>
    <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
    <dc:date>2023-05-31T08:39:31Z</dc:date>
    <item>
      <title>Cannot load locator created with ArcGIS Pro in ArcGIS Runtime SDK for WPF app</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1294398#M69709</link>
      <description>&lt;P&gt;I created a POI locator using ArcGIS Pro. I have a wpf app and i want to use the created locator in that app.&lt;/P&gt;&lt;P&gt;I am trying to load it using the following code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            string streetMapOSMPath = AppDomain.CurrentDomain.BaseDirectory + "MapTest20200328_2.mmpk";
            string testmmpkPath = AppDomain.CurrentDomain.BaseDirectory + "test20230530.mmpk";
            string locatorPath = AppDomain.CurrentDomain.BaseDirectory + "GIS_test_20230_POI_Locator.loc";
            Uri _serviceUri = new Uri(locatorPath);
            try
            {
                // Load the package
                MobileMapPackage streetMapOSMPackage = await MobileMapPackage.OpenAsync(streetMapOSMPath);
                MobileMapPackage testMapOSMPackage = await MobileMapPackage.OpenAsync(testmmpkPath);

                // Load Geocoder
                //_geocoder = testMapOSMPackage.LocatorTask;
                  _geocoder = await LocatorTask.CreateAsync(_serviceUri);
}
            catch (Exception ex)
            {
                // Handle any exception
                System.Windows.MessageBox.Show(ex.Message, "Error opening package");
                return;
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried mmpk and .loc approaches with no success. i get LoadStatus: FailedToLoad.&lt;/P&gt;&lt;P&gt;Geocoder creation error: file too small to contain valid file header"&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1294398#M69709</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2023-05-31T08:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load locator created with ArcGIS Pro in ArcGIS Runtime SDK for WPF app</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1294495#M69718</link>
      <description>&lt;P&gt;Which version of ArcGIS Pro did you use to create the locator? and which version of the Native Maps SDK are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then skipping ahead to a potential solution, there is an issue with Pro 3.1 creating locators that do not work in Native Maps SDKs 100.15.&amp;nbsp; &amp;nbsp;The ArcGIS Pro 3.1.2 patch addresses this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1294495#M69718</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2023-05-31T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load locator created with ArcGIS Pro in ArcGIS Runtime SDK for WPF app</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1295013#M69758</link>
      <description>&lt;P&gt;thank you, my SDK was 100.11 and it didnt work even with 3.1.2 patch, i updated to the latest SDK and it worked. Another thing that i noticed is that i cannot access all the fields in the returned result. i.e whilst in the poi locator i registered a phone number i cannot access that info through .net. Through ArcGIS Pro i can see that info. i want to use phone number as an insurance policy that locator's score is valid. is there something that i am missing when creating Locator task object or calling the geocoding method?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-load-locator-created-with-arcgis-pro-in/m-p/1295013#M69758</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2023-06-01T15:51:02Z</dc:date>
    </item>
  </channel>
</rss>

