Solved

globally calculate fields with a default value


Badge

This is probably very simple but what transformer do I use to globally update a field with a standard value. All I want to do is add the number "1" to an integer field in several feature classes within the same file geodatabase.

Thanks

Dave

icon

Best answer by pratap 7 June 2016, 14:37

View original

4 replies

Userlevel 4

The ExpressionEvaluator will let you do the addition.

Badge +3

it also possible to set the value on the writer.

Left click on the attribute on the writer en choose "edit value" The inputport will turn magenta.

Badge

it also possible to set the value on the writer.

Left click on the attribute on the writer en choose "edit value" The inputport will turn magenta.

Thanks for the tip. I tried this but the writer ignored the input value. I entered a value of 1 in the string editor. Am I missing syntax? Another consideration is that the target field, though an integer field is linked to a coded domain value. I know that FME doesn't work well with them.

Badge +2

Hi,

If the target attribute field is linked to coded domain then you have to pass the coded value as constant.

If you are still facing issue then its better to send the details of codes and values and tell us which value you want pass.

Reply