I am in the process of developing a custom transformer that can write a coded domain list to a new file geodatabase file, using this article as inspiration: https://community.safe.com/s/article/creating-and-associating-geodatabase-domains-dynam
The hope is to create these domain values either from the existing data or a look-up table within FME. Then upload the file geodatabase with these new domains to ArcGIS Online.
I have followed the guidance in the article and believe it should work.
The attached transformer edits the schema feature of the relevant attribute to something like this: "attribute{7}.native_data_type (string: UTF-8): coded_domain(FloorType:char(255):2:"2":1:"1":0:"0")". But when trying to write dynamically to gdb from the Schema Feature, the domain doesn't carry through.
I compared the syntax of writing a coded domain manually to gdb in FME (by editing the user attributes) and looking at the log, and the format is the same as the above.
With advanced logging and writing dynamically to gdb, I get the error message "File C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro\\metafile\\MULTI_WRITER.fmf could not be opened". Not sure if that's relevant.
Am I missing something? At the moment it feels like unexpected behaviour as what I have aligns closely to the article linked at the top.
Is someone able to try the attached custom transformer on their own data, write to a new file geodatabase dynamically and see if it the domains write successfully? It'll be a good one to publish to the FME Hub if I can get it working. E
Edit: Custom transformer now available on the FME hub.
I'm on data interop, FME 2021.1.2.0.
Thanks!