我正在尝试将一个 forloop 容器嵌套在另一个容器中。我不断收到不允许子元素的错误。
我如何嵌套for循环?
<ForLoop Name="For loop for Year">
<PrecedenceConstraints>
<Inputs>
<Input OutputPathName="Find count of rows.Output" SsisName="No data exist" PathAnnotation="ConstraintName" EvaluationOperation="Expression" EvaluationValue="Success" Expression="@[User::CountRows]==0" />
</Inputs>
</PrecedenceConstraints>
<InitializerExpression>@StartYear</InitializerExpression>
<LoopTestExpression><![CDATA[@StartYear <= @EndYear]]></LoopTestExpression>
<CountingExpression><![CDATA[@StartYear = @StartYear + 1]]></CountingExpression>
<ForLoop Name="For loop for Month">
<InitializerExpression>@StartMonth</InitializerExpression>
<LoopTestExpression><![CDATA[@StartMonth <= @EndMonth]]></LoopTestExpression>
<CountingExpression>@StartMonth = @StartMonth + 1</CountingExpression>
</ForLoop>
</ForLoop>