Hi All - I know there have been other threads on this but OIY! this problem is a pain. I am trying to get a grip on the issue with passing incorrect datatypes to user defined functions thus generating this error.
I have a simple test function
doesnt get any more simple eh?
When I call this function from the detail section on a report it works well
=hellodecimal(Fields.SomeDecimalField)
BUT
If I call this from a group section and include an aggregate function, like ...
=hellodecimal(Sum(Fields.SomeDecimalField))
THEN I get the error "The expression contains undefined function call hellodecimal()"
So it seems like "=Fields.SomeDecimalField" and "=Sum(Fields.SomeDecimalField)" return different data types, is this true?
I have a simple test function
public static decimal hellodecimal(decimal arg1) { return arg1; }
doesnt get any more simple eh?
When I call this function from the detail section on a report it works well
=hellodecimal(Fields.SomeDecimalField)
BUT
If I call this from a group section and include an aggregate function, like ...
=hellodecimal(Sum(Fields.SomeDecimalField))
THEN I get the error "The expression contains undefined function call hellodecimal()"
So it seems like "=Fields.SomeDecimalField" and "=Sum(Fields.SomeDecimalField)" return different data types, is this true?