Saturday, May 29. 2010
XML Task - Validating Data
Comments
Display comments as
(Linear | Threaded)
Hi Reza,
I was googling a query i had regarding SSIS and found ur blog, loved ur blog and thus thought of mailing u.
I have a Flat File Connection and I want to assign the Column and Row Delimiter automatically.
However since the Column is not exposed, i am not able to do so. I tried writing the script task from here(http://www.sql-server-performance.com/articles/dba/import_text_files_ssis_p3.aspx)
However when i am trying the same i get an error (Row.Line-> Line is not a part of script component)
My requirement is this:
All configurations including delimiters should be picked up from XML based configurations instead of database.
I tried modifying the Package.XML (Added Property.Expression to the delimiter column)but once i repopen the XML File the changes are gone i.e. it reverts back to the normal file.
I read on a website that modifying the Config file helps, though the solution was not given.
I tried modifying the script (above script), tried using lineinput, however i get the same error saying linescript is not a part of script component)
Can you help?
My Env is SQL Server 2005 BIDS.
Waiting to hear from u!
Nimish
#1
Nimish
on
2010-05-31 13:28
(Reply)
Hi Nimish,
I think better option is to use expressions on your flat file connection manager. Did you tried them before?
you can right click on flat file connection manager, and select properties, then go to properties window, find EXPRESSIONS
in expressions window, select property as RowDelimiter for example, now you can choose an expression to set it, this expression can be a package variable.
I think you know how to locate package variables in ssis config files.
Does this make sense to you ?
Don't hesitate to ask me if you have problems on it.
Regards,
Reza.
#1.1
Reza Rad
on
2010-06-01 13:16
(Reply)
and about your script, Row.Line means Line output column in your script component. in other words you should create a Line output column in script component. Did you created it?
#1.2
Reza Rad
(Homepage)
on
2010-06-01 13:18
(Reply)






I wrote about Validation with XML Task in SSIS here before, now I want to write about XSLT in this post. XSLT is an acronym of eXtensible Stylesheet Language Transformation. XSLT can transform given XML document to new style. this is very good way f
Tracked: Jun 05, 01:25