Error: The attribute ‘referenceDocumentId’ with value ‘BinaryAttach BinaryAttachN1 BinaryAttachN2’, data format is not correct
This validation error occurs when e-filing Virginia Form 500 and the Federal return can't be e-filed. Virginia requires a PDF attachment of the Federal return.
Error message
1. Validation failed on [FILE_ID]: Form: Form500[1] FederalReturn[1] Element Name: FederalReturn XPath: /ReturnState[1]/ReturnDataState[1]/Form500[1]/FederalReturn[1] XML Fragment: X Field Key: 0,0,0,0,0,0,0,0,0 Error Code: [CODE] Error Reason: Required attribute 'referenceDocumentId' is missing.
Solution
If the Federal return can't be e-filed (for example, the Federal return is 1120-REIT), Virginia requires a copy of the Federal return as a PDF attachment. The attachment name should be ‘Form500 Federal Return Attachment’.
- Go to and select theAttach PDFbutton.
- Under theAttachment Descriptionsection, selectPredefined descriptionand selectForm500 Federal Return Attachment.
- Under theMandatorysection, selectUser defined form/schedule name and element/line numberand selectForm500for the Form/schedule name in the menu.
- Recreate the e-file and resubmit.