question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConvertTo-PnPPage error The collection type 'System.Collections.Generic.Dictionary`2[System.UInt32,System.String]' is not supported

See original GitHub issue

Hi!

I’m trying to run the command ‘ConvertTo-PnPPage’ but this returns the error: ‘ConvertTo-PnPPage : The collection type ‘System.Collections.Generic.Dictionary`2[System.UInt32,System.String]’ is not supported.’

This command works fine with the ‘SharePointPnPPowerShellOnline’ module.

There is no logfile created with the Set-PnpTraceLog and because of the error message I thought this was something with libraries being loaded incorrectly. Is this correct and therefore the right place to submit this error?

Full cmdlet: ConvertTo-PnPPage -PublishingPage -Identity "<url>" -Overwrite -TargetWebUrl $targetUrl

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
leupenbcommented, Jan 26, 2021

Allright, I made a stupid mistake and connected to the wrong site, so the bug is actually fixed (no more error messages)! Thanks for the bug fixing and sorry for the confusion 😃

1reaction
leupenbcommented, Jan 22, 2021

@jansenbe absolutely, it will be monday morning and I will post te result here

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] ConvertTo-PnPPage: The collection type 'System. ...
BUG : ConvertTo-PnPPage not working when trying to convert a publishing page. Error message: ConvertTo-PnPPage : The collection type 'System.
Read more >
c# - Cannot convert type 'System.Collections.Generic. ...
It's because when you loop through items in a Dictionary, the item within the Dictionary is not a Dictionary, it's a KeyValuePair.
Read more >
The collection type Dictionary with integer Key not supported
Issue resolution for error serilzation error The collection type 'System.Collections.Generic.Dictionary`2[System.Int32,System.String]' is not supported.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found