Skip to content

[BUG] setting capabilities to federatedKnowledgeSource causes ApiDefinitionCapabilitiesInvalid error #4056

@meiaestro

Description

@meiaestro

Type of Connector

Custom Connector

Name of Connector

Virtual Data Platform

Describe the bug

When changing the apiProperties.json as described in the enhanced-connector-sample to:

"capabilities": ["tabular", "federatedKnowledgeSource"]

I receive the following error during paconn update:

{
  "error": {
    "code": "ApiDefinitionCapabilitiesInvalid",
    "message": "The custom connector property 'Capabilities' is not a string array."
  }
}

I do not get an error when removing "federatedKnowledgeSource".

Less important, but I would be thankful for a hint: If "capabilities" is set to ["tabular"] and I run an update and a download afterwards, in some cases the "tabular" value has disappeared completely. I've not yet identified a reproducable setup.

Is this a security bug?

No, this is not a security bug

What is the severity of this bug?

Severity 2 - One or more important connector features are down

To Reproduce

add "federatedKnowledgeSource" to the capabilities of a working apiProperties.json and try to update the connector via paconn.

Expected behavior

Successful update with no "ApiDefinitionCapabilitiesInvalid" Error.

Environment summary

paconn v0.0.20
Windows 11
PSVersion 7.5.4
python 3.11.0

Additional context

I followed the documentation on how to create an enhanced custom connector:
https://learn.microsoft.com/en-us/connectors/custom-connectors/enhanced-connectors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions