Can't Clear Company Knowledge from Monitors or Rules

Ollie Woodall 1 Reputation point
2021-09-20T15:29:47.457+00:00

I have a problem which occurred after Upgrade of SCOM from 2012 to 1801.

As you all know, Company Knowledge is edited in SCOM by opening Word and adding text to the various Template MAML sections there.

I can create and add Company Knowledge all day long.

But if I want to get rid of Company Knowledge (i.e to maybe save the Company Knowledge to a different MP) then this is not possible. The way I used to do this successfully was to simply clear any existing company knowledge text from the template and save it. After a save, the Rule or Monitor would now appear to have no Company Knowledge and you could create some new CK, in an MP of your choice.

Since the change to 1801, this is the error:

: Verification failed with 1 errors:

Error 1:
Found error in 2|My.Management.Pack|1.0.0.1|My.Management.Pack|| with message:
XSD verification failed for the management pack. [Line: 0, Position: 0]
System.Xml.Schema.XmlSchemaValidationException: The element 'MamlContent' has incomplete content. List of possible elements expected: 'section' in namespace 'http://schemas.microsoft.com/maml/2004/10'.
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
at System.Xml.XsdValidatingReader.ProcessEndElementEvent()
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.Read()
at Microsoft.EnterpriseManagement.Configuration.XSDVerification.ValidateManagementPack(TextReader mpcontents, ManagementPack mp, Boolean throwError)


I've actually created new CK, in a new MP, against a new Monitor or Rule, and the condition is the same.

It seems to me that when you clear the template and save it, that SCOM is not clearing the MAML tags properly.

I have tried to manually remove the Knowledge Base article from the MP manually, and reimport it, but this doesn't get rid of the CK, so that tells me that the CK is stored in a Database Table somewhere, as the Rule / Monitor is still able to reference it.

The only way I can clear CK now, is to delete the MP that the CK is in. This cleanly removes the CK from the SCOM database. However, this is a nightmare with MPs that have multiple references and dependencies.

Here's a Knowledge Base CK that we have, as an example, that we can't clear using the GUI:

  <KnowledgeArticles>
    <KnowledgeArticle ElementID="OllieTestEKB" Visible="true">
      <MamlContent>
        <maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:ns0="http://tempuri.org/XMLSchema1.xsd" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2">
          <maml:title>Summary</maml:title>
          <maml:para>Ollie Summary</maml:para>
        </maml:section>
        <maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:ns0="http://tempuri.org/XMLSchema1.xsd" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2">
          <maml:title>Configuration</maml:title>
          <maml:para>Ollie Config</maml:para>
        </maml:section>
        <maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:ns0="http://tempuri.org/XMLSchema1.xsd" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2">
          <maml:title>Additional</maml:title>
          <maml:para>Ollie Additional</maml:para>
        </maml:section>
      </MamlContent>
    </KnowledgeArticle>
  </KnowledgeArticles>
Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,435 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Ollie Woodall 1 Reputation point
    2021-10-11T10:41:30.95+00:00

    Any thoughts anyone?

    0 comments No comments

  2. OdgeUK 41 Reputation points
    2022-11-25T15:10:53.333+00:00

    Wanted to bump this. Tidying up our 1801 environment for a migration to 2019 and it would be helpful to know if anyone else has experienced this?

    0 comments No comments

  3. Sandro D'Incà 226 Reputation points
    2022-12-05T13:49:16.263+00:00

    i'm not sure, but in older SCOM-versions CK was stored in the the default MP too? i have a lab-environment for SCOM2019, i will make a quick-test there...

    0 comments No comments