SSIS - How To Debug an SSIS Package That Has Failed in Production

Task:

You are working an ETL developer in an organization; you are responsible for creating different SSIS Packages for data loads and keep them running smooth in production. In case of failure, figure out the issue and work the team to solve the problem.

So how it starts?

All Lazy:

What do I mean by that?
 I have worked in organizations where people develop SSIS Packages, Deploy SSIS Packages and then forget about them. Nobody noticed that the Job is failing every day till business users stop by to tell you that they are not finding updated data.

Smart DBA:

If your organization has the team of DBAs or a DBA who really take care of things seriously. When the job will be created for your SSIS Package then he will add notification to it on failure.  So if your package failed at night or day, DBA will be the person who will notify you that the job has failed with some basis error information that he received or got from SQL Server Agent Job History.

Smart Me!

As ETL developer if I am smart and follow best practices, when I deploy my SSIS Package, I will add following items to it
  1. ·         On Failure Email Notification
  2. ·         Logging for detail error information

If I have done that then if any of SSIS Package fails, I will get the email. I can add the team members in email so if I am not around then other developers do get the email and start looking into the problem.

From Where to Get Error Information?

Here are the different ways to get error information once your SSIS Package failed.
  • If you have not set up error email notification in your SSIS Package, Then DBA will be sending you the initial information from Job History (SQL Server Agent Job). Your company might be using different scheduler than SQL Server Agent. Most of the scheduler those I have worked with do provide Job History and Error Message Information.
  •  If you have set up the Error Email notification from SSIS Package itself, you will get the email from your SSIS Package with error information. Here is the link how to set up that.
  •  If we want to further look into error details, we need to check the logging file or log records in table. SSIS Provide different type of logging such as text file, SQL server table, xml etc. Here is the link how to set up Logging in SSIS Package.  You should have access to see the information. If your SSIS Package is logging execution information to file system, then you need read permission to the folder where the log files are created. If you are logging information in SQL Server Table then you need read permission on table. When you deploy your Package to Production, Make sure you get the permissions so when your SSIS Package fails, you can go to those locations and look into log files or table to find out error.


What’s next?

Once you have all the error information then you take steps accordingly
Let’s consider few of common issues

1-Connection Failed:

If package was not able to make connection to Database or file due to network issue, you can ask the DBA to rerun the SSIS Package after making sure it is saved to rerun.

2- File is being used by Another Process:

If your SSIS Package is reading some Excel file to load data and that file is opened by another user, you can get this type of error. In those scenarios, you have to find out who has opened the file and then ask them to close the file or make a copy and leave the original for SSIS Package to use.

3-Row yielded no match during lookup:

Your incoming data could not find the matching record from lookup and you have configured the lookup to fail in case data does not match. In this case you can make sure the lookup table (reference Table) has the required data for match.

These were few of the examples just to start debugging. There could be problems in which you have to take your SSIS Package from Production and run with same data in UAT/QA to further debug issue. You can use Break Points, Data Viewer etc. to further look into the issue by debugging your SSIS Package in BIDS or SSDT.


To summarize this topic, I will suggest my fellow ETL developers to implement Error Notification in SSIS Package and ask the DBA to add notification to Job on failure. Always have Logging setup for your SSIS Package. If you have above in your SSIS Package, Finding Error will be much easier and less time consuming.




39 comments:

  1. this is just the info I am finding everywhere. but thanks for the nice blog.
    Best Aviation Training Institute in Chennai

    ReplyDelete
  2. I never comment on blogs but your article is so best that I never stop myself to say something about it. You’re amazing Man, I like it Database Errors... Keep it up

    ReplyDelete
  3. Great post with exclusive information. This blog will really helpful for me to develop my skills in a right way. Thanks for sharing, keep update with your blogs.
    how to store multiple select values in database using php

    ReplyDelete
  4. The languages which are used in this field are Python, Java, SQL, etc. Before you step into a world of data science, it is important that you have a good amount of knowledge of mathematics and computer science along with these languages. Both can be considered as the basic requirement of this subject. data science course in hyderabad

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Nicely written-This post is equally informative as well as interesting. Thanks for nice information you have shared. Get the Web Design Services for Small Businesses in New Jersey at an affordable price. for more information visit our site. We provide Responsive Web Design Services in New Jersey at an affordable price, for more information, visit our site.

    ReplyDelete
  8. Too Good article ,Thank You For Sharing.
    Keep Updating...

    MSBI Training

    ReplyDelete
  9. Excellent information, I am heartily thankful to you that you have shared this information with us. I got some different kind of knowledge from your article, and it is helpful for everyone. Thanks for share it. creative agency jakarta

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Packaging refers to the product of the container or the external shell and dressings and other protective substances, is an important aspect of product management. A fine jewelry packaging can give guests a bright spot effect, so that customers leave the impression of the product, thereby increasing its sales. Creative Safety Supply

    ReplyDelete
  12. This post is really awesome. Genuinely i like this blog. It gives me more useful information. I hope you share lots of things with us .victoria website design

    ReplyDelete
  13. Finish the Selenium Training in ChennaiM from Infycle Technologies, the best software training institute in Chennai which is providing professional software courses such as Data Science, Artificial Intelligence, Java, Hadoop, Big Data, Android, and iOS Development, Oracle, etc with 100% hands-on practical training. Dial 7502633633 to get more info and a free demo and to grab the certification for having a peak rise in your career.

    ReplyDelete
  14. I prefer high-quality content, which I discovered in your article about web designers and developers australia. The information you've provided is useful and important to us. Continue to post articles like these. Thank you very much.

    ReplyDelete
  15. Thanks for giving so much of Information. There are many Students looking for online teaching jobs in india from home

    ReplyDelete
  16. Very nice post, impressive. its quite different from other posts. Thanks for sharing.
    Landlord Tenant Dispute Lawyer in Ontario

    ReplyDelete
  17. I have joined your rss feed and look forward to seeking more of your magnificent post. Also, I have shared your site in my social networks! Body building Product Review

    ReplyDelete
  18. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Notary Public Lawyer in Cambridge

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. The first-time home buyer’s tax credit allows you to claim back $750 on your tax return after buying your first home in Canada. what you need to know. Tax Credit For First Time Home Buyers

    ReplyDelete
  23. If you live in Prince Edward Island, British Columbia or Ontario then you might qualify for the land transfer tax rebate. what you need to know.Land transfer tax rebate calculator

    ReplyDelete
  24. A home buying guide for first-time buyers with current information and calculators and every step of the buying process. Home Buying Process in Canada

    ReplyDelete
  25. Beli Like Instagram jasa dan layanan like untuk Instagram Rp.5000 murah berkualitas (non-drop) - Jasa Like Instagram Tanpa Username dan Password, Jual Likes ig

    ReplyDelete
  26. China metalized polyester film suppliers have established themselves as reliable partners for businesses worldwide, providing timely delivery and excellent customer service. With a keen eye for quality control, these suppliers ensure that their products meet strict international standards, making them ideal partners for businesses looking for a reliable and consistent supply of metalized polyester films for their products.

    ReplyDelete
  27. Whether you are a student, working professional, or business owner seeking to optimize Excel and Advanced Excel Institute in Noida for better decision-making, APTRON Solutions provides the ideal platform to sharpen your skills. Enroll today and unlock the full potential of Excel with expert guidance, practical training, and industry recognition at APTRON Solutions, Noida. Boost your career prospects and excel in the competitive landscape with our specialized Excel courses.

    ReplyDelete