[Bug] PowerApps CLI unable to find/add Dataverse API
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
首先沿着 Dataverse 元数据发现路径跟踪 pa app find-dataverse-api --search "SaveDraftApi" --json 和 pa app add dataverse-api --api-name new_SaveDraftApi,并将 new_SaveDraftApi 与 new_WorkingApi 进行比较。当搜索能够返回已发布的公共 Custom API,并且可以通过 add 生成其架构和类型化服务时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I had GHCP compile this report based on our troubleshooting sessions. I'm a 'low code' dev with a sys admin background so wanted to make sure enough detail was captured for you. Hope that's okay, apologies if not.
pa app find-dataverse-api and pa app add dataverse-api do not discover a published Dataverse Custom API, even though the same operation is present in the environment's $metadata document.
A different Custom API in the same environment, new_WorkingApi, was successfully discovered and generated the previous day.
Steps to Reproduce
-
Create a public, global Dataverse Custom API Action named
new_SaveDraftApi. -
Set:
- Is Function:
No - Is Private:
No - Allowed Custom Processing Step Type:
Sync and Async - Enabled for Workflow:
No
- Is Function:
-
Add required request parameters:
new_InspectionId(Guid)new_ExpectedRowVersion(String)new_ExteriorGoodCondition(Integer)
-
Add response property:
new_CurrentRowVersion(String)
-
Save and publish the Custom API in an unmanaged solution.
-
Verify the Custom API record and parameters exist through Dataverse queries.
-
Download the environment metadata document and confirm it contains
new_SaveDraftApi. -
From the root of an associated Power Apps Code App project, run:
pa app find-dataverse-api --search "SaveDraftApi" --json -
Then run:
pa app add dataverse-api --api-name new_SaveDraftApi
Expected behavior
pa app find-dataverse-api should return new_SaveDraftApi, and pa app add dataverse-api should generate the schema and typed service for the public Custom API.
Actual behavior
The operation is omitted from pa app find-dataverse-api results. Adding it fails with:
No Dataverse operation named 'new_SaveDraftApi' was found.
Use 'find-dataverse-api' to search for available operations.
A broad search for Save returns built-in operations but does not return new_SaveDraftApi.
Screenshots or Error Messages
The Custom API is verified in Dataverse with these settings:
- Unique name:
new_SaveDraftApi - Binding type: Global
- Is Function: No
- Is Private: No
- Allowed Custom Processing Step Type: Sync and Async
- Request parameters:
new_InspectionId: Guid, requirednew_ExpectedRowVersion: String, requirednew_ExteriorGoodCondition: Integer, required
- Response property:
new_CurrentRowVersion: String
The downloaded Dataverse $metadata XML contains both:
new_WorkingApi
new_SaveDraftApi
I ran a wireshark capture to try and rule out Corp proxy issues as a potential cause
Network capture shows successful DNS resolution, TLS handshakes, and traffic exchange with both the Power Platform environment API and Dataverse API. No TLS alerts or transport anomalies were observed on those connections.
Environment information
- Framework, build tool or relevant package used: React 19, TypeScript 5.9, Vite 7
- Power Apps SDK:
@microsoft/power-apps1.2.13 - Code Apps CLI:
pa0.15.3 - Connection/components: Dataverse Custom API, Power Apps Code App
- Environment: Dataverse online, Power Platform environment in Australia region
- OS: Windows 11
Additional context
The same project and environment successfully generated a client for the public global Custom API new_WorkingApi using:
pa app add dataverse-api --api-name new_WorkingApi
The new Custom API is included in the same unmanaged solution as the working API. It was created and republished more than 15 hours before testing, so this does not appear to be normal metadata propagation delay.
No manual edits were made to generated Code Apps API schemas or power.config.json.
- 主要语言
- TypeScript
- 星标
- 504
- 派生
- 145
- 平均合并
- 4 小时 3 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/PowerAppsCodeApps 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
microsoft/PowerAppsCodeApps#463 ·
-
bug
难度 4/5 3-5 天 新手友好度 48/100
microsoft/PowerAppsCodeApps#462 ·
-
bug
难度 4/5 3-5 天 新手友好度 48/100
microsoft/PowerAppsCodeApps#461 ·
-
bug
难度 5/5 一周以上 新手友好度 28/100
microsoft/PowerAppsCodeApps#460 · 2 条评论 ·
查看 microsoft/PowerAppsCodeApps 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·