【问题标题】:Why is my Rhino ETL process failing silently?为什么我的 Rhino ETL 过程会静默失败?
【发布时间】:2012-01-09 20:00:41
【问题描述】:

我有以下 Rhino ETL 进程,它会静默失败。该过程执行得很好,但是没有对数据库进行往返,没有抛出异常,也没有插入任何数据。

public class UpdateLeadSources : EtlProcess 
{


    protected override void Initialize()
    {
        Register(new ConventionInputCommandOperation("MoxyVote")
                     {
                         Command = "Select * from dbo.LeadSources"
                     });
        Register(new ConventionOutputCommandOperation("MoxyDataWarehouse")
                     {
                         Command = "Insert into dbo.LeadSources (LeadSourceID, LeadSourceCategoryID, LeadSourceCode, LeadSourceFriendlyName, Description, IsActive, Password, TopEntityID, TopEntityTypeID, CampaignID) Values(@LeadSourceID, @LeadSourceCategoryID, @LeadSourceCode, @LeadSourceFriendlyName, @Description, @IsActive, @Password, @TopEntityID, @TopEntityTypeID, @CampaignID)"
                     });

    }

}

【问题讨论】:

    标签: rhino-etl


    【解决方案1】:

    rhino etl 将捕获所有异常,记录它们并将它们添加到错误集合中,您可以从 EtlProcess 类访问该集合。 https://github.com/hibernating-rhinos/rhino-etl/blob/master/Rhino.Etl.Core/EtlProcess.cs#L161 第 161 行 GetAllErrors()

    【讨论】:

    • 我错误地配置了我的日志记录类,所以它没有显示出来。我的根本问题是提供者属性中的类名不够具体。
    • +1 表示行号查询字符串参数!我不知道 github 可以做到这一点!
    猜你喜欢
    • 1970-01-01
    • 2011-07-26
    • 1970-01-01
    • 2020-08-17
    • 2010-11-23
    • 1970-01-01
    • 1970-01-01
    • 2021-07-25
    • 1970-01-01
    相关资源
    最近更新 更多