Error: The field 'CityNm' with value '[ENTERED_VALUE]', data format is not correct
This e-file validation error occurs on Form 5472 when the CityNm field contains commas, numbers, or special characters that violate IRS pattern constraints.
Error message
Validation failed on [FILE_ID]: Form: IRS5472[39][@documentId='vdoc195vf1C0003FE4IRS54720003] RelatedPartyInfo[1]/ForeignAddress[1]/CityNm[1] Description: City Error: The field 'CityNm' with value '', data format is not correct. Element Name: CityNm XPath: //IRS5472[@documentId='vdoc195vf1C0003FE4IRS54720003']/RelatedPartyInfo[1]/ForeignAddress[1]/CityNm[1] XML Fragment: Field Key: 81,1751,24,1,23,0,0,0,0 Error Code: [CODE] Error Reason: '' violates pattern constraint of '([A-Za-z] ?)*[A-Za-z]'. The element '{http://www.irs.gov/efile}CityNm' with value '' failed to parse.
Solution
- Go to .
- Remove commas, numbers, and any special characters from theCityname field.
- Do a full recompute and recreate the e-file.
note
This error can also appear for Direct 25% Foreign Shareholder addresses. If so, go to and follow the same steps.