2012-01-09 55 views
2

我有以下犀牛ETL过程失败默默。该过程执行得很好,但是没有向数据库进行往返,也没有抛出异常,也没有插入任何数据。为什么我的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)" 
        }); 

    } 

} 

回答

4

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

+0

我错误地配置了我的日志记录类,所以没有显示出来。我的根本问题是提供者属性中的特定类名称不足。 – JeffreyABecker 2012-01-09 22:17:16

+2

对于行号查询字符串参数+1!我不知道github可以做到这一点! – 2012-09-17 15:20:31

相关问题