IRS transcript XML error when downloading — what does it mean?

Filed my 1040 electronically back in late September, got my TC 150 posted about two weeks later. Everything looked fine on the account transcript until I tried to download it as the XML file from the Individual Online Account. Keeps throwing an "XML error" message right in the browser — the page loads but the file won't open. I've tried Chrome and Edge, cleared cache both times, same result. The PDF version downloads fine. I can read the transcript on screen and my TC 846 is showing but I need the machine-readable file for a mortgage application and the lender specifically asked for it. Has anyone run into this IRS transcript XML error before and figured out what's actually happening?

33 comments

The XML download from the Individual Online Account has been flaky for a lot of people this season. What you're describing — PDF fine, XML broken — usually means the file did download but the browser is trying to open it inline and choking on a character encoding issue in one of the transcript fields. Try right-clicking the download button and doing "Save link as" instead of a regular click. Save it to your desktop and then open it with a text editor first just to confirm the file isn't empty.

Matt F.

Author

Tried the right-click save approach — the file saves but when I open it in Notepad it starts with the XML declaration fine and then there's a weird character mid-document. So the file is there but something inside it is off.

Account transcript downloads as XML use a standard schema the IRS publishes. If there's a bad character in the middle it's almost always in a field that has an apostrophe or ampersand in a name or address field that wasn't escaped properly. The XML spec requires those as & and ' and the IRS system sometimes misses it on certain account types. The lender should be able to accept a Form 4506-C instead — that's the IVES request form they use to pull transcripts directly, and it cuts you out of the middle.

Matt F.

Author

Lender said they can do 4506-C but they want it faster than the IVES turnaround. They're under a rate lock deadline.

Form 4506-C turnaround depends on the lender's IVES enrollment tier — some get same-day, others are 2-3 business days. Worth asking which tier your lender is on before assuming it's slow.

The tax account transcript on screen shows all the same data as the XML — TC codes, dates, amounts. If your lender will accept a printed PDF of the account transcript from your Individual Online Account that may be the fastest path. The IRS says transcripts partially mask SSN and name fields but show all money amounts, which is what the lender needs anyway.

Matt F.

Author

They specifically said XML or PDF is fine. I didn't realize PDF was an option until you said this — going to try the PDF route first.

Had an XML parse error on my own transcript last month. Pasted the broken XML into taxr.ai and it identified exactly which tag had the unescaped character and showed me the corrected version — I was able to fix it in a text editor in about two minutes and the lender's system accepted it. It also walked me through what each TC code and date on my account transcript meant so I actually understood what I was handing over. The fix for an unescaped ampersand is replacing & with & at the problem location.

Matt F.

Author

That's exactly what I needed to know. So I can open it in a text editor, find the & that isn't followed by amp; or a valid entity, replace it, save, and re-submit the XML?

Correct. Search for a bare & character — in Notepad use Ctrl+H, find & and look for ones not followed by amp; apos; lt; gt; or quot; followed by a semicolon. Replace just those with & and the file should parse cleanly.

Worth double-checking: the XML error might also be a namespace declaration issue rather than an escaped character problem. Some IRS transcript XML files have a namespace URI in the root element that certain browsers and validators don't handle well. Opening it in a dedicated XML editor like Notepad++ with the XML plugin will highlight exactly which line and character the error is on, which is faster than hunting manually.

Notepad++ is the right call. It color-codes the XML and puts a red marker at the exact error line. Much easier than plain Notepad.

For what it's worth, cycle code on the account transcript will show you the posting week — format YYYYCCDD where CC is the cycle number and DD is the day code. If your TC 846 posted with a DD of 04 that's Wednesday processing. Not directly related to your XML issue but useful context when you're reading what you hand to the lender.

The Form 4506-C route is actually worth revisiting. When I was going through a refi I had the same XML headache. Used Taxr to read through my account transcript codes and confirm the TC 846 date and amount before I handed anything to the lender — it cross-checked the cycle posting date against the refund issue date so I wasn't handing over anything I didn't understand. Lender ultimately took the PDF and that was fine. The 4506-C is a lender tool, not really a borrower tool.

Matt F.

Author

Good point about PDF being fine — did your lender require any specific version or just the standard account transcript?

Standard account transcript, printed straight from the Individual Online Account. They wanted to see TC 150 and the TC 846 with dates. That was enough.

One clarification on the XML schema: the IRS does publish a transcript schema but it's not publicly browsable in an obvious place. If your lender's system is validating against a schema they have, the namespace URI in the root tag of your file needs to match what they expect. Ask the lender's tech team what schema version they're validating against before you spend time fixing encoding issues that might not be the actual problem.

Good point. Schema version mismatch would produce a different error message than a well-formedness error — a well-formedness error usually says something like "invalid token" or "unexpected character" at a specific line.

If the PDF route works for the lender just go with it. The account transcript PDF from the Individual Online Account shows TC codes, dates, and all dollar amounts fully visible. The masking only applies to personal info on the header — only the last four digits of your SSN and the first four characters of your last name are shown — the financial data is complete.

Record of account transcript is worth considering here too — it combines the return transcript and account transcript in one document. If the lender wants to see both the original return data (TC 150 line items) and the account activity including TC 846, the record of account transcript gives them both. It covers the current year and three prior years.

Matt F.

Author

Didn't know about the record of account combining both. That might actually be more useful for them. Can I download that as PDF too?

Yes, record of account transcript downloads as PDF from the Individual Online Account same as the account transcript. The XML option exists for it too but given your XML error you're better off with PDF for now.

The Individual Online Account also shows digital notices — if the IRS sent any notice alongside your TC 846 it will show there. For a standard refund TC 846 with no TC 570 or TC 971 hold on the account there typically isn't a notice, but good to confirm before handing the transcript to a lender.

Went the text-editor fix route myself last year. Before I submitted the corrected XML to the lender I ran my whole account transcript through Taxr — it listed every transaction code in chronological order, flagged that my TC 570 had been released by a TC 571, and confirmed the TC 846 date and amount were consistent with what Where's My Refund showed. Gave me confidence the data was right before I handed it over. The XML fix itself took under five minutes once I knew the line number.

Matt F.

Author

TC 570 released by TC 571 — that's the freeze reversal. Mine doesn't show a 570 at all, just TC 150 and TC 846 directly, so hopefully simpler.

No TC 570 means no hold was placed. TC 150 posts the return and establishes the module, TC 846 is the refund — straightforward path. Your XML issue is mechanical, not a transcript content problem.

The about tax transcripts page at irs.gov confirms transcripts don't get faxed and the IRS won't mail to a third party — so the lender can't just call and have one sent to themselves. The borrower has to get it and provide it, or use Form 4506-C through the IVES program. For your timeline the PDF from your own online account is fastest.

Get Transcript by mail is also an option but it takes 5 to 10 calendar days at the address on file, which won't work for a rate lock deadline. Online account is the right call.

Matt F.

Author

Yeah mail is completely out for the timeline. The online account PDF is working, I'll go that route and confirm with the lender it's acceptable.

For anyone reading later: if the XML error persists after the character-encoding fix, the fallback is Form 4506-T — that requests any transcript type by mail from the IRS. For lender purposes Form 4506-C is the specific IVES version. They're different forms with different purposes; a lender participating in IVES uses 4506-C, not 4506-T.

Correct distinction. Form 4506-T is for the taxpayer or representative to request transcripts. Form 4506-C is the lender's tool for IVES. A borrower filling out a 4506-C is authorizing the lender to pull — the borrower doesn't submit it to the IRS themselves.

Sounds like the PDF path is going to work for you. For the record: once the lender has your account transcript showing TC 150 posted and TC 846 issued, the XML versus PDF distinction is usually a system preference on their end, not a legal requirement. Worth asking if you haven't already.

Matt F.

Author

Confirmed with the lender — PDF is fine. They were asking for XML because that's their standard intake form but they accepted the account transcript PDF printed from the Individual Online Account. Issue resolved, thanks everyone.