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 / AI Builder - Document ...
Power Automate
Suggested Answer

AI Builder - Document (Preview) - Errors

(0) ShareShare
ReportReport
Posted on by 10
Hello! I am working on populating a Word document using the AI Builder prompt for document generation. I have read the documentation, watched YouTube videos (April Dunham, Mathew Devaney, and Damien Bird) and I'm getting errors that I don't understand. 
 
After uploading the Word document and writing out the prompt, with all fields to populate, I test it. More often than not, the test fails with this error (or one similar to it)- see below. This did work a couple of times but now it's not working at all. I haven't changed anything between attempts. 
 
I know this functionality is still in Preview, so maybe that's why performance isn't consistent, but I would appreciate hearing from others who have successfully used this. 
 
Word document:
The Word document that I want to populate is 16 pages long (it is well within the file size limitations). The document uses headers, subheaders, and tables. The placeholder fields are found throughout the entire document. Several placeholders (ex: {{ClientName}} ) are found multiple times throughout the doc. I have used double curly brackets, as recommended in the MS documentation, and I've also removed spacing between words. 
 
After uploading the document, the fields are recognized-- the list of all placeholders do show up on the right side of the screen. 
 
Errors:
When I try to test it, I often get this error: 
An error occurred while replacing output document placeholders.
  • If I re-upload the document and re-test it, it works.
 
After testing it, I try to save it and often get error: 
Something went wrong while saving your custom prompt. Try again later.
 
*I can only show the first couple of fields. All others are structured in the exact same way.
 
 
Question: Are these issues because it's still in Preview? or am I doing something wrong?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    This may be happening because some of the input fields are empty. Can you check?
    When empty values are sent to the document tool, it fails to replace the placeholders and throws an error.
  • Antrod Profile Picture
    Microsoft Employee on at
     
    Thanks for sharing this problem with us.
    We fixed an issue that could explain the experience you're facing.
    Would you mind sharing your document and prompt with me in private so I can check if it gets solved?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard