How do Replication or Save Conflicts happen?

Posted on 2009-12-28
Last Modified: 2013-12-18
I have a database that does the following:

User opens a saved document.
Agent (using formula language) searches database's documents and selects the open document (among others)
Agent does not make any changes to the open document (or the others).  It only sends and email to a specific person, including in the email some of the fields from the document that were saved before the user opened it.
A Replication or Saved conflict document is created.  Why?  No changes were made to the original document.  

I'm not sure I want to change the Form Properties to merge conflicts or ignore conflicts, because there might be some legitimate times I would want this to happen.  

Is there a way to prevent the creation of the conflict when this agent runs?  Here is the code, which works fine except for the replication conflict when it selects a document that is open for editing.:

SELECT NextDate <= @Today  & Form != "1CreateNewReport" & Form != "HowToDo" & Form != "ReportInfo" & Form != "ReportInfo Other Units" & !@Contains(Sent; "Yes") & @Now > @Adjust(TimeDue;0;0;0;0;30;0)  & @Now <  @Adjust(TimeDue; 0;0;0;0;40;0);

FIELD TimeDueTxt := @Text(TimeDue;"S1T1");

@MailSend("Jane Doe server address"  ;"" ;"" ;"ATTN " + RptOwner + " (Backup: " + RptBackup + ") - Reminder for " + Title
; "This report is 30 minutes past its due time:" + @NewLine + @NewLine +Title+ @NewLine
; "TimeDueTxt"
; [IncludeDoclink]
Question by:jkee54
    LVL 46

    Accepted Solution

    Bold statement: Formula agents always update the current document, for that is what they are supposed to do. If you write an agent with only one (real) statement:
          Field ABC:= 123;
    it will update the selected documents implicitly, no Save required.

    Heh, brilliant, I just discovered a new command, the one that you probably need:

          @DocMark( [NoUpdate] )

    Try with that command added to your code. According to the help, the command "marks a document so that changes made to it will not be saved to disk".

    Author Closing Comment

    Perfect!  Thanks for the insight on formula language that would never come out of a book!  You are awesome!
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Thank you as well! And I'd have never known the command without your question. :-))

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
    IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now