Error: The attribute “referenceDocumentId” with value, data format is not correct
Virginia permits only 1 PDF attachment per return. This validation error occurs when multiple PDF files are attached to a Virginia Form 500.
Error message
Validation failed on [FILE_ID]: Form: Form500[1] QuestionsAndRelatedInfo[1]/NetOperatingLossDeduction[1] Error: The attribute 'referenceDocumentId' with value '[INCORRECT ATTACHMENT]', data format is not correct. Element Name: NetOperatingLossDeduction XPath: /ReturnState[1]/ReturnDataState[1]/Form500[1]/QuestionsAndRelatedInfo[1]/NetOperatingLossDeduction[1] XML Fragment: [ID] Field Key: 0,0,0,0,0,0,0,0,0 Error Code: [CODE] Error Reason: '[INCORRECT ATTACHMENT]' violates pattern constraint of '[A-Za-z0-9:.-]{1,30}'. The attribute 'referenceDocumentId' with value '[INCORRECT ATTACHMENT]1' failed to parse.
Solution: Combine PDF attachments
- Go to .
- Combine all attachments into 1 PDF file and attach only the single combined PDF file for Virginia.
- Remove any attachments that Virginia doesn't require.
- Do a full recompute, then recreate the e-file.