SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Mailsend timeout when body is dynamic

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Mailsend timeout when body is dynamic
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Mailsend timeout when body is dynamic Reply with quote

Its pretty consistant with the few jobs i have :

When generating the various parts of a mailsend function, I happen to have the 'message' portion (the email body) as a variable.

This variable is a string, and was complied together using concatex to make the message. The actuall text is no more then a paragraph, but whenever I send a message using it, the job returns an Error: Timeout message on the mailsend line, and sends the mail :twice:

Is there anything around max size of a mail message body via 24x7 ?

Tue Oct 11, 2005 8:00 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Mailsend timeout when body is dynamic Reply with quote

Sorry for late reply, I somehow missed your message.

Here is what you need to do. Enable the tracing option in the Tools/Options menu; Log page. Run your job. Post contents of the script.log file here so we can verify it and tell you waht went wrong. Before posting the text replace any sensitive data with some symbols.

: Its pretty consistant with the few jobs i have : When generating the various
: parts of a mailsend function, I happen to have the 'message' portion (the
: email body) as a variable.

: This variable is a string, and was complied together using concatex to make
: the message. The actuall text is no more then a paragraph, but whenever I
: send a message using it, the job returns an Error: Timeout message on the
: mailsend line, and sends the mail :twice: Is there anything around max
: size of a mail message body via 24x7 ?

Tue Oct 11, 2005 5:41 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Mailsend timeout when body is dynamic Reply with quote

1) Does the script.log file overwrite itself with each new job running? it was luck i was watchng the trace window to capture this:

2) The bulk of this job is checks to prevent duplicate reports from being send (job running multiple times) and archving.
it seems that it returns nothing but a simple ERROR: Timeout message.

A cut& paste of the body of the message to a direct entry in the mailsend results in a send no problem..
**** 10/12/2005 08:56:02 ****

JAL 3: ONERRORGOTO
JAL 3: Executing ONERRORGOTO("BADEND")
JAL 5: DIM
JAL 5: Executing DIM("MESSAGE", "STRING")
JAL 6: DIM
JAL 6: Executing DIM("SENDFROM", "STRING", "Joe Sombody
")
JAL 8: DIM
JAL 8: Executing DIM("SENDTO", "STRING", "frapplesB@company.us")
JAL 9: DIM
JAL 9: Executing DIM("SUBJECT", "STRING", "Cash Alert")
JAL 10: DIM
JAL 10: Executing DIM("MSGTEXT", "STRING")
JAL 11: DIM
JAL 11: Executing DIM("RPT", "STRING", "\\vcstbgs01\homevc\rpt\pickup\cash_ale
rt_12-Oct-05.txt")
JAL 12: DIM
JAL 12: Executing DIM("RESULT", "STRING")
JAL 13: DIM
JAL 13: Executing DIM("SENTFLAG", "STRING", "cashAlert.sent")
JAL 14: DIM
JAL 14: Executing DIM("HOLDFLAG", "STRING", "HoldCashFiles.flg")
JAL 15: DIM
JAL 15: Executing DIM("REPORTSENT", "BOOLEAN")
JAL 16: DIM
JAL 16: Executing DIM("FOO", "BOOLEAN")
JAL 18: JOBENABLE
JAL 18: Executing JOBENABLE("841", "false")
JAL
JAL 20: FILEEXISTS
JAL 20: Executing FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct-
05.txt", "false")
JAL Return "true"
JAL 21: IF
JAL 21: Executing IF("true", "YESFILE", "NOFILE")
JAL 26: FILEREADALL
JAL 26: Executing FILEREADALL("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct
-05.txt", "")
JAL Return "The following accounts have a negative cash balance. Investiga
tion may be required.

Account_name: XXXX FUND
London_recon_no: 44
Cash: -416886.48

Account_name: YYYY FUND
London_recon_no: 46
Cash: -1749074.08

Account_name: ZZZZ FUND
London_recon_no: 56
Cash: -33071.64

"
JAL 28: _REPORTSEND
JAL 28: Executing _REPORTSEND("frapplesB@company.us", "Joe Sombody ", "Cash Alert", "The following accounts have a negative cash balance.
Investigation may be required.

Account_name: XXXX FUND
London_recon_no: 44
Cash: -416886.48

Account_name: YYYY FUND
London_recon_no: 46
Cash: -1749074.08

Account_name: ZZZZ FUND
London_recon_no: 56
Cash: -33071.64

", "", "cashAlert.sent", "false", "HoldCashFiles.flg", "")
JAL
------------ Start of _REPORTSEND ------------
JAL 5: DIM
JAL 5: Executing DIM("RETURNFLG", "BOOLEAN")
JAL 6: DIM
JAL 6: Executing DIM("BASEPATH", "STRING", "\\vcstbgs01\homevc\rpt\pickup\")
JAL 7: DIM
JAL 7: Executing DIM("FLGPATH", "STRING")
JAL 8: DIM
JAL 8: Executing DIM("RPTPATH", "STRING")
JAL 9: DIM
JAL 9: Executing DIM("HLDPATH", "STRING")
JAL 10: DIM
JAL 10: Executing DIM("FOO", "BOOLEAN")
JAL 11: DIM
JAL 11: Executing DIM("RPTMOV", "STRING")
JAL 13: DIM
JAL 13: Executing DIM("MESSAGE", "STRING")
JAL 18: CONCATEX
JAL 18: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\", "", "")
JAL 20: IF
JAL 20: Executing IF("false", "YESCHECKRPT", "NOCHKRPT")
JAL 34: CONCATEX
JAL 34: Executing CONCATEX("REPORT: ", "Cash Alert", "Cash Alert")
JAL 35: GOTO
JAL 37: Executing GOTO("ENDREPORTCHECK")
JAL 42: CONCATEX
JAL 42: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\", "daily\", "cashAl
ert.sent", "")
JAL 43: FILEEXISTS
JAL 43: Executing FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.se
nt", "false")
JAL Return "false"
JAL 44: IF
JAL 44: Executing IF("false", "BADCHECKPREV", "ENDCHECKPREV")
JAL 56: CONCATEX
JAL 56: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\", "HoldCashFiles.fl
g", "")
JAL 57: FILEEXISTS
JAL 57: Executing FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\HoldCashFiles.flg"
, "false")
JAL Return "false"
JAL 58: IF
JAL 58: Executing IF("false", "YESHOLD", "ENDCHECKHOLD")
JAL 70: ISEQUAL
JAL 70: Executing ISEQUAL("", "", "false")
JAL Return "true"
JAL 71: IF
JAL 71: Executing IF("true", "NOATTACH", "YESATTACH")
JAL 78: MAILSEND
JAL 78: Executing MAILSEND("Joe Sombody ", "", "frapplesB@
company.us", "REPORT: Cash Alert", "The following accounts have a negative cash
balance. Investigation may be required.

Account_name: XXXX FUND
London_recon_no: 44
Cash: -416886.48

Account_name: YYYY FUND
London_recon_no: 46
Cash: -1749074.08

Account_name: ZZZZ FUND
London_recon_no: 56
Cash: -33071.64

")
JAL ERROR: "Error: Timeout."
JAL
JAL 79: LOGADDMESSAGEEX
JAL 79: Executing LOGADDMESSAGEEX("INFO", "841", "CASH - Cash Alert", "SEND MA
IL")
JAL
JAL 80: GOTO
JAL 82: Executing GOTO("MAKEFLG")
JAL 83: _WRITEFLAG
JAL 83: Executing _WRITEFLAG("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.se
nt", "")
JAL
------------ Start of _WRITEFLAG ------------
JAL 1: DIM
JAL 1: Executing DIM("NUM", "NUMBER")
JAL 4: FILEOPEN
JAL 4: Executing FILEOPEN("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.sent"
, "LineMode", "Write", "true", "0")
JAL Return "1"
JAL 5: FILEWRITE
JAL 5: Executing FILEWRITE("1", "")
JAL
JAL 6: FILECLOSE
JAL 6: Executing FILECLOSE("1")
JAL
JAL
------------ End of _WRITEFLAG ------------
JAL
JAL 86: SET
JAL 86: Executing SET("ReturnFlg", "true")
JAL 91: RETURN
JAL 91: Executing RETURN("true")
JAL Return "true"
JAL
------------ End of _REPORTSEND ------------
JAL Return "true"
JAL 30: IF
JAL 30: Executing IF("true", "GOOD", "BAD")
JAL 34: FILEMOVE
JAL 34: Executing FILEMOVE("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct-05
.txt", "\\vcstbgs01\homevc\rpt\pickup\daily\cash_alert_12-Oct-05.txt")
JAL
JAL 36: JOBENABLE
JAL 36: Executing JOBENABLE("841", &quo t;true")
JAL
JAL 37: EXIT
JAL 37: Executing EXIT()

Wed Oct 12, 2005 9:06 am View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Mailsend timeout when body is dynamic Reply with quote

I sould also point out that the body of the message is contained in a seperate file.

A fileReadAll is used to pull all of the text from the file into a variable. That variable is refrenced directly in the mailsend

Wed Oct 12, 2005 9:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Mailsend timeout when body is dynamic Reply with quote

1) Yes, the script.log is shared and could be overwritten by a next or concurrent job, but there is a separate log for each job in the Performance Data directory

2) The trace looks ok, but I still don't think the timeout error is caused by dynamic message body. You cannot simply copy&paste the multi-line body as you say and run the script as is. I suspect the issue is cased by the job run-time mode. When you run it manually it runs in the foreground, otherwise you probably run it in the background. Try changing the job mode to synchronous and detached and check if that helps.

: 1) Does the script.log file overwrite itself with each new job running? it
: was luck i was watchng the trace window to capture this: 2) The bulk of
: this job is checks to prevent duplicate reports from being send (job
: running multiple times) and archving.
: it seems that it returns nothing but a simple ERROR: Timeout message.

: A cut& paste of the body of the message to a direct entry in the mailsend
: results in a send no problem..
: **** 10/12/2005 08:56:02 ****

: JAL 3: ONERRORGOTO
: JAL 3: Executing ONERRORGOTO("BADEND")
: JAL 5: DIM
: JAL 5: Executing DIM("MESSAGE", "STRING")
: JAL 6: DIM
: JAL 6: Executing DIM("SENDFROM", "STRING", "Joe
: Sombody
: ")
: JAL 8: DIM
: JAL 8: Executing DIM("SENDTO", "STRING",
: "frapplesB@company.us")
: JAL 9: DIM
: JAL 9: Executing DIM("SUBJECT", "STRING", "Cash
: Alert")
: JAL 10: DIM
: JAL 10: Executing DIM("MSGTEXT", "STRING")
: JAL 11: DIM
: JAL 11: Executing DIM("RPT", "STRING",
: "\\vcstbgs01\homevc\rpt\pickup\cash_ale
: rt_12-Oct-05.txt")
: JAL 12: DIM
: JAL 12: Executing DIM("RESULT", "STRING")
: JAL 13: DIM
: JAL 13: Executing DIM("SENTFLAG", "STRING",
: "cashAlert.sent")
: JAL 14: DIM
: JAL 14: Executing DIM("HOLDFLAG", "STRING",
: "HoldCashFiles.flg")
: JAL 15: DIM
: JAL 15: Executing DIM("REPORTSENT", "BOOLEAN")
: JAL 16: DIM
: JAL 16: Executing DIM("FOO", "BOOLEAN")
: JAL 18: JOBENABLE
: JAL 18: Executing JOBENABLE("841", "false")
: JAL
: JAL 20: FILEEXISTS
: JAL 20: Executing
: FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct-
: 05.txt", "false")
: JAL Return "true"
: JAL 21: IF
: JAL 21: Executing IF("true", "YESFILE",
: "NOFILE")
: JAL 26: FILEREADALL
: JAL 26: Executing
: FILEREADALL("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct
: -05.txt", "")
: JAL Return "The following accounts have a negative cash balance.
: Investiga
: tion may be required.

: Account_name: XXXX FUND
: London_recon_no: 44
: Cash: -416886.48

: Account_name: YYYY FUND
: London_recon_no: 46
: Cash: -1749074.08

: Account_name: ZZZZ FUND
: London_recon_no: 56
: Cash: -33071.64

: "
: JAL 28: _REPORTSEND
: JAL 28: Executing _REPORTSEND("frapplesB@company.us", "Joe
: Sombody ", "Cash Alert", "The following accounts have
: a negative cash balance.
: Investigation may be required.

: Account_name: XXXX FUND
: London_recon_no: 44
: Cash: -416886.48

: Account_name: YYYY FUND
: London_recon_no: 46
: Cash: -1749074.08

: Account_name: ZZZZ FUND
: London_recon_no: 56
: Cash: -33071.64

: ", "", "cashAlert.sent", "false",
: "HoldCashFiles.flg", "")
: JAL
: ------------ Start of _REPORTSEND ------------
: JAL 5: DIM
: JAL 5: Executing DIM("RETURNFLG", "BOOLEAN")
: JAL 6: DIM
: JAL 6: Executing DIM("BASEPATH", "STRING",
: "\\vcstbgs01\homevc\rpt\pickup\")
: JAL 7: DIM
: JAL 7: Executing DIM("FLGPATH", "STRING")
: JAL 8: DIM
: JAL 8: Executing DIM("RPTPATH", "STRING")
: JAL 9: DIM
: JAL 9: Executing DIM("HLDPATH", "STRING")
: JAL 10: DIM
: JAL 10: Executing DIM("FOO", "BOOLEAN")
: JAL 11: DIM
: JAL 11: Executing DIM("RPTMOV", "STRING")
: JAL 13: DIM
: JAL 13: Executing DIM("MESSAGE", "STRING")
: JAL 18: CONCATEX
: JAL 18: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\",
: "", "")
: JAL 20: IF
: JAL 20: Executing IF("false", "YESCHECKRPT",
: "NOCHKRPT")
: JAL 34: CONCATEX
: JAL 34: Executing CONCATEX("REPORT: ", "Cash Alert",
: "Cash Alert")
: JAL 35: GOTO
: JAL 37: Executing GOTO("ENDREPORTCHECK")
: JAL 42: CONCATEX
: JAL 42: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\",
: "daily\", "cashAl
: ert.sent", "")
: JAL 43: FILEEXISTS
: JAL 43: Executing
: FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.se
: nt", "false")
: JAL Return "false"
: JAL 44: IF
: JAL 44: Executing IF("false", "BADCHECKPREV",
: "ENDCHECKPREV")
: JAL 56: CONCATEX
: JAL 56: Executing CONCATEX("\\vcstbgs01\homevc\rpt\pickup\",
: "HoldCashFiles.fl
: g", "")
: JAL 57: FILEEXISTS
: JAL 57: Executing
: FILEEXISTS("\\vcstbgs01\homevc\rpt\pickup\HoldCashFiles.flg"
: , "false")
: JAL Return "false"
: JAL 58: IF
: JAL 58: Executing IF("false", "YESHOLD",
: "ENDCHECKHOLD")
: JAL 70: ISEQUAL
: JAL 70: Executing ISEQUAL("", "", "false")
: JAL Return "true"
: JAL 71: IF
: JAL 71: Executing IF("true", "NOATTACH",
: "YESATTACH")
: JAL 78: MAILSEND
: JAL 78: Executing MAILSEND("Joe Sombody ", "",
: "frapplesB@
: company.us", "REPORT: Cash Alert", "The following
: accounts have a negative cash
: balance. Investigation may be required.

: Account_name: XXXX FUND
: London_recon_no: 44
: Cash: -416886.48

: Account_name: YYYY FUND
: London_recon_no: 46
: Cash: -1749074.08

: Account_name: ZZZZ FUND
: London_recon_no: 56
: Cash: -33071.64

: ")
: JAL ERROR: "Error: Timeout."
: JAL
: JAL 79: LOGADDMESSAGEEX
: JAL 79: Executing LOGADDMESSAGEEX("INFO", "841",
: "CASH - Cash Alert", "SEND MA
: IL")
: JAL
: JAL 80: GOTO
: JAL 82: Executing GOTO("MAKEFLG")
: JAL 83: _WRITEFLAG
: JAL 83: Executing
: _WRITEFLAG("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.se
: nt", "")
: JAL
: ------------ Start of _WRITEFLAG ------------
: JAL 1: DIM
: JAL 1: Executing DIM("NUM", "NUMBER")
: JAL 4: FILEOPEN
: JAL 4: Executing
: FILEOPEN("\\vcstbgs01\homevc\rpt\pickup\daily\cashAlert.sent"
: , "LineMode", "Write", "true", "0")
: JAL Return "1"
: JAL 5: FILEWRITE
: JAL 5: Executing FILEWRITE("1", "")
: JAL
: JAL 6: FILECLOSE
: JAL 6: Executing FILECLOSE("1")
: JAL
: JAL
: ------------ End of _WRITEFLAG ------------
: JAL
: JAL 86: SET
: JAL 86: Executing SET("ReturnFlg", "true")
: JAL 91: RETURN
: JAL 91: Executing RETURN("true")
: JAL Return "true"
: JAL
: ------------ End of _REPORTSEND ------------
: JAL Return "true"
: JAL 30: IF
: JAL 30: Executing IF("true", "GOOD", "BAD")
: JAL 34: FILEMOVE
: JAL 34: Executing
: FILEMOVE("\\vcstbgs01\homevc\rpt\pickup\cash_alert_12-Oct-05
: .txt",
: "\\vcstbgs01\homevc\rpt\pickup\daily\cash_alert_12-Oct-05.txt")
: JAL
: JAL 36: JOBENABLE
: JAL 36: Executing JOBENABLE("841", "true")
: JAL
: JAL 37: EXIT
: JAL 37: Executing EXIT()

Wed Oct 12, 2005 10:17 am View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Mailsend timeout when body is dynamic Reply with quote

When I take the value of the filereadall, and write it as a single line string with no spaces & \n for returns,... it sends just fine.

Its tied to the straight pull of the filereadall?

But, I have two additional jobs.. both append to a string variable to create an email message, ie :

concatex "BLAH BLAH",temp
concated temp,"\n\n\nMoer Blah",temp

One sends jsut fine.. the other has the same timeout / dupe error.
background / detached seems to have no effect

Wed Oct 12, 2005 10:44 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Mailsend timeout when body is dynamic Reply with quote

It is surely not a FileRead issue. Check if the problem is casued by te message size. Try sending it to some other email server.

: When I take the value of the filereadall, and write it as a single line
: string with no spaces & \n for returns,... it sends just fine.

: Its tied to the straight pull of the filereadall?

: But, I have two additional jobs.. both append to a string variable to create
: an email message, ie : concatex "BLAH BLAH",temp
: concated temp,"\n\n\nMoer Blah",temp

: One sends jsut fine.. the other has the same timeout / dupe error.
: background / detached seems to have no effect

Wed Oct 12, 2005 1:40 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Mailsend timeout when body is dynamic Reply with quote

I was able to recreate & bypass the problem.

I changed the job to use fileread to pull each line, and added a \n to the end of each. Each blank line was written with a \n as well.

... and it failed.

Changed it to be a \r at the end of each line, and a \n for blank lines.. and it sends properly. This may be more a function of what my mailserver accepts vs 24x7

Thu Oct 13, 2005 9:33 am 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.