VERIFIED SOLUTION i

Resolve error "One or more key code errors detected in name record file" when using IVP file as a template in MailStream Plus

Product affected: MailStream Plus™, all platforms, all versions

Issue

A user used the IVP parameter file as a template, changing the parameter positions to match his input file's data locations.  When he ran the job, he got an error in the XLG-
"One or more key code errors detected in name record file"

Cause

Looking up that error in the MailStream Plus™ Guide, the solution Description says-
"This message occurs when the job includes a REPORT MAILDAT parameter AND there are seed records found using the S CODE parameter, but:
The job is missing the K CODE parameter, or the K CODE parameter is pointing to a blank field in the name/address records.
If there is no K CODE parameter present, MailStream Plus uses an L CODE parameter (if present) instead."


The user's job did not have an K CODE or L CODE, hence the error. 

Resolution

UPDATED: March 15, 2019
If Seed Name records are being processed, the job also needs a K CODE or L CODE parameter.

Note:
So why doesn't the IVP test job get that error?
Because the IVP's S CODE parameter is pointing to position 183 for 3, and those positions are blank in all the input records.  Blank S CODE values are ignored, so the IVP job finds no Seed Code records.
If you were to point the S CODE to a location that has data, then IVP does get the error above. 

Also, note that the error Description says "occurs when the job includes a REPORT MAILDAT parameter AND there are seed records found using the S CODE parameter..." 
It's not mentioned, but it also requires there to be a Y in REPORT MAILDAT position 32 to produce the Seed Name file.
If there is no Y in 32 to generate the Seed Name file, then even if there *are* Seed Name records and *no* K CODE or L CODE, it will not error.