Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] Dataverse table alias is ambiguous and native CRUD returns OperationNotFound

オープン
#29 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@tonystevenj がすでに取り組んでいます。

2026年10月13日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, cli, databases

調査の方向性

plugins/microsoft-managed-apps/shared/connector-reference.md から始め、ドキュメントに記載されたエイリアスを使って ms app add data-source コマンドを再現します。次に、getClient(dataSources)、生成されたコネクターメタデータ、および retrieveRecordAsync/createRecordAsync の呼び出しを追跡します。エイリアスが明確に解決され、バインドされた Dataverse テーブルに対して native CRUD が OperationNotFound を返さなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

product team investigating

Describe the bug

The documented tabular Dataverse command cannot be selected with Managed Apps CLI 0.23.0. The repository documentation says to use --connector dataverse --as table, but the CLI resolves dataverse to two connectors with the same display name and exits as ambiguous. Binding tables through shared_commondataserviceforapps succeeds, but native getClient(dataSources) CRUD calls then fail in App Player with OperationNotFound.

Steps to Reproduce

  1. Create or initialize a Managed App in an environment with Dataverse.
  2. Create a custom Dataverse table, for example sample_order.
  3. Run:
ms app add data-source `
  --connector dataverse `
  --as table `
  --table sample_order `
  --skip-codegen `
  --non-interactive `
  --json
  1. The CLI exits with:
Multiple connectors match 'dataverse'. Specify the connector ID directly:
  shared_commondataservice  (Microsoft Dataverse)
  shared_commondataserviceforapps  (Microsoft Dataverse)
  1. Use the current-environment connector as a workaround:
ms app add data-source `
  --connector shared_commondataserviceforapps `
  --as table `
  --dataverse-environment-id <environment-id> `
  --table sample_order
  1. Call native CRUD from the app:
const client = getClient(dataSources)
await client.createRecordAsync('sample_order', record)

Expected behavior

--connector dataverse --as table should resolve the dedicated tabular Dataverse data source described in plugins/microsoft-managed-apps/shared/connector-reference.md, bind the active environment without a connection ID, and generate metadata that native CRUD can execute.

Actual behavior

The alias is ambiguous because ms connector list exposes only shared_commondataservice and shared_commondataserviceforapps, both named Microsoft Dataverse.

Using shared_commondataserviceforapps generates a Dataverse table entry and dataset binding, but App Player native CRUD fails before reaching Dataverse:

{
  "error": {
    "path": "",
    "source": "configuration",
    "message": "Unable to match incoming request to an operation.",
    "reason": "OperationNotFound"
  }
}

The generated connector metadata has an empty version, so native CRUD constructs a dataset/table URL for which the runtime cannot match an operation. The failure affects both createRecordAsync and the preceding retrieveRecordAsync reconciliation calls.

Environment information

  • Managed Apps CLI: 0.23.0 (latest npm dist-tag on September 10, 2026)
  • Node.js: v26.7.0
  • npm: 11.19.0
  • OS: Windows
  • Framework: React 19, TypeScript, Vite 8
  • Connector: Microsoft Dataverse
  • Enterprise network: Yes

Additional context

The repository documentation currently states that the tabular Dataverse connector is --connector dataverse and does not use the connection-id model. That command is not reachable unambiguously in CLI 0.23.0. shared_commondataservice exposes legacy tabular operations such as PostItem_V2, while shared_commondataserviceforapps exposes current-environment actions such as CreateRecord; neither provides the documented dedicated connector identifier through ms connector list.

主要言語
TypeScript
スター
27
フォーク
8
平均マージ
6時間 59分
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/managed-apps のほかの issue

microsoft/managed-apps の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。