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 / Copilot Studio child a...
Copilot Studio
Suggested Answer

Copilot Studio child agent works in test but fails to publish with InvalidPropertyPath on inputs

(2) ShareShare
ReportReport
Posted on by 5

Title: Copilot Studio child agent fails to publish with InvalidPropertyPath errors even though it works in test

I’m running into a publish issue in Copilot Studio with a child agent that works during testing, but fails on publish with the following error:

[
  {
    "diagnosticResult": [
      {
        "$kind": "PropertyError",
        "propertyName": "PropertyName",
        "errorCode": "InvalidPropertyPath",
        "errorMessage": "The specified property path for 'PropertyName' is invalid or does not exist in the target object."
      },
      {
        "$kind": "PropertyError",
        "propertyName": "PropertyName",
        "errorCode": "InvalidPropertyPath",
        "errorMessage": "The specified property path for 'PropertyName' is invalid or does not exist in the target object."
      }
    ],
    "componentDisplayName": "Bonus Depreciation Calculator",
    "componentId": "a827d1aa-39f7-4c60-97d6-f521a58cd34f",
    "diagnosticErrorCount": 2
  }
]

Setup

I have a parent topic that:


  • asks the user to choose a scope/type from a closed list

  • branches based on that choice

  • asks a different follow-up question in each branch

  • calls a child agent

Parent topic behavior

The parent topic collects:


  • a closed-list selection

  • converts that selection to text

  • asks one follow-up question in branch A

  • asks a different follow-up question in branch 


  •  

The child agent is then called with two string inputs:


  • ScopeTypeText

  • user_issue_text


  •  

Depending on the branch, user_issue_text is mapped from a different parent variable.

 

Child agent inputs/outputs

 

Current child agent inputs:


  • ScopeTypeText (String)

  • user_issue_text (String)



  •  

Current child agent outputs:


  • answerComplete (Boolean)

  • answerText (String)

  •  

Important behavior I’ve observed

 

  • The child agent works in Copilot test chat

  • The parent topic logic appears to work

  • The issue only happens on publish

  • Earlier, when I had 4 child inputs, I got 4 InvalidPropertyPath errors

  • After reducing the child to 2 inputs, I now get 2 InvalidPropertyPath errors
 

That makes me think I may be getting roughly one publish error per active child input binding.

 

Things I’ve already tried

 
  • deleting and recreating the child-agent node in the parent topic

  • changing parent mappings from literal text to Power Fx / variable references

  • simplifying the child from 4 inputs down to 2

  • fixing output types so:

    • answerComplete = Boolean

    • answerText = String

  • removing downstream output usage temporarily to isolate whether the issue was on the output side

  • updating the child instructions to match the new variable names

  • editing the child YAML directly

Current child YAML

kind: AgentDialog
inputs:
  - kind: ManualTaskInput
    propertyName: ScopeTypeText
    value: Topic.ScopeTypeText

  - kind: ManualTaskInput
    propertyName: user_issue_text
    value: Topic.user_issue_text

beginDialog:
  kind: OnRedirect
  id: main

inputType:
  properties:
    ScopeTypeText:
      displayName: ScopeTypeText
      description: Scope Type converted to text
      type: String

    user_issue_text:
      displayName: user_issue_text
      description: User issue text provided by the parent flow
      type: String

outputType:
  properties:
    answerComplete:
      displayName: answerComplete
      description: Check if a completed response was provided, satisfying all conditions.
      type: Boolean

    answerText:
      displayName: answerText
      description: chatbot answer
      type: String

My question

Has anyone seen InvalidPropertyPath errors like this caused by the child agent input schema itself, even when the parent topic looks correct and the agent works in test?

More specifically:

  1. Is there something wrong with the ManualTaskInput / inputType structure above?

  2. Should value: Topic.ScopeTypeText and value: Topic.user_issue_text be written differently in child YAML?

  3. Is this a known issue where the Copilot Studio UI and the underlying YAML schema get out of sync for child agent inputs?

  4. Is there a supported pattern for passing different parent branch variables into one child input without triggering publish errors?

Any guidance would be hugely appreciated.

I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,997 Moderator on at
    How do you transport the agent, please try to remove and include the agent again to he can include new bot components. Sometimes need to do it that manually to include the bot components (topics,variables,flows e etc).
     
    -----------------------------
    If my answer helped you, please give me a thumbs up (👍). 
    If solve your question please mark as answer ✔️. This is help the community.
    If you want talk with me just tag me @MichaelFP 
  • Suggested answer
    RichAI Profile Picture
    26 on at
    Hi @  ,
     
    I ran into the same InvalidPropertyPath publish error in Copilot Studio, and even though the child agent worked in Test Chat, the bot refused to publish. In my case the root cause was that I was passing a Choice (Option Set) variable directly into a child agent input that expected a String. In the Copilot Studio variable model, Choice variables resolve to an object at runtime, but the publish validator only accepts a primitive type. This mismatch makes the variable path invalid at publish time, even if Test Chat works.I added a Set variable (Text) node and explicitly converted the Choice to a String using Power Fx:
    Text(Global.ScopeTypeText)
    Then I stored that value in a String variable and passed that into the child agent input.
    Choice variables aren’t Strings — they’re structured objects. Publish validation checks type compatibility strictly. The child agent input expects String, so passing the raw Choice breaks the property path. Using Text() produces a proper string that the schema validator can resolve. Once the variable is explicitly created as a String in the topic, the path (e.g., Topic.ScopeTypeTextString) becomes valid and publish succeeds. After doing this type conversion, all my InvalidPropertyPath errors disappeared, and the agent published cleanly.
    I am pasting a YAML of the topic which reflects your scenario.
    kind: AdaptiveDialog
    beginDialog:
      kind: OnRecognizedIntent
      id: main
      intent: {}
      actions:
        - kind: Question
          id: question_ioF9mL
          interruptionPolicy:
            allowInterruption: true
    
          variable: init:Global.ScopeTypeText
          prompt: Choose your scope
          entity:
            kind: EmbeddedEntity
            definition:
              kind: ClosedListEntity
              items:
                - id: Underwriting
                  displayName: Underwriting
    
                - id: Billing
                  displayName: Billing
    
                - id: Claims
                  displayName: Claims
    
        - kind: SetVariable
          id: setVariable_482IEY
          variable: Topic.Var1
          value: =Text(Global.ScopeTypeText)
    
        - kind: ConditionGroup
          id: conditionGroup_N3ouZE
          conditions:
            - id: conditionItem_h8PbkO
              condition: =Global.ScopeTypeText = 'cfs_ChildAgentMappingDemo.topic.DemoParentTopic.main.question_ioF9mL'.Underwriting
              actions:
                - kind: Question
                  id: question_Hx2f5H
                  interruptionPolicy:
                    allowInterruption: true
    
                  variable: init:Global.ParentIssueText
                  prompt: What underwriting issue?
                  entity: StringPrebuiltEntity
    
            - id: conditionItem_tVW3oW
              condition: =Global.ScopeTypeText = 'cfs_ChildAgentMappingDemo.topic.DemoParentTopic.main.question_ioF9mL'.Billing
              actions:
                - kind: Question
                  id: question_2Vce7X
                  interruptionPolicy:
                    allowInterruption: true
    
                  variable: Global.ParentIssueText
                  prompt: What billing issue?
                  entity:
                    kind: StringPrebuiltEntity
                    sensitivityLevel: None
    
            - id: conditionItem_NTs7vL
              condition: =Global.ScopeTypeText = 'cfs_ChildAgentMappingDemo.topic.DemoParentTopic.main.question_ioF9mL'.Claims
              actions:
                - kind: Question
                  id: question_vAqlHY
                  interruptionPolicy:
                    allowInterruption: true
    
                  variable: Global.ParentIssueText
                  prompt: What claims problem?
                  entity:
                    kind: StringPrebuiltEntity
                    sensitivityLevel: None
    
        - kind: BeginDialog
          id: 9NlHEP
          input:
            binding:
              ScopeTypeText: =Topic.Var1
              user_issue_text: =Global.ParentIssueText
    
          dialog: cfs_ChildAgentMappingDemo.agent.Agent
          output:
            binding:
              answerComplete: Topic.answerComplete
              answerText: Topic.answerText
    
    inputType: {}
    outputType: {}
     
    Hope this helps

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 813

#2
Vish WR Profile Picture

Vish WR 313

#3
Haque Profile Picture

Haque 271

Last 30 days Overall leaderboard