ssis脚本组件任务中的异步输出

时间:2016-12-21 16:00:11

标签: c# ssis

在我的脚本组件任务中,我收到错误: "在缓冲区中不包括任何行。必须在AddRow方法的帮助下添加一行。"

我已经在我的C#脚本中添加了AddRow方法,这是我的代码:

public override void Input0_ProcessInputRow(Input0Buffer Row)
{

   if (Row.Year.Equals(2014) || Row.Year_IsNull == true)
   {
         Otput2014Buffer.AddRow();

         //Transformation Part
         BudgetTotal2014 = ((Row.VpBudgetEVL2014 != null) ? Row.VpBudgetEVL2014 : 0) +  
                                       ((Row.VpBudgetEVG2014 != null) ? Row.VpBudgetEVG2014 : 0) + 
                                       ((Row.VpBudgetEVP2014 != null) ? Row.VpBudgetEVP2014 : 0) +
                                      ((Row.VpBudgetEVB2014 != null) ? Row.VpBudgetEVB2014 : 0);

        //Assiging values to Output Buffer
         Otput2014Buffer. BudgetTotal2014 = BudgetTotal2014;
    }
    else if (Row.Year.Equals(2015) || Row.Year_IsNull == true)
    {
         Otput2015Buffer.AddRow();

         //Transformation Part
         BudgetTotal2015 = ((Row.VpBudgetEVL2015 != null) ? Row.VpBudgetEVL2015 : 0) +  
                                       ((Row.VpBudgetEVG2015 != null) ? Row.VpBudgetEVG2015 : 0) + 
                                       ((Row.VpBudgetEVP2015 != null) ? Row.VpBudgetEVP2015 : 0) +
                                      ((Row.VpBudgetEVB2015 != null) ? Row.VpBudgetEVB2015 : 0);

        //Assiging values to Output Buffer
         Otput2015Buffer. BudgetTotal2015 = BudgetTotal2015;
     }
}

任何建议可能是什么原因。 提前谢谢..

0 个答案:

没有答案