<?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 How do I repair a broken data source using a custom plugin datasource? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-repair-a-broken-data-source-using-a/m-p/1495028#M11708</link>
    <description>&lt;P&gt;I have a custom plugin datasource and I want the user to be able to update and repair the data source on their tables using my custom plugin datasource. Unfortunately, since ArcGIS Pro doesn't know how to read my datasource file, nothing shows up in the data source selection window. In the screenshot below, you can see the current data source is the .bsc file plus the views.3 but when I click "Set Data Source..." and navigate to the bsc file in the window, the container is empty. Is it possible to write code that will read my custom bsc file to allow the user to select their data source?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kbperri_0-1718821337532.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107453i24A8BFD0F2894681/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kbperri_0-1718821337532.png" alt="Kbperri_0-1718821337532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 18:25:20 GMT</pubDate>
    <dc:creator>Kbperri</dc:creator>
    <dc:date>2024-06-19T18:25:20Z</dc:date>
    <item>
      <title>How do I repair a broken data source using a custom plugin datasource?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-repair-a-broken-data-source-using-a/m-p/1495028#M11708</link>
      <description>&lt;P&gt;I have a custom plugin datasource and I want the user to be able to update and repair the data source on their tables using my custom plugin datasource. Unfortunately, since ArcGIS Pro doesn't know how to read my datasource file, nothing shows up in the data source selection window. In the screenshot below, you can see the current data source is the .bsc file plus the views.3 but when I click "Set Data Source..." and navigate to the bsc file in the window, the container is empty. Is it possible to write code that will read my custom bsc file to allow the user to select their data source?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kbperri_0-1718821337532.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107453i24A8BFD0F2894681/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kbperri_0-1718821337532.png" alt="Kbperri_0-1718821337532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 18:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-repair-a-broken-data-source-using-a/m-p/1495028#M11708</guid>
      <dc:creator>Kbperri</dc:creator>
      <dc:date>2024-06-19T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I repair a broken data source using a custom plugin datasource?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-repair-a-broken-data-source-using-a/m-p/1495706#M11715</link>
      <description>&lt;P&gt;The Set Data Source button on the Layer PropertySheet page can’t be used to browse to your custom bsc file (plugin data).&lt;/P&gt;&lt;P&gt;Instead, you will have to make a custom property page that you can insert into Pro’s Layer Property Sheet. (The daml id for this is esri_mapping_featureLayerPropertySheet)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;propertySheets&amp;gt;
  &amp;lt;updateSheet refID="esri_mapping_featureLayerPropertySheet"&amp;gt;
    &amp;lt;insertPage id="DAML_LayersPropertySheet_LayersPropertySheet" caption="My custom layer properties" className="DAML.LayersPropertySheet.LayersPropertySheetViewModel" placeWith="esri_mapping_layerSourcePropertyPage" insert="after" &amp;gt;
    &amp;lt;content className="DAML.LayersPropertySheet.LayersPropertySheetView" /&amp;gt;
   &amp;lt;/insertPage&amp;gt;
&amp;lt;/updateSheet&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;On this custom page, you can have a button that displays a OpenItemDialog. Set the filter in this dialog to open your bsc files.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1718921477828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107593i9B06F280D10E0032/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1718921477828.png" alt="UmaHarano_0-1718921477828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, you can fix the data source on your layer to the selected bsc file by accessing its data connection via the CIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 22:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-repair-a-broken-data-source-using-a/m-p/1495706#M11715</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-06-20T22:13:29Z</dc:date>
    </item>
  </channel>
</rss>

