Get Attribute Value <T> Activity and Null Values
Get Attribute Value <T> Activity does not work when the attribute value is Null, it ends with the error below.
The example shown in the screenshot is for an attribute value of Double Type.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000XaRZ&feoid=Body&refid=0EM60000000Xqlo"_/_img_
0
-
In .Net doubles cannot be null. If you set the type of the activity to Nullable<double> it should work, but it is then up to you to check if the result of the activity is non-null.
--Ryan0 -
Hello Hani,
Since the output result of this attribute is an Object, you'll need to set the value to Object, instead of Double, when you add this activity to the workflow. After that, you can use a Cast to change the type if necessary.
Thanks, Stefan
0 -
Dear Stefan and Ryan,
Thank you a lot for your valuable input,
Best Regards,0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare