Error: The attribute ‘referenceDocumentId’ is missing Element Name: FederalReturn
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 .
- Select theAttach PDFbutton.
- In theAttachment Descriptionsection, selectPredefined description.
- SelectForm500 Federal Return Attachment.
- In theMandatorysection, selectUser defined form/schedule name and element/line number.
- SelectForm500for the Form/schedule name in the menu.
- Do a full recompute, then recreate the e-file.