Skip to content

[Bug]: pac pages upload-code-site fails with KeyNotFoundException when Server Logic is present #1513

@robertrutkowski

Description

@robertrutkowski

Description

pac pages upload-code-site fails when the Power Pages site contains Server Logic.
If I remove Server Logic from the site, the upload completes successfully.

What is important: an older PAC CLI version works (2.0.128), while a newer version fails on the same project/content.

Error

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
...
at bolt.module.paportal.PortalDataImporter.GetFileContentDetailsForServerLogic(...)

Extension Version

2.0.133

VS Code Version

1.110.1

VS Code Channel

Stable

Steps to Reproduce

  1. Download the code site:
pac pages download-code-site -p "./" -id 7caa83f3-683a-454a-8ac2-1c2fd84b24dd -o
  1. Upload the code site (without any changes):
pac pages upload-code-site ...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpac-cliPAC Command Line Interfacepower-pages

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions