microsoft / microsoft/powerplatform-vscode

Power Pages Actions Upload errors when using enhanced modelVersion = "2"

Open
#1,203 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
277
Forks
60
Avg merge
1d 1h
Merged PRs (30d)
14

Description

My new Power Pages portal uses enhanced model version = 2.
I've successfully download local copy of its files with the following PAC CLI command:
pac powerpages download --path '..\portal' --webSiteId $websiteId --overwrite true --modelVersion 2

However when I would like to upload it back using VS Code Power Pages "Upload" command from menu "pac pages upload" command is executed in the background without specifying modelVersion and it results with the following error:

Error: Power Pages entities for standard data model (v1) aren't available on this org, please install required packages on this org. If you are trying to upload to enhanced data model (v2), pass model version aFeedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions

Could you please update Power Pages Actions to support enhanced model of Power Pages portals?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the VS Code Power Pages Upload action and the underlying pac pages upload invocation, comparing it with the shown download command that passes --modelVersion 2. Done means the Upload command can pass the enhanced model version and no longer fails by assuming standard data model v1.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.