I am trying to get the Row count variable information which is there in a Data flow task to the Script task in the same package with no luck.
I have given the row count as an integer and declared at the package level so that i can call in the Script task but there is an error throwing when declaring the variable, below is the example
dts.variable("rownumercount").value
i also tried to convert this to string,
dim ncr as string = convert.tostring(dts.variable("rownumercount").value)
can any one please help, as i'm trying this to get the number if inserted records in a automatic email.
I see a couple of possible flaws in your example:
ReadOnlyVariables
orReadWriteVariables
properties of the Script Task.Variables
, notVariable
. Meaning that the correct syntax isDts.Variables("name_of_the_variable")
in VB.NET.rownumercount
, or is it actually the correctly spelledrownumBercount
.User::
. Try the following syntax:Dts.Variables("User::rownumbercount").Value
.