web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
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?

Categories:
I have the same question (0)
  • WappS Profile Picture
    2 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard