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 bug: Power ...
Power Automate
Answered

AI Builder bug: Power Fx + File input together causes Internal Server Error

(0) ShareShare
ReportReport
Posted on by 9

Hi everyone,

I've found what appears to be a bug in AI Builder Prompt Builder and wanted to share in case others are hitting the same issue.

Summary

When a custom AI Builder prompt contains both a Power Fx input and an Image/Document input, it fails with an Internal Server Error. Each input type works perfectly on its own. This is 100% reproducible - I tried in different envs and browsers.

How to reproduce

  1. Create a custom prompt with two inputs: a Power Fx input (e.g. Len("hello")) and an Image or document input

  2. Upload any small image and click Test

  3. → Internal Server Error

  4.  

Error from browser console

 
{
  "error": {
    "code": "0x80048d0a",
    "message": "{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"Unknown\",\"message\":\"Unhandled exception: System.ArgumentException\"},\"predictionId\":null}"
  }
}
 

Key finding


  • Power Fx input alone → ✅ works (see Screenshot 3)

  • File input alone → ✅ works (see Screenshot 2)

  • Text input + File input → ✅ works

  • Power Fx input + File input → ❌ fails, any formula, any file (see Screenshot 1)


  •  

This is not limited to the Prompt Builder Test button — I originally hit this in a production Power Automate flow using "AI Builder - Run a prompt'. The generic "Internal server error" message is very misleading and was initially mistaken for credit exhaustion.

 

Workaround

Replace the Power Fx input with a Text input and pass dynamic values from the flow instead (e.g. utcNow() for dates).

Screenshots attached

 
  1. Power Fx + File → Error

  2. File only → Works

  3. Power Fx only → Works


  4.  
Both PowerFX and FileInput -  error.png
FileInput - Ok.png
PowerFX formula only - OK.png
Categories:
I have the same question (0)
  • plarrue Profile Picture
    Microsoft Employee on at
     

    Thanks for reaching out. I’ve reported this bug to our engineering team.

    I’ll keep you posted as soon as I have more details.

    Philippe

  • Verified answer
    plarrue Profile Picture
    Microsoft Employee on at

    Thanks again for reporting this.

    The fix is currently being rolled out and should be available by the end of March.

  • AR-24020513-0 Profile Picture
    9 on at
    Thanks for quick reply and attention to this matter. Looking forward to validate the fix.

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