2012-01-09 29 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

相關問題