cancel
Showing results for 
Search instead for 
Did you mean: 

Code stage and not initialized number/flag collection values

TobiasArnold
Level 6
Hi all,

does anybody know if there is a chance to correctly pass in a collection with not initialized number or flag values into a code stage?
It seems that all values will be converted to their .NET defaults e.g. a not-filled number becomes 0 and a not-filled flag becomes 'False'.
The reverse transfer (out of the code stage) works properly. Set a DataTable field to DBNull.Value appears as not-filled in BluePrism!
2 REPLIES 2

ewilson
Staff
Staff
Hi @Tobias Arnold,

I've run a few tests around this. It seems that values will be initialized to their data type default as you observed.

Cheers,
Eric​

TobiasArnold
Level 6
Hi @EricWilson1,

Thanks for your feedback. I think I'll raise a ticket. It seems very odd to substitute NULL with default(typeof(T)).​

Thanks,
Tobias