运行xmla脚本时出现问题

时间:2012-11-30 14:25:27

标签: ssis ssas ssms data-warehouse xmla

我正在学习SSIS的指南,并且在实际的ssis-work开始之前我正在运行一些xmla脚本。

xmla-script针对示例Analysis DB AdventureWorksDW2008R2运行。 脚本:

<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Parallel>
   <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <Object>
      <DatabaseID>Adventure Works DW 2008R2</DatabaseID>
      <DimensionID>Dim Time</DimensionID>
    </Object>
    <Type>ProcessUpdate</Type>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
   </Process>
  </Parallel>
</Batch>

我得到了输出:

<return xmlns="urn:schemas-microsoft-com:xml-analysis">
  <results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
   <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
      <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
      <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
       <Error ErrorCode="3239313431" Description="Errors in the metadata manager. The process type specified for the Date dimension is not valid since it is not processed." Source="Microsoft SQL Server 2008 R2 Analysis Services" HelpFile="" />
      </Messages>
    </root>
  </results>
</return>

我在想这是在尝试处理维度时间?没有这样的维度。 dimensions inside adventureworks dw

可能是什么问题?

1 个答案:

答案 0 :(得分:4)

维度的ID不一定与名称相同。双击您的日期维度,您将看到ID是昏暗时间。

错误指出尚未处理日期维度。你可以浏览Dimension吗?尝试右键单击 - &gt;处理维度并比较脚本(Process Dimension -Date窗口顶部的脚本按钮)