Select to view content in your preferred language

Recurring Prompt to Upgrade Metadata to Pro After Saving via SDK (Item.SetXML())

292
0
08-16-2023 09:47 AM
TheBobScript
Occasional Contributor

We have feature class metadata that contains both ISO and FGDC metadata. 

TheBobScript_0-1692204038290.png

When displaying metadata in the catalog metadata pane in ArcGIS Pro for the first time, the user must upgrade the metadata (Catalog --> Metadata --> Upgrade).  Once this is done, the metadata will display with any selected stylesheet.

Once a metadata edit is saved using the SDK, the metadata display does not automatically refresh the same way it does when using the native metadata edit tool/form that accompanies a stylesheet (Catalog --> Metadata --> Edit).  The user must manually deselect and then reselect the feature class to refresh the display. 

This is where I am experiencing a problem.  Saving the metadata via the SDK (ArcGIS.Desktop.Core. Item.SetXml(string xml)) and then manually refreshing the metadata display pane triggers the following message:

This item has authored FGDC metadata and authored ESRI-ISO metadata.  One set of the content must be upgraded to ArcGIS metadata format before it can be used in ArcGIS Pro.”

TheBobScript_1-1692204038295.png

I can get my metadata to display again in the metadata pane, but only after upgrading the metadata for use in ArcGIS Pro again (Catalog --> Metadata --> Upgrade).  Boooo!

Is there anyone out there that can speak to why editing with a metadata stylesheet will automatically refresh and display the metadata after an edit while an edit applied to the metadata via the Pro SDK requires manual interaction and another upgrade to get it to display?

0 Kudos
0 Replies