我有以下Rhino ETL进程无声地失败。该过程执行得很好,但是没有对DB进行往返,没有抛出异常并且没有插入任何数据。
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)"
});
}
}
答案 0 :(得分:4)
rhino etl将捕获所有异常,记录它们并将它们添加到可以从EtlProcess类访问集合的错误集合中。 https://github.com/hibernating-rhinos/rhino-etl/blob/master/Rhino.Etl.Core/EtlProcess.cs#L161第161行GetAllErrors()