title: Schema fails to load in Pentaho BI Server 5
body: <p>This is the single fact table I would like to model as a cube:</p>
  
  <pre><code>CREATE TABLE `test1` (
    `id` int(11) NOT NULL,
    `key1` int(11) DEFAULT NULL,
    `key2` int(11) DEFAULT NULL,
    `val` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`)
  );
  </code></pre>
  
  <p>This is the Mondrian schema (test1.xml) I came up with:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE Schema SYSTEM "mondrian.dtd"&gt;
  &lt;Schema metamodelVersion="4.0"&gt;
      &lt;PhysicalSchema&gt;
          &lt;Table name="test1"&gt;
              &lt;Key&gt;
                  &lt;Column name="id"/&gt;
              &lt;/Key&gt;
          &lt;/Table&gt;
      &lt;/PhysicalSchema&gt;
      &lt;Cube&gt;
          &lt;Dimensions&gt;
              &lt;Attributes name="K1" keyColumn="key1" hasHierarchy="false"/&gt;
              &lt;Attributes name="K2" keyColumn="key2" hasHierarchy="false"/&gt;
          &lt;/Dimensions&gt;
          &lt;MeasureGroups&gt;
              &lt;MeasureGroup name="N" table="test1"&gt;
                  &lt;Measure name="n" column="val" aggregator="sum"/&gt;
              &lt;/MeasureGroup&gt;
          &lt;/MeasureGroups&gt;
      &lt;/Cube&gt;
  &lt;/Schema&gt;
  </code></pre>
  
  <p>Now the database is successfully accessible from BI Server.</p>
  
  <p>The problem is when I try to import the new cube through the Data Source Manager where I select the XML file and the JDBC data source.</p>
  
  <p>Then I get an error message:</p>
  
  <p><strong>"Publish to Server General Error Mondrian File: test1.xml"</strong></p>
  
  <p>What might be the issue?</p>