Search DominoPower's 11,320 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
The strange case of Last Modified dates
By Mick Moignard

Just a couple of weeks ago, a colleague and I came across a most bizarre "feature" of Notes. It's all to do with document Last Modified dates. We had a specific need to be able to work through documents using Last Modified dates as a processing trigger -- sounds familiar?. And we found some very peculiar and interesting things.

First of all, a little perspective. As the code in question was to be run as a Lotus Enterprise Integrator (LEI) scripted activity, we could not use the agent's "run on" property of "New of Modified". That's because the LEI Scripted Activity agents live in the LEI Vault database, but actually run on data kept in other databases. The Last Modified property only applies to the database the agent lives in.

So we created a view in the target database, and used the view column value simple selection of Last Modified, as shown in Figure A.

FIGURE A


We selected Last Modified. Roll over picture for a larger image.

OK so far. Until we looked at the view. What we found was that the value in the view wasn't the actual document Last Modified value for the documents, as they were in this database.

Let's have another aside. Look at a document properties box, and at the first tab, in Figure B.

FIGURE B


There's some interesting evidence in this one box, as long as you know where to look. Roll over picture for a larger image.

Notice that there are four dates in it. The first one is the date that the document was initially created in the database it was initially created in. Next comes the date of Last Modified in that same database. Now the next two relate to the actual database that you are looking at -- which, with Notes' fabled replication, doesn't have to be the same instance of the database. And in our case, it wasn't -- the database we were working with is was a distant replica, maybe two servers removed from the one that the end users actually use. And this is where the whole problem started.

We found that the view's simple function Last Modified value came from the Modified entry, at 11:04 in Figure B. This isn't the last modified time in the current database, and to be honest, if it's not in the current database, it can't be relied upon. Even if you think that you have properly synchronised clocks, I'm not sure that you can rely upon them to always be synchronised, and anyway, in our environment, we knew we couldn't rely on this entry.

This was a bit of a bummer for us, because we planned the agent, when it ran, would record the time and date it last ran. Then next time it ran it would look for documents modified after that time, then record that last run time, and so on. We could not stamp the documents that we were processing with a processed flag, because while we were working on them, there was always the possibility that end users could also be working in them -- so when the next replication happened, we'd get lots of rep/save conflicts. A definite no-no.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
Home > Strategies > Document Management (14 articles)
   An application for scanning physical mail and distributing it virtually
   Evaluating your Domino Document Manager (Domino.Doc) transition options
   What to look for in a Domino-based document management solution
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
Enabling DAOS on a database - new recommendation
Need your opinion on some new policy settings for Mail
Sometimes IBM Lotus Domino HTTP RPC Agents aren't the answer...
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by December 31 to save $350.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login