Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gashupl opened this issue May 29, 2025 · 6 comments
Open

Comments

@gashupl
Copy link

gashupl commented May 29, 2025

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?

@gashupl gashupl changed the title Power Pages Actions Upload errors when using modelVersion "2" Power Pages Actions Upload errors when using enhanced (2) modelVersion "2" May 29, 2025
@gashupl gashupl changed the title Power Pages Actions Upload errors when using enhanced (2) modelVersion "2" Power Pages Actions Upload errors when using enhanced modelVersion = "2" May 29, 2025
@priyanshu92
Copy link
Contributor

Hi @gashupl, thanks for opening the issue.

  1. Can you please verify if the site is using Enhanced Data Model or Standard Data Model? Determine whether your site is using the standard or enhanced data model
  2. Ensure that you are logged into both PAC and VS Code using the same account.
  3. After above steps, is your site showing under Other Sites or Active Sites?

@gashupl
Copy link
Author

gashupl commented May 30, 2025

Hi @priyanshu92

  1. Checked - my site Data Model = Enhanced
  2. I checked both VS Code Power Platform tools and PAC CLI command line - my environment is the same and I'm logged with the same account into it.
  3. My site is visible in "Other Sites" in Power Pages Actions section.

FYI:
The exported portal configuration may be found here: https://github.com/gashupl/letsmeet/tree/main/portal/lets-meet---letsmeetdev
and script used for export is here: https://github.com/gashupl/letsmeet/blob/main/scripts/portal-export.ps1
Maybe they will be somehow useful when investigating this issue.

@priyanshu92
Copy link
Contributor

@gashupl Are you trying to upload the website to the same environment you downloaded it or to a different environment?

@gashupl
Copy link
Author

gashupl commented Jun 2, 2025

@priyanshu92 The same environment.

@priyanshu92
Copy link
Contributor

Okay. Do you see the website under Active or Inactive sites in Power Pages Home? If you are uploading the website to the same environment you downloaded it from then I would expect it to show under Active or Inactive sites.

@gashupl
Copy link
Author

gashupl commented Jun 2, 2025

@priyanshu92
On the Power Pages management Portal site is visible in Active section:

Image

In Power Pages Pane in VS Code - "Other Sites":

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants