Monday, April 7, 2014

Code: 0x00000001 Exception has been thrown by the target of an invocation.

Code: 0x00000001 Exception has been thrown by the target of an invocation error was thrown when I was trying access the excel files from script task in SSIS. The SSIS package works fine when running from development tool. But throws an error while called from SQL Server Agent job. This can be fixed be following steps

     1.       Go to Run and Launch DcomCnfg.exe



      2.       In the component services  window  , Navigate to Component Services à Computers à My Computer à DCOM Config


        3.       Find “Microsoft Excel Application” on right pan. Right click and select properties.



        4.       In the properties go to Identity tab. Choose the option “This User” and provide the user and password with which the excel will be launched while called programmatically.





9 comments:

  1. very fascinating post thank you for sharing..

    ReplyDelete
  2. It works like magic. Thank you so much

    ReplyDelete
  3. Great stuff! This fixed our problem, thank you for sharing!

    ReplyDelete
  4. Nice information.
    360DigiTMG has developed the Certification Program in Healthcare Analytics. This course is meticulously designed to suit both Healthcare practitioners, IT Business Analysts and Data Scientists.
    https://360digitmg.com/india/life-sciences-and-healthcare-analytics-certification-programme
    healthcare analytics

    ReplyDelete
  5. On your place I would make a video how to make such exception. From here https://soclikes.com you can get many likes and views if you post your video on youtube

    ReplyDelete