Task Scheduler Error

Posted on 2007-09-28
Last Modified: 2008-01-09
We have a perl script running on Windows 2003 Server (called via Task Scheduler) that parses CSV files and inserts the records into a SQL 2000 database.  

The Task Scheduler Log (SchedLgU.Txt) states: "Result: The task completed with an exit code of (9)," which according to, means "The storage control block address is invalid."

Any idea what might be causing this error or how we can rectify it?

Thanks - Matt

Question by:hennessym
    LVL 63

    Accepted Solution

    1) has this worked in the past ?
    2) Wat has changed ?

    3) Does a manual run have issues ?

    Mostly errors are caused by permissions of the task scheduled, and the context of the user.

    I hope this helps !
    LVL 39

    Assisted Solution

    Does the perl script create a log?  If not, could you change it so it does create a log - writing to the log every so often.  Then you could look at the log and see the last portion that ran successfully.
    LVL 1

    Author Comment

    Thanks, guys.  

    Turns out the error msg was generated because the script was trying to insert nulls into fields that were not setup to allow null values.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
    This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now