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 Platform Community / Forums / Power Automate / Issue with AI Builder ...
Power Automate
Unanswered

Issue with AI Builder processing document using prompt - DependencyHttpStatusCode 400 or 499

(1) ShareShare
ReportReport
Posted on by 10
Hi,
I have a flow set up to grab a Purchase Order PDF stored in Sharepoint and pass it on to a prompt to extract the order information using AI Builder prompt. The trigger is an external app that calls into Http request and at the end the flow provide the order info in json format to Http response back to the application.
It's been running well for the past few months processing 200-300 order per day.
But from time to time I saw a few errors in a week that looks like the error came from the AI Builder prompt itself.
I copied and pasted the error messages below.
 
Does anyone has an idea how to resolve this issue ?
 
Action 'Run_a_prompt_-_Extract_PO_PDF' failed: {"operationStatus":"Error","error":{"type":"Error","code":"InputContentFiltered","message":"Prompt was filtered. []","properties":{"BackendErrorCode":"InputContentFiltered","DependencyHttpStatusCode":"400"}},"predictionId":null}
 
Action 'Run_a_prompt_-_Extract_PO_PDF' failed: {"operationStatus":"Error","error":{"type":"Error","code":"RequestCanceled","message":"The request was cancelled by the client for method POST","properties":{"BackendErrorCode":"RequestCanceled","DependencyHttpStatusCode":"499"}},"predictionId":null}
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,504 Super User 2025 Season 2 on at
    Hi @jikur
     
    Can you check at those failures, if there are any timeouts??? or if there is any chance you can post the entire flow run, with everything showing, I realize you may need to black some stuff out but it would help a ton.
     
    Also, I would recommend the following
     
    Wrap your Action in a Try / Catch scope error handling, so that when it fails, like this you can try again. I do not know what you have set for retries etc, but I would very much like to validate that
     
    1) the incoming data was properly collected, its possible it wasn't
    2) that the proper data was passed to Prompt (which you should be able to also go into Copilot and validate what IT says happened
    3) whether it was simply some weird connection issue or timeout.
     
    If its not 1 or 2 and on the Copilot Activity size or Azure AI it said all was good you might get more details.
     
    But if you at least wrap it properly in a Try / Catch, then it will automatically redo it and it won't fail outright unless there is a real issue.
     
    Which I think is what you are trying to get around?
     
    I dont know how many actions and or charges you are facing so I doubt its specifically a "charge" issue, if the rest work. It could just sincerely but load related.
     
    As all my videos etc are still down I am sharing this to review
     
    If this helps or if you can share and we can try to isolate the exact issue it would help.
     
  • jikur Profile Picture
    10 on at
     
    Thank you for your response.
    Looking at each error and the analysis from Copilot, it could be a timeout. What I found from the list of failed runs is the flow that ran for 1:40+ showed 499 error. This could be the timeout. The rests of the error is 400. 
    I don't think this is caused by the data in PDF as I have checked a couple of them and they look to be in good format.
    Attached is the entire flow. 
     
    I have a default retry policy because there is a note saying that the default is an exponential interval policy set to retry 4 times.
    I am going to put an error-handling mechanism as you suggested and wait for a week before I report this back on this thread.
     
     
  • LA-09101507-0 Profile Picture
    6 on at
    Hello there,
    Similar error here:
    Action 'CURP_Prompt' failed: {"operationStatus":"Error","error":{"type":"Error","code":"InputContentFiltered","message":"Prompt was filtered. [101,104]","properties":{"BackendErrorCode":"InputContentFiltered","DependencyHttpStatusCode":"400"}},"predictionId":null}

    It's weird because it has worked today for 4 other documents, but not for these 2. Please, any ideas?
    Here is copilot's suggestion, but how can it work for 4 other documents, but not for others?



     
  • Michael E. Gernaey Profile Picture
    53,504 Super User 2025 Season 2 on at
    Hi @jikur
     
    Checking in. You were going to add in the error handling and come back. Were you able to figure out your issue?
     
    If so can you share that it might also help @LA-09101507-0
     
    Cheers

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 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard