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 / Copilot Studio / AI Response can not ge...
Copilot Studio
Unanswered

AI Response can not get returned

(0) ShareShare
ReportReport
Posted on by 9
Hi all, 
 
I created and tested an AI Prompt for fetching data from the Dynamics knowledge base successfully. The result gets stored into the local newly created variable KbResult.
 
 
 
Topic checker says that everything is ok and in subsequent steps I can select the subresults of KbResult with the right data types. When running the chat I get the error message:
 

Error Message:
The parameter with name 'predictionOutput' on prompt 'KB Prompting' ('8d259d3b-c411-4a0b-87b6-f2bdcaecxxxx') evaluated to type 'RecordDataType' , expected type 'RecordDataType'

Error Code:
AIModelActionBadRequest

 

This is the variable structure of the topic variable KbResult.

kind: Record
properties:
  dataUsed:
    displayName: Data Used
    order: 3
    type: String
 
  finishReason:
    displayName: Finish Reason
    order: 0
    type: String
 
  structuredOutput:
    order: 2
    type:
      kind: Record
      properties:
        AnswerContent:
          displayName: AnswerContent
          order: 0
          type: String
 
        AnswerFound:
          displayName: AnswerFound
          order: 1
          type: Boolean
 
  text:
    displayName: Text
    order: 1
    type: String

 

I already created new result variables, recreated the complete AI prompt new, tested with text output and JSON output. Error message remains. Any ideas on it?

I have the same question (20)
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    Your variable is a complex record type. Here, the structuredOutput field is defined as another Record with its own properties (AnswerContent, AnswerFound).
     
    you can check {x} on the top of the topic, it will list KBResult all properties you can use, pick the one you need.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 850

#2
Vish WR Profile Picture

Vish WR 324

#3
Haque Profile Picture

Haque 296

Last 30 days Overall leaderboard