What is the way to handle this?

Nov 27, 2013 at 8:15 PM
Expression = #p3 - #p2[5]
p2[5] is attribute from fetchxml

I recieve error:

<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Operator '-' incompatible with operand types 'DBNull' and 'Decimal'</Message>
How to check for null value in below style as example
Expression = #p3 - #p2[5] == null ? 0 : #p2[5]
Coordinator
Nov 28, 2013 at 7:09 PM
Edited Dec 5, 2013 at 8:10 PM
Hi kyklovod,

Thanks for using EasyPlugins.
Can you post your used fetchXml please ? or export your configuration for testing purpose.
Which version are you using ?

Thanks

Amine

--Edit
Or you can upgrade your version to the current version (1.2.4.5) and edit your expression to :
#p3 - (#p2[5] == null ? 0 : #p2[5])