Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Elenakretova
New Member

Remove XML encoding information with PowerShell

I'm currently using TFS PowerTools to run a query in PowerShell and export the results as an XML file. I then want to import that XML file into Alteryx for further processing. When TFS PT exports the XML file it puts the following header at the top:

<?xml version="1.0" encoding="utf-8"?>

However Alteryx does not like this and refuses to read the document unless the encoding information is taken off. Is there a way that I can use PowerShell to remove the encoding information so it only shows:

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Elenakretova,

 

Welcome to Power BI desktop forum. As this forum provides support for Power BI, your question is more related to TFS PowerTools, I would suggest you post your questions on TFS forum to get more professional advice.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.