Hi, I am converting data from one filegdb to another using a schema mapper. The problem i am getting is there are certain attribute defined in target GDB which are not null and has some default values, these attributes are not in mapping schema but when I run the workbench value gets inserted is ' '(space) instead of the FileGDB's default value. Am i missing anything here?
I already have the default value in mapping file but this particular attribute is not part of the attribute mapping since its not present in the source data.
I am not sure why FME is changing the value to space rather then inserting fileGDB default unless I am missing something.
I tried with static schema, even without the schema mapper, but the result is the same.
Hello Tim, I am using GEODATABASE_FILE(using ArcObjects), I tried with API option but it could neither read nor write to FileGDB. Are there any prerequisite to it?
Reader error:
Geodatabase Error (-2147024809): Invalid function arguments.
Could not open File Geodatabase table `GeneralCategory/MiscellaneousFeatureArea'.
Writer error:
FileGDB Writer: A feature with feature type `LANDMARK' could not be written.
There is nothing more that I can understand from the log. I am using ArcGIS 10 and the feature is 3D.
It might be that the Writer outputs an empty string rather than NULL to the Geodatabase, thereby not triggering the default value.
Try inserting an AttributeTrimmer followed by a NullAttributeRemover (from the FME Store) before your Writer. I would be surprised if that doesn't work.
Also, try both the ArcObjects and the API Writer, as mentioned below.
As a workaround I have added all these default fields in my schema mapping spread sheet with default value, it worked but I have to add every default field in spread sheet.
@Tim - FileGDB API as you mentioned does work(inserts the defaults correctly) but only when a static schema is used, where there is one to one feature mapping. But it gives error (as stated earliar) when a dynamic schema is used.
@David - The attributes that I am talking about are not coming from reader nor they are created in the workbench, so attribute trimmer and nullreplace wont help as I wont be able to select them.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.