Error when uploading a rule package through Compliance & Security powershell RRS feed

  • 질문

  • I'm trying to create a EDM classification in the Compliance & Security Center.

    After following Microsoft tutoria and attempting to upload a rule package I get this error:


    $rulepack=Get-Content .\rulepack.xml -Encoding Byte -ReadCount 0 -Verbose
    New-DlpSensitiveInformationTypeRulePackage -FileData $rulepack

    The returm:

    The classification rules collection load failed to be validated against the target schema. The following error was found on line number 1, position 1, on load: The namespace document it is incorrect. The namespace document expected is "".
    + CategoryInfo : InvalidData: (:) [New-DlpSensitiv...TypeRulePackage], ClassificationR...dationException
    + FullyQualifiedErrorId : [Server=BN3NAM01WS028,RequestId=476d95dc-ddca-4101-85fe-8bbd2059755e,TimeStamp=09/07/2019 17:21:52] [F
    ailureCategory=Cmdlet-ClassificationRuleCollectionSchemaValidationException] EB9C06D7,Microsoft.Office.CompliancePolicy.Tasks.NewDlpSensitiveInformationTypeRulePackage
    + PSComputerName :

    2019년 7월 17일 수요일 오후 5:08