Skip to main content
Solved

FME Feature Writer - Default Values Not Applied


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

I have a template.gdb that contains feature classes, and some attributes within these feature classes have default values. Like here for the attribute FLOWDIRECTION
 

When writing features into these feature classes using the Feature Writer, I expect the default values to be applied to attributes where no value is provided. However, this is not happening.
 

What could be the reason for this issue? How can I ensure that the default values from the geodatabase are correctly applied?

Best answer by takashi

Hi ​@j.botterill ,

I was able to reproduce the same issue as yours. It doesn't seem that File Geodatabase writer respects default value setting in the template gdb dataset.

I would recommend you to ask Safe support.

In the interim, setting the default value manually to the destination field in the FeatureWriter setting could be a workaround.

View original
Did this help you find an answer to your question?

3 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • April 2, 2025

inspect the data, ideally click on a feature in visualpreview/table and open Feature Information window. This will show the column with the flow direction value. 

Ensure that these attribute columns match that set on the Writer. Using the automatic mode is the easiest. Manual allows you to make changes, but be careful, best to use an AttributeManager transformer earlier in the workflow

More info under Understanding Schema


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • April 3, 2025
j.botterill wrote:

inspect the data, ideally click on a feature in visualpreview/table and open Feature Information window. This will show the column with the flow direction value. 

Ensure that these attribute columns match that set on the Writer. Using the automatic mode is the easiest. Manual allows you to make changes, but be careful, best to use an AttributeManager transformer earlier in the workflow

More info under Understanding Schema

My input data does not have the FLOWDIRECTION attribute. I expected that the features would get the default values while writing with FeatureWriter, as my template GDB has the attribute as well as a default value.


takashi
Supporter
  • Best Answer
  • April 6, 2025

Hi ​@j.botterill ,

I was able to reproduce the same issue as yours. It doesn't seem that File Geodatabase writer respects default value setting in the template gdb dataset.

I would recommend you to ask Safe support.

In the interim, setting the default value manually to the destination field in the FeatureWriter setting could be a workaround.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings