SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error during validation

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error during validation
Author Message
James Bumgarner



Joined: 19 Jun 2002
Posts: 9

Post Error during validation Reply with quote

I was trying to validate a job, and I received an error message that I've never seen before. The dialog box says "Line 0: ." Any idea what this means? The script used to validate properly, but doesn't any more.

Wed Jun 19, 2002 4:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Error during validation Reply with quote

Can you reproduce this message after restarting the 24x7

: I was trying to validate a job, and I received an error message that I've
: never seen before. The dialog box says "Line 0: ." Any idea what
: this means? The script used to validate properly, but doesn't any more.

Wed Jun 19, 2002 4:15 pm View user's profile Send private message
James Bumgarner



Joined: 19 Jun 2002
Posts: 9

Post Re: Error during validation Reply with quote

I have restarted 24x7, I have restarted the PC, and I have also copied the script to another job. All with the same results.

: Can you reproduce this message after restarting the 24x7

Wed Jun 19, 2002 4:22 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Error during validation Reply with quote

Can you post your script here?

: I have restarted 24x7, I have restarted the PC, and I have also copied the
: script to another job. All with the same results.

Wed Jun 19, 2002 4:26 pm View user's profile Send private message
James Bumgarner



Joined: 19 Jun 2002
Posts: 9

Post Re: Error during validation Reply with quote

The @SCRIPT lines are attempts to get a remote agent to run using functions in the script library, but that is a separate issue.

// Job: Kroger Receive
// Purpose: calls various sub-functions to receive data, filemod, and place on
// EEC (among other things, see comments in other scripts)
// Written on: 6/10/02
// Last Modified: 6/11/02
// Written by: Jason K. Wadzinski (for Kroger), modified by James Bumgarner
// Run: remotely

// For each hub, only these variables will need to be changed
Dim hub, string, "Kroger"
Dim beginTime, time, 08:00
Dim endTime, time, 20:00
Dim holidayCheck, boolean, true
Dim weekendCheck, boolean, true
Dim receivedFile, string, "c:\\ECADMIN\\in_krog.edi"
Dim action, string, "5"
Dim bisyncPath, string, "c:\\program files\\3780link\\"
Dim script, string, "KRO_RCV.S"
Dim inFile, string, "c:\\F1_WIN\\KROGNET\\in_edi.dat"
Dim noBatchMessage, string, "NO BATCHES FOR TRANSMISSION"
Dim archivePath, string, "c:\\ecadmin\\kroger\\archive\\"

Dim isValidRunTime, boolean
Dim thereIsData, boolean
Dim scriptIsRunning, boolean
Dim dataReceivedOkay, boolean
Dim stampedFile, string
Dim message, string
Dim filemodError, boolean
Dim wasArchived, boolean
Dim wasMoved, boolean
Dim envelopesReceived, number
Dim receiveError, number

//----------------------------------------------------\\
// These scripts have been written and tested \\
//----------------------------------------------------\\

START_JOB:

CHECK_VALID_RUN_TIME:
// 01-Check to see if it is time to run the receive (work day, not a holiday, whatever)
//@SCRIPT:x:\validRunTime.jal
validRunTime( beginTime, endTime, holidayCheck, weekendCheck, isValidRunTime )
ConcatEx( "validRunTime: ", isValidRunTime, message )
MessageBox( message )

CHECK_DATA_EXISTS:
// 02-Check to see if data exists
dataExists( hub, receivedFile, thereIsData )
//@SCRIPT:x:\dataExists.jal
ConcatEx( "dataExists: ", thereIsData, message )
MessageBox( message )
If( thereIsData, END_JOB, CHECK_BISYNC_RUNNING )

CHECK_BISYNC_RUNNING:
// 03-Check to see if a bisync script is running
bisyncRunning( hub, action )
//@SCRIPT:x:\bisyncRunning.jal

RUN_SCRIPT:
// 04-Delete status byte and bisync log, run bisync script
bisyncReceive( hub, bisyncPath, script )
//@SCRIPT:x:\bisyncReceive.jal

CHECK_STATUS_LOG:
// 05-Check status log for errors
checkForErrors( hub, bisyncPath, receivedFile, receiveError )
//@SCRIPT:x:\checkForErrors.jal
ChooseCase( receiveError, CHECK_DATA )
Case 0
GoTo CHECK_DATA
Case 1
GoTo FATAL_ERROR
Case 2
GoTo CHECK_BISYNC_RUNNING
Case 3
GoTo CHECK_BISYNC_RUNNING
Case 4
GoTo CHECK_BISYNC_RUNNING
Case 5
GoTo CHECK_BISYNC_RUNNING
Case 99
ConcatEx( hub, ": unknown error found in bisync log" , message )
LogAddMessageEx( "ERROR", 0, hub, message )
Goto FATAL_ERROR

CHECK_DATA:
// 06-Check to see if any data was received (NO BATCHES FOR TRANSMISSION)
checkData( hub, receivedFile, noBatchMessage, dataReceivedOkay )
//@SCRIPT:x:\checkdata.jal
ConcatEx( "checkData: ", dataReceivedOkay, message )
MessageBox( message )

ARCHIVE_DATA:
// 07-Archive the original data
archiveData( hub, receivedFile, archivePath, wasArchived )
//@SCRIPT:x:\archiveData.jal

INMOD_DATA:
// 08-Incoming filemod the data
filemod( hub, "in", receivedFile, inFile, "~", TRUE, FALSE, 80, filemodError)
//@SCRIPT:x:\filemod.jal
If( filemodError, FATAL_ERROR, POST_TO_EEC )

POST_TO_EEC:
// 10-Post to EEC
// Change to FileMoveEx once you have verified data from EEC and hub is the same
FileCopyEx( inFile, "V:\\EEC\\PreProcess", wasMoved )
If( wasMoved, NOTIFY, FATAL_ERROR )

//-------\\
// To Do \\
//-------\\
LOG_DATA:
// 09-Log the number of envelopes received
//logData( hub, inFile, envelopesReceived )
NOTIFY:
// 11-Notify someone that there is data to load
MessageBox( "Data exists, process incoming" )

//------------------------------------------------------------------------------

Goto END_JOB

FATAL_ERROR:
// The only time this section should be processed is if something seriously
// goes wrong. Examples include:
// --postToEEC: unable to move to EEC (down?)
// --checkForErrors: dropped file
ConcatEx( hub, ": fatal error. STOPPING RECEIVE", message )
LogAddMessageEx( "ERROR", 47, hub, message )

END_JOB:
Exit

: Can you post your script here?

Wed Jun 19, 2002 4:28 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Error during validation Reply with quote

Commenting @SCRIPT doesn't help because the referenced files are inserted into the script body before the script is parsed or validated... using simple @SCRIPT tag substitution just like all other @ macro-parameters.

Here is my explanation for the error.
One of the referenced files has a syntax error, but the Editor cannot display the error line in the current script which is leading to "line 0" error (the actual error is found outside of the current script).

: The @SCRIPT lines are attempts to get a remote agent to run using functions
: in the script library, but that is a separate issue.

: // Job: Kroger Receive
: // Purpose: calls various sub-functions to receive data, filemod, and place
: on
: // EEC (among other things, see comments in other scripts)
: // Written on: 6/10/02
: // Last Modified: 6/11/02
: // Written by: Jason K. Wadzinski (for Kroger), modified by James Bumgarner
: // Run: remotely

: // For each hub, only these variables will need to be changed
: Dim hub, string, "Kroger"
: Dim beginTime, time, 08:00
: Dim endTime, time, 20:00
: Dim holidayCheck, boolean, true
: Dim weekendCheck, boolean, true
: Dim receivedFile, string, "c:\\ECADMIN\\in_krog.edi"
: Dim action, string, "5"
: Dim bisyncPath, string, "c:\\program files\\3780link\\"
: Dim script, string, "KRO_RCV.S"
: Dim inFile, string, "c:\\F1_WIN\\KROGNET\\in_edi.dat"
: Dim noBatchMessage, string, "NO BATCHES FOR TRANSMISSION"
: Dim archivePath, string, "c:\\ecadmin\\kroger\\archive\\"

: Dim isValidRunTime, boolean
: Dim thereIsData, boolean
: Dim scriptIsRunning, boolean
: Dim dataReceivedOkay, boolean
: Dim stampedFile, string
: Dim message, string
: Dim filemodError, boolean
: Dim wasArchived, boolean
: Dim wasMoved, boolean
: Dim envelopesReceived, number
: Dim receiveError, number

: //----------------------------------------------------\\
: // These scripts have been written and tested \\
: //----------------------------------------------------\\

: START_JOB: CHECK_VALID_RUN_TIME: // 01-Check to see if it is time to run the
: receive (work day, not a holiday, whatever)
: //@SCRIPT:x:\validRunTime.jal
: validRunTime( beginTime, endTime, holidayCheck, weekendCheck, isValidRunTime
: )
: ConcatEx( "validRunTime: ", isValidRunTime, message )
: MessageBox( message )

: CHECK_DATA_EXISTS: // 02-Check to see if data exists
: dataExists( hub, receivedFile, thereIsData )
: //@SCRIPT:x:\dataExists.jal
: ConcatEx( "dataExists: ", thereIsData, message )
: MessageBox( message )
: If( thereIsData, END_JOB, CHECK_BISYNC_RUNNING )

: CHECK_BISYNC_RUNNING: // 03-Check to see if a bisync script is running
: bisyncRunning( hub, action )
: //@SCRIPT:x:\bisyncRunning.jal

: RUN_SCRIPT: // 04-Delete status byte and bisync log, run bisync script
: bisyncReceive( hub, bisyncPath, script )
: //@SCRIPT:x:\bisyncReceive.jal

: CHECK_STATUS_LOG: // 05-Check status log for errors
: checkForErrors( hub, bisyncPath, receivedFile, receiveError )
: //@SCRIPT:x:\checkForErrors.jal
: ChooseCase( receiveError, CHECK_DATA )
: Case 0
: GoTo CHECK_DATA
: Case 1
: GoTo FATAL_ERROR
: Case 2
: GoTo CHECK_BISYNC_RUNNING
: Case 3
: GoTo CHECK_BISYNC_RUNNING
: Case 4
: GoTo CHECK_BISYNC_RUNNING
: Case 5
: GoTo CHECK_BISYNC_RUNNING
: Case 99
: ConcatEx( hub, ": unknown error found in bisync log" , message )
: LogAddMessageEx( "ERROR", 0, hub, message )
: Goto FATAL_ERROR

: CHECK_DATA: // 06-Check to see if any data was received (NO BATCHES FOR
: TRANSMISSION)
: checkData( hub, receivedFile, noBatchMessage, dataReceivedOkay )
: //@SCRIPT:x:\checkdata.jal
: ConcatEx( "checkData: ", dataReceivedOkay, message )
: MessageBox( message )

: ARCHIVE_DATA: // 07-Archive the original data
: archiveData( hub, receivedFile, archivePath, wasArchived )
: //@SCRIPT:x:\archiveData.jal

: INMOD_DATA: // 08-Incoming filemod the data
: filemod( hub, "in", receivedFile, inFile, "~", TRUE,
: FALSE, 80, filemodError)
: //@SCRIPT:x:\filemod.jal
: If( filemodError, FATAL_ERROR, POST_TO_EEC )

: POST_TO_EEC: // 10-Post to EEC
: // Change to FileMoveEx once you have verified data from EEC and hub is the
: same
: FileCopyEx( inFile, "V:\\EEC\\PreProcess", wasMoved )
: If( wasMoved, NOTIFY, FATAL_ERROR )

: //-------\\
: // To Do \\
: //-------\\
: LOG_DATA: // 09-Log the number of envelopes received
: //logData( hub, inFile, envelopesReceived )
: NOTIFY: // 11-Notify someone that there is data to load
: MessageBox( "Data exists, process incoming" )

:
: //------------------------------------------------------------------------------

: Goto END_JOB

: FATAL_ERROR: // The only time this section should be processed is if
: something seriously
: // goes wrong. Examples include: // --postToEEC: unable to move to EEC
: (down?)
: // --checkForErrors: dropped file
: ConcatEx( hub, ": fatal error. STOPPING RECEIVE", message )
: LogAddMessageEx( "ERROR", 47, hub, message )

: END_JOB: Exit

Wed Jun 19, 2002 4:51 pm View user's profile Send private message
James Bumgarner



Joined: 19 Jun 2002
Posts: 9

Post Re: Error during validation Reply with quote

That fixed it. However, I did notice something else: if you use @SCRIPT to reference a file that does not exist, you will also get that same error, rather than a "file does not exist" message.

: Commenting @SCRIPT doesn't help because the referenced files are inserted
: into the script body before the script is parsed or validated... using
: simple @SCRIPT tag substitution just like all other @ macro-parameters.

: Here is my explanation for the error.
: One of the referenced files has a syntax error, but the Editor cannot display
: the error line in the current script which is leading to "line
: 0" error (the actual error is found outside of the current script).

Sun Jun 23, 2002 3:03 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.