You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Get-ConfluenceAttachment stops running if it hits an archived page
Get-ConfluenceAttachment -PageID 4033119267
ConvertTo-Attachment : Cannot convert value "4033119267?status=archived" to type "System.UInt32". Error: "Input string was not in a correct format."
At C:\Program Files\WindowsPowerShell\Modules\ConfluencePS\2.5.1\ConfluencePS.psm1:1083 char:43
$result | & $converter
~~~~~~~~~~~~
CategoryInfo : MetadataError: (:) [ConvertTo-Attachment], ArgumentTransformationMetadataException
FullyQualifiedErrorId : RuntimeException,ConvertTo-Attachment
Works normal for status=current.
Get-ConfluencePage -SpaceKey xxx
ID Status Title SpaceKey Version
-- ------ ----- -------- -------
4031965581 current ... xxx 7
4033021639 current ... xxx 7
4033119267 archived ... xxx 7
4082338730 current ... xxx 2
4082894772 current ... xxx 2
4082927575 current ... xxx 7
The text was updated successfully, but these errors were encountered:
Hello,
It looks like Get-ConfluenceAttachment stops running if it hits an archived page
Works normal for status=current.
The text was updated successfully, but these errors were encountered: