Solved

"Failed to Save Document." Error

Posted on 2004-08-27
18
9,105 Views
Last Modified: 2010-03-15
Hello,

I opened a Crystal Report that had previously been created.  If I edit something with the existing database connection, i'm able to save the document with no issues.  However, when I changed the database that the report was using (which I need to do), it gave me an error "Failed to Save Document".  Any suggestions on how to fix this?   Crystal Reports v10

(I went to Database > Set Datasource Location > updated the database with the new db, and updated the sproc to the new one)

Thanks for any help you can provide! =)

0
Comment
Question by:rock815
  • 7
  • 6
  • 2
  • +3
18 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 11913885
Did you verify the database?

Click DATABASE --> VERIFY DATABASE

Can you view the report after making the changes?  Is the data changed appropriately?

mlmcc
0
 
LVL 1

Author Comment

by:rock815
ID: 11913963
Yeah I verified the database, but you cannot see the data after the change was made.  I realize there are probably some stored procedure issues, but shouldn't you still be able to save the document?  Thanks again!
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11914558
I have run into this under other circumstances.  I don't recall right now how we got around it.

If you can't see the data then apparently there is something incorrect in the connection.

Did you change the database driver?  You might try changing it.  You will also get to change the database and location.

Click DATABASE --> CHANGE DATABASE DRIVER

mlmcc
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 1

Author Comment

by:rock815
ID: 11915169
I'm currently using v10 of Crystal.. I don't see an option for Change Database Driver off the Database tab.  :-/
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11915586
I don't have CR here and I know the CHANGE DATABASE DRIVER option is not correct.  Look at the options near VERIFY DATABASE in the list.  One of them should allow you to change the database connection method.  I had to do that when we moved our reports from the development server to the production server.

mlmcc
0
 
LVL 1

Author Comment

by:rock815
ID: 11930879
mlmcc, that's actually what I did with my original post, I believe.  The "Set Datasource Location"....

It's weird, when I try to save it locally it won't even allow me to...  It pops up three pop ups:

1) Failed To Save Document.

2) Failed to Save Database Information

3) Query Engine Error: 'The specified object was not saved.'

Does this help you help me? :-)  Thanks again!
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 11960158
Sorry.  You should try CONVERT DATABASE DRIVER.  That works somewhat differently from SET DATASOURCE LOCATION

You can "change" the driver back to the same driver but it will walk you through connecting to the database.

mlmcc
0
 
LVL 1

Author Comment

by:rock815
ID: 11963082
That seemed to work!
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11967803
Glad I could help

mlmcc
0
 

Expert Comment

by:delzzzone
ID: 12132986
I just had same problem under CR10. Solution (for me)Database/Set Datasource Location. Dialog appears, select sp in Current Data source (upper)window Select same connection/sp inm lower window and click 'Update'
0
 
LVL 6

Expert Comment

by:mcp111
ID: 13093492
I use Crystal 9 and I don't see a CONVERT DATABASE DRIVER option. Is that specific to Crystal 10? How can I solve this problem in Crystal 9?
0
 
LVL 1

Author Comment

by:rock815
ID: 13093553
Start a new thread and I'll answer it there, so I can get points.. haha...

Just reply to this one once you do.. Thanks
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 13100222
The Convert option is in CR7 & 8.  I don't have CR9 so can't check for it.

mlmcc
0
 
LVL 1

Author Comment

by:rock815
ID: 13102173
Well, I later found that I was getting the "Failed to Save" error because I had changed the stored procedure that the report was connecting to.  When I changed the stored procedure, there was a reference to an old field still in the Sort control.  So I removed it from the Sort and it was able to save the document.  So, I would imagine if you changed something, be sure you have all the references of a non-existing field removed.

Hope this helps....
0
 
LVL 6

Expert Comment

by:mcp111
ID: 13103580
I checked and there are no non-existing fields referenced. Any other ideas???
0
 
LVL 1

Author Comment

by:rock815
ID: 13103617
Did you only check the Sort?  If so, be sure to check everything for old references that are no longer in your field list... check formulas, groups, actually on your report, running total formulas, etc...

Other than that, I would say to re-create the report from scratch.. as tiresome as that can be...

Good luck - let me know if you find a solution
0
 

Expert Comment

by:matthewhamer
ID: 21669973
Dependency checker can shed some light on some ropey formulas sometimes:

Report --> Check Dependencies
0
 

Expert Comment

by:klinge_ttc
ID: 22374300
I know this forum is already closed, But still I thought I will put my comment because I could not get a proper answer from anywhere. But it worked for me.
We were having crystal reports 9 with vb6 and we upgraded to crystal report 10 with VS2005.
When I brought some reports some said "Failed to Save Document".
After lot of trial-n-error, I found out that in my old version, the table from which report was build was having space in between, eg. "The Table". So what I did is went into Database-Database Expert and renamed it to "TheTable" without space. And save as new report. And then imported that report into VS2005.

Hope that helps.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sort by a cross tab in crystal report 2 49
How to pass a value from vb.net 2013 form to a Sap Crystal Reports 4 100
free Crystal Report viewer 4 18
Sum of multiple formulas 6 17
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 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