473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error with Flow Logic when creating a JOB

I have a sql server automatic job set up containing 2 steps.

First step is an Operating System Command (CmdExec) type job which
runs a .bat file which copies across a backup file to this machine.

The second step is a Transact -SQL Script (TSQL) type job which runs
the RESTORE DATABASE REPLACE command which restores the backup file
copied across in step 1.

Step 1's advanced option says: On Success Action: Goto Step [2]
Restore the database.

Step 2's advanced option says: On Success Action: Quit the job
reporting success.

On clicking ok I receive the error message:

"WARNING: The following job step(s) cannot be reached with current
flow logic: [1] Transfer the Backup File. Are you sure this is what
you want".

The job fails to run.

Both steps do run successfully when set up as two separate jobs - not
like this which has the two steps in one job.

Anyone have any ideas as to what the flow logic problem is?

Thiko!
Jul 20 '05 #1
2 28274
I would guess that you have somehow set Step 2 as the starting step in the
package. Look at the "properties" for the job, check the "steps" tabbed
dialog and verify that the "start step" in the dropdown list box in the
lower middle of this dialog is set to your step 1 task. Reset it, if
necessary.

Otherwise, you could throw the job away and start over, being careful to put
your step 1 in first and then your step 2 in second to help SQL server
understand what you're trying to do.

"Thiko" <bi*****@hotmail.com> wrote in message
news:b8*************************@posting.google.co m...
I have a sql server automatic job set up containing 2 steps.

First step is an Operating System Command (CmdExec) type job which
runs a .bat file which copies across a backup file to this machine.

The second step is a Transact -SQL Script (TSQL) type job which runs
the RESTORE DATABASE REPLACE command which restores the backup file
copied across in step 1.

Step 1's advanced option says: On Success Action: Goto Step [2]
Restore the database.

Step 2's advanced option says: On Success Action: Quit the job
reporting success.

On clicking ok I receive the error message:

"WARNING: The following job step(s) cannot be reached with current
flow logic: [1] Transfer the Backup File. Are you sure this is what
you want".

The job fails to run.

Both steps do run successfully when set up as two separate jobs - not
like this which has the two steps in one job.

Anyone have any ideas as to what the flow logic problem is?

Thiko!

Jul 20 '05 #2
Yes, you were right. Thank you very much :) It's all sorted now. I
had the start steps the wrong way round.

"DHatheway" <dl********@mmm.com.nospam> wrote in message news:<bj**********@tuvok3.mmm.com>...
I would guess that you have somehow set Step 2 as the starting step in the
package. Look at the "properties" for the job, check the "steps" tabbed
dialog and verify that the "start step" in the dropdown list box in the
lower middle of this dialog is set to your step 1 task. Reset it, if
necessary.

Otherwise, you could throw the job away and start over, being careful to put
your step 1 in first and then your step 2 in second to help SQL server
understand what you're trying to do.

"Thiko" <bi*****@hotmail.com> wrote in message
news:b8*************************@posting.google.co m...
I have a sql server automatic job set up containing 2 steps.

First step is an Operating System Command (CmdExec) type job which
runs a .bat file which copies across a backup file to this machine.

The second step is a Transact -SQL Script (TSQL) type job which runs
the RESTORE DATABASE REPLACE command which restores the backup file
copied across in step 1.

Step 1's advanced option says: On Success Action: Goto Step [2]
Restore the database.

Step 2's advanced option says: On Success Action: Quit the job
reporting success.

On clicking ok I receive the error message:

"WARNING: The following job step(s) cannot be reached with current
flow logic: [1] Transfer the Backup File. Are you sure this is what
you want".

The job fails to run.

Both steps do run successfully when set up as two separate jobs - not
like this which has the two steps in one job.

Anyone have any ideas as to what the flow logic problem is?

Thiko!

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mary Lei | last post by:
After instaling db2 8.2.2 on a solaris box I ran a script that drops a database and then creates it. This scripts runs fine under db2 8.2.1 on linux. With 8.2.2 I got a mysterious error about...
4
by: MLH | last post by:
< < < VERY LOW PRIORITY POST > > > When I'm creating a query in the QBE grid whose SQL looks like this... INSERT INTO tblOwners (OwnerFName, OwnerLName, OwnerAddr, OwnerCity, OwnerState,...
2
by: CroDude | last post by:
Heya all! I have a weird problem when creating a texture brush in a Paint event. When program gets to the line where I'm creating a new TextureBrush object, it crashes with OutOfMemory...
2
by: Patrick Spence | last post by:
(sorry 'bout the multipost) VS.NET 2003 v 7.1.3088 ..NET Framework v1.1.4322 XP Pro IIS 5.0 When I try to create a ASP.NET application, I get the following error... The Web server...
0
by: foo | last post by:
Hello, I have a form that I developed in a small simple project. The form runs fine by itself. When I try to create a new form that inherits from this form, the machine goes off in the weeds for...
1
by: Eric Voigt | last post by:
are there special settings applied to IIS5, when creating a webService in VS.NET? I wonder - because when I create a webService (let's call it webservice1) using VStudio.NET on my remote W2K...
9
by: Opa | last post by:
When creating a new web service, I get the following error: Visual Studio .net cannot create or open the application. Web site 'http://localhost/WDWS' not started. The World Wide Web Publish...
1
by: ReidarT | last post by:
The former post was wrong, the lines where concatenated so here it goes again. I am wrriting to a file (XML-format) and using FileOpen(1, "C:\vb\WebBrowser\WebBrowserControl\TESTFILE.XML",...
9
by: Joe Penora | last post by:
Hi All, How to add the HTML script when creating new ASPX page. After it is done I may need to add some Meta tags etc... but the html script is not there. Is there an option in the ASP.NET...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.