Skip to content

[BUG] Lack of errors in failing "Add-PnPFileSensitivityLabel" command #5253

@FormindGMO

Description

@FormindGMO

Reporting an Issue or Missing Feature

Connecting to PnP, and ran following command:

Add-PnPFileSensitivityLabel -Identity "/sites/MySite/Documents partages/General/test.pptx" -SensitivityLabelId "" -AssignmentMethod Privileged -JustificationText "test"

Expected behavior

Either adding Sensitivity Label, or failing with clear exception

Actual behavior

Printing : "Add-PnPFileSensitivityLabel: Exception of type 'System.Exception' was thrown.", no ErrorDetails.

What is the version of the Cmdlet module you are running?

3.1.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions