[Bug] PowerApps CLI unable to find/add Dataverse API
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu bằng cách lần theo pa app find-dataverse-api --search "SaveDraftApi" --json và pa app add dataverse-api --api-name new_SaveDraftApi qua đường dẫn khám phá siêu dữ liệu Dataverse, đồng thời so sánh new_SaveDraftApi với new_WorkingApi. Công việc được hoàn tất khi Custom API công khai đã phát hành được trả về trong kết quả tìm kiếm và lược đồ cùng dịch vụ có kiểu của nó có thể được tạo bằng add.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 504
- Fork
- 145
- Merge trung bình
- 4 giờ 3 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/PowerAppsCodeApps
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/PowerAppsCodeApps#463 · 1 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/PowerAppsCodeApps#462 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/PowerAppsCodeApps#461 ·
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
microsoft/PowerAppsCodeApps#460 · 3 bình luận ·
Tất cả issue của microsoft/PowerAppsCodeApps
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/claude-code#96687 ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
AOSSIE-Org/DebateAI#582 · 2 bình luận ·