Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Unanswered

Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot

(0) ShareShare
ReportReport
Posted on by 16

Hi,

I am trying to use an AI-builder prompt in a section of a Microsoft Copilot agent.

In this prompt, one of the inputs is a PDF document. I tested the prompt with the document in question, and it works.

However, when I test the section, I get an error message:



Error Message: The prompt 'analyze document' ('227b2625-3b3c-47ec-ad6b-a33d0211b211') failed to execute with response code '400'.

Error Code: AIModelActionBadRequest

Conversation ID: f8daea17-3460-4f8c-b5b1-7e795c42ec11

Time (UTC): 2024-12-11T16:00:15.157Z

 

I encounter this error regardless of how I try to submit the document (e.g., dropping it into the chat, using get_file_content in SharePoint...).

Could you please help me?

 

Thank you in advance."

Categories:
  • DH-20121553-0 Profile Picture
    DH-20121553-0 2 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hi, I have the same problem with a agent, so do you resolved the problem?
  • fchopo Profile Picture
    fchopo 7,926 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hi,
    I tried the same in my developer environment and I get the same result. So it seems we found a bug ;)
     
    I'll try to submit a support request to MS to solve it!
     
    Ferran
     
     
  • VC-25090824-0 Profile Picture
    VC-25090824-0 16 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    hi @fchopo,
    thanks for your reply, 
    I've edited the post to include the screenshots.
    Yes, that's exactly what I want to do. Uploading the document in the conversation seems to work, but the prompt doesn't work (only in the conversation, not when I test it)
  • fchopo Profile Picture
    fchopo 7,926 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hello,
     
    If I understand correctly, you want to upload a PDF file in an agent, and use AI Builder to analyze it, right? Upload files to a conversation is a new feature, so not sure if you can use it in AI Builder yet.
     
    Screenshots you shared seem not be available :(, so could you provide more detail on that?
     
    Thanks
    Ferran
     
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,161

Leaderboard

Featured topics