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
ConvertTo-Attachment : Cannot convert value "5206343689" to type "System.UInt32". Error: "Value is too big or too small for a UInt32."
At C:\Program Files\WindowsPowerShell\Modules\ConfluencePS\2.5.1\ConfluencePS.psm1:1083 char:43
As a temporary fix, I just replaced all instances of "UInt32" with "UInt64" in ConfluencePS.psm1 and ConfluencePS.Types.cs. Reloaded the module and I was able to get the attachment.
I'm fairly new to Powershell so I am not sure if this is an ideal solution, but it seems to be working for me.
Get-ConfluenceAttachment -ApiUri -Credential [-PageID] <Int32[]> [-FileNameFilter ] [-MediaTypeFilter ] [-Skip ] [-First ] [-PageSize ] [-IncludeTotalCount]
ConvertTo-Attachment : Cannot convert value "5206343689" to type "System.UInt32". Error: "Value is too big or too small for a UInt32."
At C:\Program Files\WindowsPowerShell\Modules\ConfluencePS\2.5.1\ConfluencePS.psm1:1083 char:43
The text was updated successfully, but these errors were encountered: