Object variable not set while agent is running

35 pts.
Tags:
Lotus Notes
LotusScript
The daily agent unable to running successfully. In the server log i found that it say [22151272:00002-00001] 07/13/2017 10:04:46 AMgr: Agent ('Process Time Attendance Only' in 'Smartcard Attendance/sas-server.nsf') printing: Got error Object variable not set on line 124 And below is what it set in line "124" ExcludeHoliday=False How to solve this error.? Please help since I'm a beginner in Lotus scripts. Thank you. -lotusscriptbeginner-

Software/Hardware used:
LotusNotes Script

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Stiletto

    Assuming this is the same code from the other thread...

    I don't think line 124 is the line you think it is - LotusScript can sometimes count lines differently than your editor counts them.  Anyway, in that general vicinity of the code, you have 2 lines:

     ldte=DateValue(AdjustedDate(timedoc.TstaffID(0), tdte, ApprPrd, ExcludeOffday, ExcludeHoliday))
                mdte=DateValue(AdjustedDate(timedoc.TstaffID(0), tdte, MvePrd, ExcludeOffday, ExcludeHoliday))


    What is "AdjustedDate"? I don't have a full reference guide in front of me, but it doesn't seem to be a LS function. Is it a custom function of your own design?

    5,075 pointsBadges:
    report
  • paulinebgg2500
    I tried to run the agent in debug mode. But it ended not responding if i use the "continue" button in the debug console. Or i use it in the wrong way?

    The script is fully generated by other programmer and not me. I believe "AdjustedDate" is the ammended date in the database.

    Are the any way that how i can run this agent in debug mode to identify the data that might cause the agent unsuccesfully running? I afraid its not because of the script itself but maybe because of the incomplete database that its calling to running the agent.

    Sorry. It's just my beginner assumption. :D
    35 pointsBadges:
    report
  • Stiletto

    Given the way AdjustedDate is being used, it really looks like a function with 5 distinct parameters being passed to it.

    As for the debugger, use the button labeled something like "Step Into".  That will let you step through the code line-by-line.  There is a tab in the bottom pane that will show you the value of every variable as you do this.

    5,075 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: