If the Infraction Name in question was imported successfully for other rows of the import:
Inspect the date of the infraction, and ensure that the user it is being applied to was enrolled/ has an enrollment row during that date.
If a user was not enrolled for the date that an infraction is trying to be applied to them, it will result in the error message: 'The specified infraction name is invalid.'