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 / Copilot Studio / Custom connector actio...
Copilot Studio
Unanswered

Custom connector action getting System Error

(1) ShareShare
ReportReport
Posted on by 15

irwanto_andrew_1-1714471835483.png


I'm encountering a SystemError while attempting to execute a connector action using a custom connector on Copilot Studio.
The error message I've come across in the developer tools states:
"Expecting a TableType Json Array but got Record."

irwanto_andrew_0-1714471820984.png

 

I have tried the parameters and executed successfully on Power Apps' Custom Connector test screen:

irwanto_andrew_2-1714471909677.png

 


I have also tried checking online, however I haven't been able to find any references to this specific error, as such I am now unsure about how to proceed.

Has anyone else encountered this issue before? If so, could you please share any insights or advice on how to resolve it?
I'd greatly appreciate any guidance or suggestions on how to tackle this problem effectively.
Thank you in advance!

I have the same question (0)
  • adilei Profile Picture
    on at

    Can you share the YAML for your topic? What is the data type of the variable that is mapped to the connector input?

  • irwanto_andrew Profile Picture
    15 on at

    -

  • irwanto_andrew Profile Picture
    15 on at

    Hi adilei,
    Thank you for your response!


    The connector input should all be strings.
    The output is as follows:

     

     

    [
    {
    "submit_id": 3,
    "emp_id": 4,
    "emp_no": "12",
    "emp_nm": "Jack",
    "actor": 0,
    "actor_txt": "申請",
    "trans_payment": null,
    "status_txt": "差戻",
    "hd_sdate": null
    }
    ]

     

     


    The YAML of the topic is as follows (some values redacted):

     

     

    kind: AdaptiveDialog
    beginDialog:
    kind: OnRecognizedIntent
    id: main
    intent:
    triggerQueries:
    - DGからデータを取得
    
    actions:
    - kind: Question
    id: question_Z1SWNz
    interruptionPolicy:
    allowInterruption: true
    
    variable: Topic.ホストURL
    prompt: 使用するテナントのDGホストURLは?例:https://tenant-name.com/
    entity: URLPrebuiltEntity
    
    - kind: Question
    id: question_FSvC0m
    interruptionPolicy:
    allowInterruption: true
    
    variable: init:Topic.ロールID
    prompt: 使用するロールのロールIDは?
    entity:
    kind: RegexEntityReference
    entityId: crcfa_dgTest1.entity.ID
    
    - kind: SendActivity
    id: sendActivity_DJjpWW
    activity: "{Topic.ホストURL} {Topic.ロールID} <query> <role-secret>"
    
    - kind: InvokeConnectorAction
    id: invokeConnectorAction_DlIYgp
    input:
    binding:
    host_url: =Topic.ホストURL
    query: <query>
    role-id: =Topic.ロールID
    role-secret: <role-secret>
    
    output:
    kind: SingleVariableOutputBinding
    variable: Topic.odata
    
    connectionReference: crcfa_dgTest1.cr.HhL_gJY5
    connectionProperties:
    mode: Maker
    usageDescription:
    
    operationId: odata
    latencyMessageSettings:
    allowLatencyMessage: true
    latencyMessage: テスト
    
    errorHandling:
    kind: ContinueOnErrorBehavior
    statusCode: Topic.Var1
    errorResponseBody: Topic.Errorbody
    
    requestTimeoutInMilliseconds: 30000
    
    - kind: SendActivity
    id: sendActivity_rADfvd
    activity: "{Topic.odata}{Topic.Errorbody} {Topic.Var1} "

     

     

     

  • irwanto_andrew Profile Picture
    15 on at

    -

  • irwanto_andrew Profile Picture
    15 on at

    -

     

  • irwanto_andrew Profile Picture
    15 on at

    -

  • irwanto_andrew Profile Picture
    15 on at

    Hi @AD ,
    Do let me know if there are anything else needed, thank you! 

  • Suggested answer
    CU19070401-0 Profile Picture
    32 on at
    Here is a list of very useful working demo resources on how to create a custom connector in Power Automate and how to call that custom connector in Copilot Studio. Using this, you can connect to your live API:
     
    YouTube Video on how to add and call custom connector in Copilot Studio: https://www.youtube.com/watch?v=J5i16kAzwpI
    Blog article on how to add and call custom connector in Copilot Studio: https://global-sharepoint.com/copilot/call-custom-connector-in-copilot/
    YouTube Video on how to create custom connector in Power Automate with Third Party API: https://youtu.be/CygB6TCZFO4
    Blog article on how to create custom connector in Power Automate with Third Party API: https://global-sharepoint.com/sharepoint/power-automate-custom-connector/
    YouTube video on how to create custom topic with GenAI in Copilot Studio: https://youtu.be/VSmo5KQRnTY

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 273 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 271 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard