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.





11 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
  6. "Enhance your career with salesforce dev training
    designed to equip you with hands-on skills in Salesforce development. Learn to build, customize, and deploy robust Salesforce solutions efficiently."

    ReplyDelete
  7. "Enhance your data skills with power bi classes online
    designed for beginners and professionals alike. Learn interactive dashboards, reports, and analytics at your own pace from expert instructors."

    ReplyDelete
  8. "Enhance your career with salesforce administrator classes
    designed to teach you everything from basic setup to advanced automation."

    ReplyDelete