?
Solved

How do Replication or Save Conflicts happen?

Posted on 2009-12-28
3
Medium Priority
?
781 Views
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]
)
0
Comment
Question by:jkee54
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 total points
ID: 26132262
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".
0
 

Author Closing Comment

by:jkee54
ID: 31670389
Perfect!  Thanks for the insight on formula language that would never come out of a book!  You are awesome!
0
 
LVL 46

Expert Comment

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

864 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