Steve Sherwood 22.Sep.16 06:11 AM a Web browser LEILEI - 8.0Windows
A scheduled LEI Scripted Activity, which exports Notes data to a text file, calls an LEI Direct Transfer activity, which adds/updates it in a SQL Server database.
(MyActivityName = value from Notes document)
Set LEIsess = New LCSession(strAgent)
If LEIsess.Status = LCSUCCESS Then
Print "No errors in LEI Activity " & MyActivityName
Call LEIsess.Logtext(LCLOGSTREAMF_EVENT, "Activity " & MyActivityName & " called from scheduled agent completed successfully", 0)
Else
*** How can I trap any error in the MyActivityName called activity here? RunActivity does not appear to return a success/failure code ***
*** I want to update a Notes document in case of error, so that the scripted activity will exit without exporting the next batch of data when it runs again ***
LEIsess.Status 1 = 0, as one would expect. The LEIsess.Status 2 and LEIsess.Status 3 traces both return 268448513. Does anyone know how to interpret this value? The Lotus Connector LotusScript Extensions Guide doesn't give any clues. Is it actually possible to get a return code from RunActivity?
Thanks in advance for any help you can give with this.
Steve