Quantcast
Channel: Microsoft SQL Server Community Samples: Integration Services
Viewing all articles
Browse latest Browse all 582

Commented Unassigned: Issue EzExecSqlTask [19925]

$
0
0
EzApi is used to create SSIS package, package reads excel file through oledb connection manager(microsoft.ace.oledb.12.0) When i create EzExecSQLTask object after dataflow that reads the excel file, i got the exception : "object does not match the target type"

After Debugging the EzApi code i found below line is generating the exception

host.Properties["TimeOut"].SetValue(host, value);

it seemed that when the property is set through reflection it doesn't find the target object.

Code works fine on widows xp machine , but on windows Server 2012 its causing the issue.

Microsoft.ace.oledb.12.0 32 bit is installed on both machines
please help.... we can move any further.
Comments: ** Comment from web user: hansvonkeman **


I have an issue at exactly the same line of code that _could_ be related.
I'm adding a EzExecSqlTask to a EzSrcDestPackage<EzOleDbSource, EzSqlOleDbCM, EzOleDbDestination, EzSqlOleDbCM> to truncate the target table before the dataflow
Should be straight forward but it's baffles me.

I'm running windows8, x64, sql2012, vs2012.
The message I get is : System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. From a unit test, running in debug there's never a problem, the first run is never a problem, the second run always ends up in error.
To me it looks like the Microsoft.SqlServer.Dts.Runtime.Taskhost of EzTask is unloaded, but not complete gone. What to do?


Viewing all articles
Browse latest Browse all 582

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>