Skip to main content
Solved

AttributeManager add a constant to a decimal value

  • August 23, 2018
  • 5 replies
  • 64 views

Folks,

This should be simple but I'm just not finding the answer.

Using an AttributeManager I want to add a value "0.09" to all the existing values in a column of data from a Mapinfo table during translation amongst other things.

The Column is "Average" and is a defined Decimal type field.

The syntax I'm using is clearly wrong.

@Value(Average)+0.09

returns -9999.00 for all values.

What am I doing wrong?

Thanks in advance

Andrew

Best answer by takashi

You have to enter a math expression with the Arithmetic Editor. You can open the editor from the menu command "Open Arithmetic Editor" under the menu button in the parameter field.

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.

5 replies

takashi
Celebrity
  • 7843 replies
  • August 23, 2018
Are there some warning messages in the Log?

 

If you connect an Inspecter transformer to the output port of the AttributeManager and run the workspace, what result would appear on the Table View in FME Data Inspector?

 

 


  • Author
  • 46 replies
  • August 23, 2018
Are there some warning messages in the Log?

 

If you connect an Inspecter transformer to the output port of the AttributeManager and run the workspace, what result would appear on the Table View in FME Data Inspector?

 

 

Thanks @takashi.

 

 

Yes there is an error

 

Attribute Average of type decimal has an illegal value of '57.41+0.09'. Value is set to -9999 
So that's pretty explicit I'm just not sure what the problem is.

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • August 23, 2018

You have to enter a math expression with the Arithmetic Editor. You can open the editor from the menu command "Open Arithmetic Editor" under the menu button in the parameter field.


  • Author
  • 46 replies
  • August 23, 2018

You have to enter a math expression with the Arithmetic Editor. You can open the editor from the menu command "Open Arithmetic Editor" under the menu button in the parameter field.

0684Q00000ArKluQAF.png

Thanks @takashi. That was it. The correct syntax is

 

 

 

@Evaluate(@Value(Average)+0.09)

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • August 23, 2018

You have to enter a math expression with the Arithmetic Editor. You can open the editor from the menu command "Open Arithmetic Editor" under the menu button in the parameter field.

I'm sure there's an idea around somewhere for a warning when it looks like arithmetic has been put in the text editor.