2017-11-29 4 views
0

環境:SQL Server 2008 R2のSSISは、/、SSRS有効な変数

私は、SQL Server 2008 R2上で実行されているスケジュールされたジョブでこのエラーを取得しておいてください。

Error: Code: 0xC02020EE  Source: Data Flow Task - Fix Missing this and that Row Count - This Not Fixed [148]  Description: The variable "MyNameSpace::MyVariableName" specified by VariableName property is not a valid variable. Need a valid variable name to write to. End Error 

ここで間違っている可能性はありません。変数は、このようdtsxで宣言されている:

<DTS:Variable> 
    <DTS:Property DTS:Name="Expression"/> 
    <DTS:Property DTS:Name="EvaluateAsExpression">0</DTS:Property> 
    <DTS:Property DTS:Name="NameSpace">MyNameSpace</DTS:Property> 
    <DTS:Property DTS:Name="ReadOnly">0</DTS:Property> 
    <DTS:Property DTS:Name="RaiseChangedEvent">-1</DTS:Property> 
    <DTS:Property DTS:Name="IncludeInDebugDump">6789</DTS:Property> 
    <DTS:VariableValue DTS:DataType="3">0</DTS:VariableValue> 
    <DTS:Property DTS:Name="ObjectName">MyVariableName</DTS:Property> 
    <DTS:Property DTS:Name="DTSID">{F6C30C52-3BDA-45D6-862B-10405215FABC}</DTS:Property> 
    <DTS:Property DTS:Name="Description"/> 
    <DTS:Property DTS:Name="CreationName"/> 
</DTS:Variable> 

そして、それはこのように使用されている:

<component id="148" name="Row Count - IDs Not Fixed" componentClassID="{150E6007-7C6A-4CC3-8FF3-FC73783A972E}" description="Counts the rows in a dataset." localeId="-1" usesDispositions="false" validateExternalMetadata="True" version="0" pipelineVersion="0" contactInfo="Row Count;Microsoft Corporation; Microsoft SqlServer v10; (C) Microsoft Corporation; All Rights Reserved; http://www.microsoft.com/sql/support;0"> 
        <properties> 
         <property id="149" name="VariableName" dataType="System.String" state="default" isArray="false" description="Specifies the variable to hold the row count." typeConverter="" UITypeEditor="" containsID="false" expressionType="None">MyNameSpace::MyVariableName</property> 
        </properties> 
        <inputs> 
         <input id="150" name="Row Count Input 1" description="" hasSideEffects="true" dangling="false" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed"> 
          <externalMetadataColumns isUsed="False"/> 
         </input> 
        </inputs> 
        <outputs> 
         <output id="151" name="Row Count Output 1" description="" exclusionGroup="0" synchronousInputId="150" deleteOutputOnPathDetached="false" hasSideEffects="false" dangling="false" isErrorOut="false" isSorted="false" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed"> 
          <externalMetadataColumns isUsed="False"/> 
         </output> 
        </outputs> 
       </component> 

誰かが私はこのエラーを回避するために修正する必要があるものを理解するのに役立つことはできますか?このエラーを検出することはこれまでのところ役立たなかった。

答えて

1

問題は、名前空間 "MyNameSpace"です。オンラインブックによると、唯一以下の2つのネームスペースが許可されています。

名前空間

統合サービスは2つの名前空間、ユーザおよびシステムを提供します。デフォルトでは、カスタム変数はUser名前空間にあり、システム変数はSystem名前空間にあります。ユーザー定義変数の追加の名前空間を作成してユーザー名前空間の名前を変更することはできますが、システム名前空間の名前を変更したり、システム名前空間に変数を追加したり、システム変数を別の名前空間に割り当てることはできません。

関連する問題