Hi @babar_ali99 ,
Would you mind providing the XML you are using and the version of FME?
Hi @babar_ali99 ,
Would you mind providing the XML you are using and the version of FME?
HI Sienna,
I am using the following version
FME(R) 2022.1.2.0 (20220831 - Build 22627 - WIN64)
I can't provide the full XML because of sensitivity of the data. I can provide a portion of the XML below.
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en">
<Esri>
<CreaDate>20230609</CreaDate>
<CreaTime>13452300</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>FALSE</SyncOnce>
<DataProperties>
<itemProps>
<imsContentType export="False">002</imsContentType>
<itemName Sync="FALSE">AustralianMarineParks_sort</itemName>
<nativeExtBox>
<westBL Sync="TRUE">70.717024</westBL>
<eastBL Sync="TRUE">170.366667</eastBL>
<southBL Sync="TRUE">-58.449470</southBL>
<northBL Sync="TRUE">-8.473407</northBL>
<exTypeCode Sync="TRUE">1</exTypeCode>
</nativeExtBox>
</itemProps>
<coordRef>
<type Sync="TRUE">Geographic</type>
<geogcsn Sync="TRUE">GCS_GDA_1994</geogcsn>
<csUnits Sync="TRUE">Angular Unit: Degree (0.017453)</csUnits>
<peXml Sync="TRUE"><GeographicCoordinateSystem xsi:type='typens:GeographicCoordinateSystem' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/2.8.0'><WKT>GEOGCSE&quot;GCS_GDA_1994&quot;,DATUMD&quot;D_GDA_1994&quot;,SPHEROIDE&quot;GRS_1980&quot;,6378137.0,298.257222101]],PRIMEMR&quot;Greenwich&quot;,0.0],UNIT,&quot;Degree&quot;,0.0174532925199433],AUTHORITYO&quot;EPSG&quot;,4283]]</WKT><XOrigin>-400</XOrigin><YOrigin>-400</YOrigin><XYScale>2226389776.5071998</XYScale><ZOrigin>0</ZOrigin><ZScale>1</ZScale><MOrigin>0</MOrigin><MScale>1</MScale><XYTolerance>8.9831530000000104e-10</XYTolerance><ZTolerance>0.001</ZTolerance><MTolerance>0.001</MTolerance><HighPrecision>true</HighPrecision><LeftLongitude>-180</LeftLongitude><WKID>4283</WKID><LatestWKID>4283</LatestWKID></GeographicCoordinateSystem></peXml>
</coordRef>
</DataProperties>
<scaleRange>
<minScale>150000000</minScale>
<maxScale>5000</maxScale>
</scaleRange>
<ArcGISProfile>ISO19139</ArcGISProfile>
<SyncDate>20230629</SyncDate>
<SyncTime>09102700</SyncTime>
<ModDate>20230629</ModDate>
<ModTime>09102700</ModTime>
</Esri>
<mdFileID>ecedecba-1a39-4933-868f-a96bb3cf4eed</mdFileID>
<mdLang>
<languageCode Sync="TRUE" value="eng"></languageCode>
<countryCode Sync="TRUE" value="AUS"></countryCode>
</mdLang>
<mdChar>
<CharSetCd Sync="TRUE" value="004"></CharSetCd>
</mdChar>
<mdHrLv>
<ScopeCd Sync="TRUE" value="005"></ScopeCd>
</mdHrLv>
<mdHrLvName Sync="TRUE">dataset</mdHrLvName>
<mdContact>
<rpOrgName>ABCD</rpOrgName>
Hi @babar_ali99 ,
Are you feeding an attribute directly into the ArcGISOnlineMetadataOverwriter?
It's expecting a file, could you try writing out the XML using the AttributeFileWriter, then set up the ArcGIS Online Metadata Overwriter to upload that file?
If that isn't the issue would you mind creating a support case?
Hi @babar_ali99 ,
Are you feeding an attribute directly into the ArcGISOnlineMetadataOverwriter?
It's expecting a file, could you try writing out the XML using the AttributeFileWriter, then set up the ArcGIS Online Metadata Overwriter to upload that file?
If that isn't the issue would you mind creating a support case?
Yes I am feeding the attribute directly just like you showed. and yes it works if I upload the XML. But I want to feed the attribute directly it directly.
@babar_ali99 ,
The ArcGIS Online Metadata Overwriter wasn't originally designed to work with an attribute. However, I just updated so it should be able to handle an attribute. Try it out by upgrading the transformer. The image below shows how to do that from the navigater panel.
You'll have to set the XML Input paramete to Attribute, then select your attribute in the XML Source parameter. However, then it should work. Please let me know if you have any issues.
@babar_ali99 ,
The ArcGIS Online Metadata Overwriter wasn't originally designed to work with an attribute. However, I just updated so it should be able to handle an attribute. Try it out by upgrading the transformer. The image below shows how to do that from the navigater panel.
You'll have to set the XML Input paramete to Attribute, then select your attribute in the XML Source parameter. However, then it should work. Please let me know if you have any issues.
Thank you for updating the transformer. it worked :)