Cube VerifyRule

Verifies if the specified rule is valid for the given cube. The specified rule is not written to the cube.

If the target, formula, or attributes of a rule are invalid, the error number and position are returned as XML attributes of the corresponding XML element.

Request

<Alea:Document xmlns:Alea="http://www.misag.com">
  <Alea:Request RequestID="001" Class="Cube" Method="VerifyRule">
    <Alea:Cube Name="SALES">
      <Alea:Rule Type="Cube" Cells="All" Enabled="true">
        <Alea:Target>[CURRTYPE:'LC']</Alea:Target>
        <Alea:Formula>#NA</Alea:Formula>
        <Alea:Description></Alea:Description>
      </Alea:Rule>
    </Alea:Cube>
  </Alea:Request>
</Alea:Document>

Answer

<Alea:Document>
  <Alea:Request RequestID="001">
    <Alea:Return>
      <Alea:Rule Type="Cube" Cells="All" Enabled="true" RuleID="0X00EA60EA60">
        <Alea:Target>[CURRTYPE:'LC']</Alea:Target>
        <Alea:Formula>#NA</Alea:Formula>
        <Alea:Description />
      </Alea:Rule>
    </Alea:Return>
  </Alea:Request>
</Alea:Document>

Error 1

This answer is returned if the target of a rule is invalid.

<Alea:Document xmlns:Alea="http://www.misag.com">
  <Alea:Request RequestID="001">
    <Alea:Return>
      <Alea:Rule Type="Cube" Cells="All" Enabled="true" RuleID="0X00EA60EA60">
        <Alea:Target ErrorID="26" ErrorPosition="15">[CURRTYPE:'LC', PROFITTT:'Indirect Material Costs']</Alea:Target>
        <Alea:Formula>#NA</Alea:Formula>
        <Alea:Description />
      </Alea:Rule>
    </Alea:Return>
  </Alea:Request>
</Alea:Document>

Error 2

This answer is returned if the Cells attribute is invalid.

<Alea:Document xmlns:Alea="http://www.misag.com">
  <Alea:Request RequestID="001">
    <Alea:Return>
      <Alea:Rule Type="Cube" Cells="Nonsense" Enabled="true" RuleID="0X00EA60EA60" ErrorID="27">
        <Alea:Target>[CURRTYPE:'LC']</Alea:Target>
        <Alea:Formula>#NA</Alea:Formula>
        <Alea:Description />
      </Alea:Rule>
    </Alea:Return>
  </Alea:Request>
</Alea:Document>