caalculated attribute

0
hi iam getting an error in my expression  $Instruments/Esculation=daysBetween($Instruments/ContractExpiry,$Instruments/Date) stating :the expression if of type boolean it should be of type integer how to adjust this expression according to integer
asked
2 answers
0

You can create a variable to store this  like →  daysBetween($Instruments/ContractExpiry,$Instruments/Date)

in your case its comparing them whether they are equal or not

$Instruments/Esculation=daysBetween($Instruments/ContractExpiry,$Instruments/Date)

answered
0

You likely have an activity ‘Create variable’ expecting an integer and in the expression of that activity you have this:

$Instruments/Esculation=daysBetween($Instruments/ContractExpiry,$Instruments/Date)

which results in a boolean. Which is exactly what the error says: I expect a integer, but your expression returns a boolean.

Replace = with < will remove the error.

answered