2012-11-30 60 views
-1

我正在學習SSIS的指導,並且在實際的ssis工作開始之前運行一些xmla腳本。運行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

可能是什麼問題?

回答

4

尺寸的ID不一定與名稱相同。雙擊日期維度,您將看到ID爲暗淡時間。

該錯誤指出日期維度尚未處理。你可以瀏覽維度?嘗試右鍵單擊 - >針對維度的過程並比較腳本(過程維度頂部的腳本按鈕 - 日期窗口)