IRS-A2A BulkRequestTransmitter message not formmatted properly and/or cannot be interpreted

后端 未结 6 1559
一个人的身影
一个人的身影 2020-12-01 17:47

I am receiving the following error when attempting to submit through the BulkRequestTransmitter Web Service. The Composition Guide is less than helpful as far as this messa

6条回答
  •  孤城傲影
    2020-12-01 18:18

    For those running into the following error:

    AIRMF3002 Rejected transmission - Unable to process your request because validation failure occurs in the Attachment Byte Size Number

    It appears there is an issue on the IRS side with the size they are expecting (as per the Documentation) and the size they actually accept. Originally, I had the following code:

    // Size in Bytes of File: This code returns the "Size" located on the File's Property Page.
    // Result: TRANSMISSION REJECTED ON INCORRECT FILE SIZE!
    manifestHeader.AttachmentByteSizeNum = new FileInfo(FormDataFilePath).Length.ToString();
    

    I replaced the above code with the following, and the error I was receiving was resolved.

    // Read the contents of the file, and retrieve the length of the content of the file itself..
    // Result: TRANSMISSION WAS ACCEPTED USING THIS FILE SIZE.
    manifestHeader.AttachmentByteSizeNum = File.ReadAllText(FormDataFilePath).Length.ToString();
    

    It appears as though the Web Service is actually expecting the size of the file content and not the size of the actual file. The difference in size pertaining to the test scenarios was approximately 3 bytes. I assume that is because retreiving the size of the file adds some additional file-related information not belonging to the actual content.

    I have notified the IRS about this issue regarding their documentation.

提交回复
热议问题