Results 1 to 4 of 4

Thread: DTS Job failed

  1. #1

    Thread Starter
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    DTS Job failed

    Hello,

    Inicialy i had created a job to transfer all objects between 2 servers (that failed) , then i created 2 new jobs one that transfer all stored procedures (that's work) and another to transfer all tables (that's fails)

    I get the following error :

    Executed as user: ARES\SYSTEM. ...n OnStart: Copy Data from acessos to [dinefer].[dbo].[acessos] Step DTSRun OnStart: Copy Data from acessos_por_grupo to [dinefer].[dbo].[acessos_por_grupo] Step DTSRun OnStart: Copy Data from acessos2 to [dinefer].[dbo].[acessos2] Step DTSRun OnStart: Copy Data from actividades to [dinefer].[dbo].[actividades] Step DTSRun OnProgress: Copy Data from acessos2 to [dinefer].[dbo].[acessos2] Step; 1000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress: Copy Data from acessos2 to [dinefer].[dbo].[acessos2] Step; 2000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress: Copy Data from acessos_por_grupo to [dinefer].[dbo].[acessos_por_grupo] Step; 255 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 255 DTSRun OnFinish: Copy Data from acessos_por_grupo to [dinefer].[dbo].[acessos_por_grupo] Step ... Process Exit Code 60. The step failed.

    Any suggestion of what's might be causing the failure, thanks.

    Regards
    Jorge
    "The dark side clouds everything. Impossible to see the future is."

  2. #2
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016

    Re: DTS Job failed

    Are you running this DTS as a job, or executing it from the DTS Designer?
    Chris

    Master Of My Domain
    Got A Question? Look Here First

  3. #3

    Thread Starter
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: DTS Job failed

    Hi
    Its running has a shechuled job and i looked at the log file and found several errors similar to one below :

    Error: -2147467259 (80004005); Provider Error: 2627 (A43)

    Error string: Violation of PRIMARY KEY constraint
    'PK_actividades_pro_1__55'. Cannot insert duplicate key in object
    'actividades_pro'.

    Error source: Microsoft OLE DB Provider for SQL Server

    Help file:



    Help context: 0


    Shouldn't the dts job drop, recreate all the tables on destination and then copy all the rows?

    Regards
    Jorge
    Last edited by Asgorath; Jun 23rd, 2005 at 11:43 AM.
    "The dark side clouds everything. Impossible to see the future is."

  4. #4
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016

    Re: DTS Job failed

    Not necessarily. It depends on how the DTS was created. I believe that via the DTS Import/Export wizard, there is an option to drop and recreate a table if it already exists. There is also an option to overwrite the existing data (basically truncate the table and insert the new rows), or append the new data to the existing data, which sounds like your case.

    I would suggest modifing the DTS and add an SQL task that truncates the tables, or rebuild the package such that the tables are always dropped/recreated or the data always overwrites any existing data.
    Chris

    Master Of My Domain
    Got A Question? Look Here First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width