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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error in Workflow Tryi...
Power Automate
Suggested Answer

Error in Workflow Trying to Pull Content from Word Doc to SP List

(1) ShareShare
ReportReport
Posted on by 4
Hello,
 
The workflow shows no errors, but when I run it, I get an Invalid Template error.
I am attaching the complete workflow along with the error message.
 
Scenario:
  • I have tagged a Word Doc with Content Controls
  • I save Word Doc as XML
Any direction you can provide is greatly appreciated.
VRA Workflow.png
VRA Workflow Fail...
VRA XML Sample.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    Haque Profile Picture
    1,440 on at
    Hi @CU20031956-1,
     
    Your Compose step with base64ToString() should reference the file content correctly. Can you please check that? For example:
    base64ToString(outputs('Get_file_content')?['body']['$content'])
     

    One more thing, when using the xml() function in Compose to parse the XML string, let's ensure the input is a valid XML string. If the input is malformed or empty, it causes errors.
     
    For eample, you can try this xml(outputs('Compose_Base64ToString')) skipping XML Raw action.  (Assuming your base64ToString output is in a Compose named "Compose_Base64ToString")
     
    Finally, the xpath() function requires a valid XML object and a correct XPath query. Let's make sure its converting in a valid format.
    xpath(outputs('Compose_XML'), '//VendorName/text()')
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard