Notes Error Subscript Out Of Range
Training Support Forums & community Events Rational Tivoli WebSphere Java technology Linux Open source SOA and Web services Web development XML My developerWorks About dW Submit content Feedback developerWorks>Lotus>Forums & community>Notes/Domino 6 and 7 Forum Notes/Domino 6 and 7 Forum Subscript out of range error in Lotus Script ---Please help Sign in to participate Previous Next Subscript out of range error in Lotus Script ---Please help Posted by ac ac on 17.Apr.08 at 10:19 AM using a Web browserCategory: Domino DesignerRelease: 7.0.3Platform: All Platforms Hi All, I am getting this error when i click the Reject button "Subscript out of range" Here is the code Set userlist1 = newdoc.GetFirstItem("claimRejectedList") Set approvelist1 = Newdoc.GetFirstItem("claimapprovallist") userlist = newdoc.claimRejectedList approvelist = newdoc.claimApprovalList Set newuserlist = newdoc.GetFirstItem("claimApprovers") If approvelist1.contains(user) Then For j=0 To Ubound(approvelist) If approvelist(j) = user Then approvelist(j) = "" approvelist = Fulltrim(approvelist) newdoc.claimApprovalList = approvelist End If Next When I run it in the debug mode ---initially I have more values in approvelist say 6, When I enter my if condition , my array value after fulltrim , gets to 5 and then I get the Subscript out of range Please help Thanks in advance, ac ac Return to top Subscript out of range error in Lot... (ac ac 17.Apr.08) . . RE: Subscript out of range error in... (Andre Guirard 17.Apr.08) . . RE: Subscript out of range error in... (Paul K Smerdon 17.Apr.08) . . RE: Subscript out of range error in... (Trapti Agrawal 17.Apr.08) . . . . RE: Subscript out of range error in... (ac ac 17.Apr.08) . . RE: Subscript out of range error in... (Stan Rogers 18.Apr.08) Document options Print this page Search this forum Forum views and search Date (threaded) Date (flat) With excerpt Author Ca
? Ask a question, help others, and get answers from the community Discussions Start a thread and discuss today's topics with top experts Blogs Read the latest tech blogs written by experienced community members Lotus Script Error Message: Subscript out of range. Jacob0530 pts. Tags: Thanks! We'll email youwhen relevant content isadded and updated. Following Follow Development Thanks! We'll email youwhen relevant content isadded and updated. Following Follow IBM Thanks! We'll email youwhen relevant content isadded and updated. Following Follow Lotus Domino Thanks! We'll email youwhen relevant content isadded and updated. Following Follow Microsoft Exchange I've recently taken over support of a homegrown Notes database. An agent runs daily in this database on all documents http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatWeb/500959bb24ced60b8525742e004eaee9?OpenDocument and pulls data from a flat file (which lives on the same server as database) and uses subroutines to process adds, deletes and changes to person docs in a Name and Address Book. Recently it's stopped working. I get error messages in the log such as error: "Subscript out of range" or "Out of memory not enough system memory". When I run the agent through debug I get an error message "Can't open file". http://itknowledgeexchange.techtarget.com/itanswers/lotus-script-error-message-subscript-out-of-range/ My ID has full Admin rights to the server. Any suggestions would be greatly appreciated. Asked: September 24, 20049:52 AM Last updated: September 24, 200410:20 AM Related Questions Lotus Script Error - Out of Memory Opening scheduled agent results in error message: 'Document has been deleted' SQL Server 2008 Restore error message SQL Server - Is there a formula for determining what identity range to set? MIME to CD error? Answer Wiki Last updated: September 24, 200410:17 AM GMT MGaines0 pts. History Contributors Ordered by most recent MGaines0 pts. Thanks. We'll let you know when a new response is added. Without seeing the code, my guess is that your "Subscript out of range" issue is due to the array(s) in the program not being DIMensioned with enough elements. Check the loop that is used to update the array(s) and see if the original programmer has included code to count the number of items being processed and has a provision to REDIMension the array(s). (Check the Lotus Script documentation for more information about DIM and REDIM.) As to not being able to open the file while in debug mode, check the file permissions on the flat file. You may have full admin rights in Notes, but not have access to the flat file. Even though the flat file may be o
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create https://www.experts-exchange.com/questions/24212064/Subscript-Ran-out-of-Range-error.html a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Subscript Ran out of Range error Want to Advertise Here? Solved Subscript Ran out of Range error Posted on 2009-03-09 Lotus notes error IBM 1 Verified Solution 8 Comments 884 Views Last Modified: 2013-12-18 Have an agent that is used to send out notices 30 days before a device needs to be replaced. This agant has been running perfectly for about a year up until last month. Not sure what went wrong as I have not made any changes that should have had notes error subscript any impact. Had not touched the agent since it first started working. In running thru debugger I get an error "Subscript out of Range" and I am not sure why. After running it lands on the line below. I am going to check the field values above that to see if there are any that are out of order. monthly_tax_amt(arraycount) = ventry.columnvalues(8) Options: Option Public Option Declare Declarations: Dim db As NotesDatabase Dim v As notesview Dim ventry As notesviewentry Dim vnav As notesviewnavigator Dim doc As notesdocument Dim svc_tag() As String Dim myuserid() As String Dim dai() As String Dim lease_term_date() As String Dim lease_buyout_date() As String Dim monthly_lease_amt() As String Dim monthly_tax_amt() As String Dim emaildoc As NotesDocument Dim saveoffice As String Dim arraycount As Integer Initialize Sub Initialize Dim s As New NotesSession Set db = s.CurrentDatabase Set v = db.getview("(30_days)") Set vnav = v.create