Getting error when using Excel Destination


i getting error when using  

transferring data

oledb source  to excel destination

i using dynamic file connection means each time new file generated @ desination folder getting error given above

path stored in variable

@[user::path] :c/admin/

for creating excel file using expression

excelfile path: @[user::path] +(dt_str,4,1252)
datepart("yyyy",getdate()) +right("0"+(dt_str,4,1252)
datepart("m",getdate()),2) +right("0" + (dt_str,4,1252)
datepart("d",getdate()),2)+ right("0" + (dt_str,4,1252)
datepart("hh",getdate()),2)+right("0" + (dt_str,4,1252)
datepart("mm",getdate()),2)+right("0" + (dt_str,4,1252)
datepart("ss",getdate()),2)+".xls"

now when clicking on exceldestination component mapping getting error

=================================

error @ insertingdatafromexcel destination [excel destination [113]]: ole db error has occurred. error code: 0x80040e37.

error @ insertingdatafromexcel destination [excel destination [113]]: opening rowset "excel destination" failed. check object exists in database.

 (microsoft visual studio)

===================================

exception hresult: 0xc02020e8 (microsoft.sqlserver.dtspipelinewrap)

------------------------------
program location:

   @ microsoft.sqlserver.dts.pipeline.wrapper.cmanagedcomponentwrapperclass.reinitializemetadata()
   @ microsoft.datatransformationservices.dataflowui.dataflowcomponentui.reinitializemetadata()
   @ microsoft.datatransformationservices.dataflowui.dataflowadapterui.connectionpage_saveconnectionattributes(object sender, connectionattributeseventargs args)

i have deleted file folder , think dynamic means new .xls file generated whenever run package getting error


error @ data flow task [excel destination [88]]: ole db error has occurred. error code: 0x80040e37.

error @ data flow task [excel destination [88]]: opening rowset "excel destination" failed. check object exists in database.

 (microsoft visual studio)

===================================

exception hresult: 0xc02020e8 (microsoft.sqlserver.dtspipelinewrap)

------------------------------
program location:

   @ microsoft.sqlserver.dts.pipeline.wrapper.cmanagedcomponentwrapperclass.reinitializemetadata()
   @ microsoft.datatransformationservices.dataflowui.dataflowcomponentui.reinitializemetadata()
   @ microsoft.datatransformationservices.dataflowui.dataflowadapterui.connectionpage_saveconnectionattributes(object sender, connectionattributeseventargs args)

what have remove error
not getting such kind of error have tried again n again getting same error

provide me link error .


it's simple: make sure there excel file present correct filename when want edit excel destination.

i guess don't have edit package every hour, don't you?


mcts, mcitp - please mark posts answered appropriate.



SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........