There is a serious bug using a code stage: Pass in a collection containing not initialized fields (e.g. number or flag values) into a code stage.
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, the value appears as not-filled in BluePrism!
This functionality is needed in case of serialisation/deserialisation to/from external data (e.g. XML or JSON format).
To keep a possible solution backward compatible: Consider of a code stage option e.g. "keep null value(s)"