Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Loading XML with DTD

(0) ShareShare
ReportReport
Posted on by

Hello all, first post here and please forgive me if I do it wrong.  🙂

 

I'm making a call to a web service and I'm getting back a document that includes a DTD.  All is good with that process.  When I attempt "Read XML from file" however, the process fails with the following error:

 

Correlation Id: 25b29858-86f7-4d22-aa9e-c3e255b7d1e9

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: File C:\Users\<redacted> doesn't contain a valid XML document ---> System.Exception: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. ---> System.Exception
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.XML.Actions.ReadXmlFromFile.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

This fails on a local machine and in Azure.  I have tried DNS related fixes that I've seen in related posts with no effect.  I've tried saving the file as a text file, editing out the DTD reference, and that works.  Any suggestions?

  • WappS Profile Picture
    2 on at
    Re: Loading XML with DTD

    I have the same problem with Online flow.  the xml() function has been working just fine for months but since the 21st I have been getting this same error when the flow runs.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1