Skip to main content

Hey guys,

 

So I ran into a problem I shouldn't have. For my workspace I'm trying to subtract two integers from one another. The problem that I'm facing is that the arithmatic expression is not giving me any usable data. This is also the case when slightly change the expression. Below is the most recent attempt.

 

Can anybody point out how I might be able to make this work?

I have performed similar expressions in older versions of FME with no problems whatsoeverI I'm currently running FME 2024.2.4.0. The data type is originally Real64 but I converted it to Int32.

 

Any help would appreciated.

 

Hi ​@bkgg ,

I think the expression should work fine. In order to understand the situation correctly, clarify these questions:

  • What parameter in what transformer have you set the expression to?  
  • What values do "area_original" and "area_updated" store actually?
  • How have you converted the data type of those attribute values from Real64 to Int32?
  • What result does the expression return - <null> or a wrong value?
  • Can you post screenshots illustrating the answers to above questions too? 
     

If you could even share a subset of data (in the original format) that would be helpful


If you could even share a subset of data (in the original format) that would be helpful

This provided me with the answer funny enough. As I was preparing the data for you guys, I realized that I was trying to compare the data from two different rows on two different columns! 🤦

This is because they are from two different features. After adding the area value from one feature onto the other it worked perfectly.

Now I just need to find a way to integrate this in my workspace. But I'm sure I'll figure that one out.

 

Thank you Hkingsbury and Takashi!