You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new version treats this as unparsed due to erroneous omission:
if(string.IsNullOrEmpty(rawValue)|| rawValue.Length <3){return FieldHelpers.UnparsedField<Height?>(elementId: elementId, rawValue: rawValue,$"Unable to parse Height from field '{SubfileElementIds.Height}': the field has no value, or has less than 3 characters: '{rawValue}'");}
This causes problems for Michigan, which evidently allows the DAU element to be present without a value.
The AAMVA spec says Height (DAU) is a mandatory field, with this paragraph about missing data:
Mandatory data elements for which no data exists for a given cardholder are to be encoded with the word "NONE".
In the event data is not available for a mandatory data element, "unavl" is to be encoded.
MI apparently decided to rage against the machine and do neither of these things, and instead just leave the value blank. The original MI.txt test file has a blank DAU field.
To support this, split the "no value or length < 3" case into two separate clauses:
When value is null or white space, treat it as successfully parsed, and set the value to null
When value is less than 3 characters in length, treat it as an error because the field has a value, but we can't parse it
The text was updated successfully, but these errors were encountered:
The previous version of the parser returned
null
when theDAU
field had no value, or its length was less than 3 characters:The new version treats this as unparsed due to erroneous omission:
This causes problems for Michigan, which evidently allows the
DAU
element to be present without a value.The AAMVA spec says Height (
DAU
) is a mandatory field, with this paragraph about missing data:MI apparently decided to rage against the machine and do neither of these things, and instead just leave the value blank. The original MI.txt test file has a blank
DAU
field.To support this, split the "no value or length < 3" case into two separate clauses:
The text was updated successfully, but these errors were encountered: