Normal Topic [Solved] Report renames not reconciling (Read 1106 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
[Solved] Report renames not reconciling
Oct 8th, 2007 at 6:18am
Print Post Print Post  
Solution: User has DATABASE RETENTION: ON set in his INI file.

In the past few hours I have had a number of applications demonstrating the same problem.

Using 2.0.3

Using Designer, Database Manager, Manage Layouts, I had to rename a number of reports.
I then reconciled from DSR to DB.  Was then trying to Merge Application and getting message that could not happen because names already existed.  This happened many times, I finally started saving as a new application vs. reconciling and that worked OK.  I finally looked at the "reconciled DB files and saw that the new  report names were not happening.

And while on the topic, could really use a tool to Remove All Reports vs. having to select each one individually to add to the batch process.  Would be good to be able to make multiple selections, but as a minimum the option to Delete All Reports would be a great addition.  I can understand why you can't do that for renaming, but deletion is much different.

Thanks for listening.
« Last Edit: Oct 8th, 2007 at 5:36pm by Hammer »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2492
Joined: Aug 20th, 2003
Re: Report renames not reconciling in 2.0.3
Reply #1 - Oct 8th, 2007 at 2:01pm
Print Post Print Post  
Hello Bob,

I've just tried with several files and the renames of the reports are correctly being reconciled.

Now you mentioned merging. Did you happen to try the merge before you tried to rename the reports?

What might have happened was the merge loaded the DB file to do the merge(Similiar to what an XLookup would do), and subsequent merges were using the copy that was loaded into memory. So the reconciles were not actually having any affect at all. I'll have Ben check into it to see if this can happen. Other than that I have no other ideas at the moment.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Report renames not reconciling
Reply #2 - Oct 8th, 2007 at 4:55pm
Print Post Print Post  
That sounds like the scenario.  And it may also explain the "locked" records from another post.  Here was the process:

Load File A.DSR
Merge File B.DB, get error message
Load File B.DSR, rename reports
Reconcile File B.DB
Load File A.DSR
Merge FileB.DB, still get error message.
Check FileB.DB, file names not changed
Check FileB.DSR, file names were changed, but apparently did not reconcile.
Reconcile FileB.DSR to FileB.DB, cannot do, file is locked.
Use admin to unlock FileB.DB, cannot do.
Use sunlock to unlock FileB.DB, cannot do.
Try to rename/move FileB.DB, can to with FileB.dat, but not with FileB.DB, is locked
Use FileB.DSR to Save as new application FileC.DB
Open FileA.DSR
Merge FileC.DB, success!

========================
Also NECESSARYl would be the name(s) of duplicate forms/reports to show up in the log.

My main application has about 12 databases with hundreds of reports, scores in each database.  When getting error on merge, I need to manually compare all reports in master and merge databases, took many hours to do this.  And when I missed one or more report dupes, I had to repeat the steps above, many times waiting 10 mins or more for each process to complete.  Log should show "Database|ReportName" for each conflicting name.

And, as noted earlier, a tool to delete all reports would be helpful.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Report renames not reconciling
Reply #3 - Oct 8th, 2007 at 5:30pm
Print Post Print Post  
I think this one can also be marked SOLVED.

The explanations above, coupled with my DATA RETENTION = ON setting seems to explain the problem.
Not sure how to work around this yet, probably just make new DB vs. reconciling.

But would appreciate a serious look at the need to have details in the log, and the Delete All Reports option.

I will also remove refetence to 2.0.3 in the Sbject, was probably common to all versions, and don't want to make anyone fearful of 2.0.3.

Thanks again for listening.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2492
Joined: Aug 20th, 2003
Re: Report renames not reconciling
Reply #4 - Oct 10th, 2007 at 2:21pm
Print Post Print Post  
Bob_Hansen wrote on Oct 8th, 2007 at 4:55pm:
Also NECESSARYl would be the name(s) of duplicate forms/reports to show up in the log.


I'll see what we can do about that but I think that currently once it finds a name that is duplicated it just gives that message. It does not look to see if other names are duplicated. So it would only give one form or report name per merge. Not sure about that, but I believe that is how it works.

Quote:
My main application has about 12 databases with hundreds of reports, scores in each database.  When getting error on merge, I need to manually compare all reports in master and merge databases, took many hours to do this.  And when I missed one or more report dupes, I had to repeat the steps above, many times waiting 10 mins or more for each process to complete.  Log should show "Database|ReportName" for each conflicting name.


If you need to do this again rather than going through by hand to check the names you could use the new Sbasic Commands
Code
Select All
@ListDatabases()
@ListReportsByDatabase() 


To get a listing of reports by database or just
Code
Select All
@ListApplicationReports() 


to get all the report names. Then a little loop to compare the results of one app to the results of another and you have all your names. I'd write it so you could just run it in a single record Mass Update. and save the code so you can use it in the future.

Quote:
And, as noted earlier, a tool to delete all reports would be helpful.


I'll get that written up as a feature request.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: [Solved] Report renames not reconciling
Reply #5 - Oct 10th, 2007 at 9:01pm
Print Post Print Post  
Good idea on the Reports list if using Version 2x.  In this case I am, in other cases I am still supporting accounts with 1x, so will not work. 
But, wait  ....  I could copy their 1x files to my 2x and upgrade on my system to use the tools, ID the reports and then repair on their 1x system...good idea, I like the way you think!

And I could make a loop from array1 using @InStr vs. looping through each array2 element.  If @InStr>0 then it is a duplicate.  Sounds like a function to be put into tools library, ListDuplicateReports(vAppName As String).
Run it once, looping through the array with the fewest reports..

Could also have form duplicates, but those are usually much fewer and would probably be more obvious.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2492
Joined: Aug 20th, 2003
Re: [Solved] Report renames not reconciling
Reply #6 - Oct 10th, 2007 at 9:14pm
Print Post Print Post  
Bob_Hansen wrote on Oct 10th, 2007 at 9:01pm:
And I could make a loop from array1 using @InStr vs. looping through each array2 element.


You'd want to use @FindStringArray() and not @Instr() as @Instr() would return true even if the report name was found as part of a longer name. For example if a Report was just named "New", @Instr would return true if there was another report named "Newark Building Supplies"

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: [Solved] Report renames not reconciling
Reply #7 - Oct 10th, 2007 at 9:18pm
Print Post Print Post  
Thanks, getting betterer and betterer.

Actually they did have some reports named "a" "z" and "t". 
I am sure none of them would have shown up with @InStr()
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged