Skip to main content
Solved

FME Feature Writer - Default Values Not Applied

  • April 2, 2025
  • 3 replies
  • 56 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

j.botterill
Influencer
Forum|alt.badge.img+53
  • 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

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
Celebrity
  • 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.