Filing and attaching Form 8865 to electronic files (1040)

Show expandable text

New (tax) year, new help!

Fixed Assets and UltraTax CS 2023 help is now on Help and Support. We're still moving articles, but you can find most content for the 2023 tax year there. Continue using the Help & How-To Center for tax years 2022 and older.

Form 8865 can be electronically filed only if the form is attached to the filer’s electronic file. The form cannot be electronically filed separately.

  1. You must have a separate UltraTax CS 1065 client with Foreign Ptnrshp (8865) selected in File > Client Properties. Within that 1065 client, create the electronic file as you would for any other electronic return.
  2. With the 1040 client's return open, choose Edit > Electronic Filing Attachments.
  3. Click the Add button.
  4. In the Product field, select Federal from the drop-down list.
  5. In the Return field, select Tax Return from the drop-down list.
  6. In the Attachment title field, enter 8865 E-file.
  7. In the Attachment file source group box, click the 8865 option, click the Browse button, and navigate to and select the appropriate Form 8865 electronic file. The electronic file will have a .xef extension. Show me.
    8865 attachment


    • The 8865 electronic file will be located in X:\Wincsi\UT18Data\$SYSDATA\attachments. 
    • If you are running UltraTax CS through Virtual Office CS or Software as a Service (SaaS), to select the .xef file, navigate to Y:\UT18Data\$SYSDATA\attachments. This location is already selected by default when you click the Browse button.
    • If you want to proforma this attachment next year, mark the Proforma information to next year checkbox.
  8. Click OK to return to the Electronic Filing Attachments dialog.
  9. Repeat steps 2 – 9 to attach additional Forms 8865.
  10. When you have attached all applicable Forms 8865, click OK to close the dialog.
  11. Create the electronic file for the filer's return as you would for any other electronic return. UltraTax CS will include Form 8865 in the filer’s electronic file.


  • Form 8865 returns can be electronically filed only if filing Form 1040, 1041, 1120, 1120S, or 1065.
  • Multiple Form 8865 electronic files can be attached to the filer’s return, as needed.
  • Form 8865 electronic files should pass all UltraTax CS electronic filing error checking before you attach Form 8865 electronic files to the filer’s electronic file.

See also: Attaching Portable Document Format (PDF) files to electronic files

Was this article helpful?

Thank you for the feedback!