excel - Creating SSIS Package in SSDT. Conditional Split in Data Flow Task Causes Package To Break -
i'm trying export table sql server 2012 excel 2007 workbook.
the simple task ole db source -> excel destination works perfectly.
i have field called [pod assignment], want export 1 sheet in workbook if [pod assignment] equal "unknown", , sheet if it's not.
link ole db source conditional split.
i have output named "unknowns" condition "[pod assignment] == "unknown"". link the output "unknowns" excel destination.
at point, when run package, works should. rows exported correctly workbook, , count right. seen here:
[] http://imgur.com/ikcjcfy,rhnw8ax#0
now connect conditional split second excel destination output default output of conditional split. excel second destination uses same exact excel connection first. , data supposed exported different sheet in same workbook.
running fails. seen here:
[]: http://imgur.com/ikcjcfy,rhnw8ax#1
the task prematurely aborts on error.
i receive following error codes:
[excel destination 1 [101]] error: ssis error code dts_e_oledberror. ole db error has occurred. error code: 0x80004005. ole db record available. source: "microsoft office access database engine" hresult: 0x80004005 description: "cannot expand named range.".
[excel destination 1 [101]] error: ssis error code dts_e_inducedtransformfailureonerror. "excel destination 1.inputs[excel destination input]" failed because error code 0xc020907b occurred, , error row disposition on "excel destination 1.inputs[excel destination input]" specifies failure on error. error occurred on specified object of specified component. there may error messages posted before more information failure.
[ssis.pipeline] error: ssis error code dts_e_processinputfailed. processinput method on component "excel destination 1" (101) failed error code 0xc0209029 while processing input "excel destination input" (112). identified component returned error processinput method. error specific component, error fatal , cause data flow task stop running. there may error messages posted before more information failure. [ole db source [188]] error: setting end of rowset buffer failed error code 0xc0047020. [ssis.pipeline] error: ssis error code dts_e_primeoutputfailed. primeoutput method on ole db source returned error code 0xc0209017. component returned failure code when pipeline engine called primeoutput(). meaning of failure code defined component, error fatal , pipeline stopped executing. there may error messages posted before more information failure.
any appreciated. driving me crazy. don't understand why using 1 destination conditional split works when add second destination fails.
check excel destination empty of data (except header row if applicable).
i had hresult: 0x80004005 description: "cannot expand named range."
error , issue wasn't obvious:
- i had existing
union all
of 2 excel files single excel file - the first column 1 source number. other source alphanumeric.
- i changed source's first column new
derived column
, became alphanumeric. - (i neglected clean-up destination - still had existing data, first few rows of data numeric)
- the
union all
worked, destination failed (the source files showed red x)
i fixed "truncating" excel file, header row. (and recreate error setting few sample rows in column numeric). think i'll use empty excel file template , overwrite destination first (unless there's easier way?)
Comments
Post a Comment