FlatFile icon indicating copy to clipboard operation
FlatFile copied to clipboard

Null Field

Open OpenSpacesAndPlaces opened this issue 7 years ago • 0 comments

\Implementation\FixedLengthLineBuilder.cs

protected override string TransformFieldValue(IFixedFieldSettingsContainer field, string lineValue)

This doesn't check for null fields and instead pads the field no matter what.

I ended up needing to add the following before the padding output to the above function:

        if (field.IsNullable && lineValue == field.NullValue)
		        return lineValue;

OpenSpacesAndPlaces avatar Mar 25 '18 17:03 OpenSpacesAndPlaces