Skip to content

I am getting this error when I try the pac pages upload-code-site as part of Portals bring your own code sample #720

Open

Description

I am getting this error when I try the pac pages upload-code-site as part of Portals bring your own code sample

C:\Power Pages Bring Your Own Code React Sample\PowerApps-Samples\portals\bring-your-own-code-samples\react-sample> pac pages upload-code-site --rootPath .
Connected as global.admin@56g45x.onmicrosoft.com

Power Pages folder already initialized in : .

Creating Power Pages records for compiled artifacts

Updating Home page, header and footer web templates

Uploading changes

The upload path provided doesn't contain Power Pages website data, please provide the path of the directory which contains website.yml

Activity

  1. ecurrier commented on Jun 27, 2025

    @ecurrier

    I was getting this as well! I did a couple things that helped me resolve the issue.

    First, make sure your pac cli is on the latest version, you can use pac install latest to update to the most recent version.

    Second, I was receiving that error when executing the command from the VS Code powershell terminal. But once I switched over to the windows command prompt it began working for me.

    Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions