The error I'm getting is "Run time error 20534, Error detected by database dll". When I step through in the debugger, the offending line in the VB code is the ".Action=1" command that I understand actually executes the report.
From what I read online, the 20534 error is mostly a generic crystal message that covers a variety of things. For the database dll message, most things point to a problem in the query the report is running. Here's the problem - I can open and run the report in report designer just fine. No problems at all. In fact, I can debug the VB, and while it's sitting at the .Action line erroring out, I can open the .rpt file and run it and it pulls the current data I'm expecting.
What the heck do I try next? Other crystal reports work on the same server that this is running from, and reinstalling crystal isn't really an option. Is there a DLL I can try and reregister? Is there something else to try? Thanks much for ANY ideas or help!
1) Is your application logging the report onto the database? See if it's using LogonServer or SetNthTableLogon methods. This is the most common reason for this problem. If the database has moved and the report isn't able to logon, you'll get this error.
2) If you open the report in Crystal and point it to the current database, does the report give a message about the database changing? If it does, go to Database Verify on Every Print and resave the report.
Thanks for the tips! Sorry about not including the database, I'm connecting to a SQL Server 2000 instance. I'm not sure how the application is logging in, I'll have to check tomorrow when I get in. I want to say it's using LogonServer...actually, now that I think about it it's doing something like:
When I open up the report by itself in Report Designer, it doesn't say anything at all about the database having changed. I've manually verified the database, resaved the report, etc. It's soooo strange.
And this way of doing things works a number of times throughout the rest of the app - it just seems to be a problem with this report. But yeah, if I step through, at the point where it errors I can open the report by itself and execute it without any problems. It doesn't complain about a bad query, or needing to verify the database, or anything.
This report pulls from a table that is populated from an input text file that the VB app uses. So basically the VB app loads a text file into SQL, then calls the Crystal report to report on the data. When I was testing, it was taking too long with the test file so I truncated it so there were a smaller number of records. (!!) That made me think that there was perhaps a size limit on the crystal report, or bad data or something. But then why can I run the report by itself from outside of VB, calling the same datatable and everything??
I've seen it where setting some parts of report objects in code will cause the report to become corrupt. There is no fix for courrupt reports other than re-building the report. And sometimes not setting all of the variables in an API will cause issues also.
Are you verifying the database in your app, or testing connectivity? Try setting the Mapping event in the viewer control and to pop up a message box. Set Mapping to Prompt mode, this way CR Field Mapping UI will appear if for some reason our field mapping is having a problem at run time.
It may be that for some reason at runtime your DB dependencies are not found. Try connecting to the DB directly and some other table other than your. Use Pubs or the sample database to test and see if that throws any errors.
From: keyurdesai via vb-crystalreports-l
[mailto:vb-crysta...@Groups.ITtoolbox.com]
Sent: 23 July 2010 05:04
To: Martin Walke
Subject: RE:[vb-crystalreports-l] Runtime error. Error detected by
database dll in crystal report using VB
We have been analyzing and we realized that the error happens when we use the ThreadedJiraCall.run () method.
During execution, a process is created and saved in the database, but even using Transaction.commit () it is not writing in the database, it just remains in memory.
We are using flyway to manage database schema version and we are facing a problem. Since we work as a team and use git as our source code management, there would be some cases that different people update database schema on their own local repo. If that happens, we will get
The time "2016.03.17.16.46" was added by another person and I have already applied some timestamp later than that time. If that happens, we have to clean all database tables and create them again. We have tried to set false on validateOnMigrate and did flywayClean, but nothing help. Is there another way to change that?
I faced similar problem when switching from one git branch to another and tried to runflyway:migrate.For example when I was on branch 'release_4.6.0' I didn't have migrations on my local machine from branch 'release_4.7.0' soI received next errorFlywayException: Validate failed: Detected applied migration not resolved locally.The solution that worked for me is to set ignoreMissingMigrations flyway option to true.In maven it looks like
outOfOrder did not fix the problem for us.
Two migrations slipped into one deployment before it got removed.So we added those migrations back in and undid the changes in another migration.
Worked ?
In my case, there was existing a row with version 319 in database and the correponding file for 319 was renamed do 330, so the database registry could not find the corresponding file. Deleting the row from database solved the problem.
I've seen this asked on Reddit, but not here. Apparently since the MB update to 5.6.0+247, Trusted Advisor says I need to update the detection database, but it won't do it -- it just returns. It does seem that once per day I get an update, but the other updates (hourly) just say "There was a error. Please retry" (yes, "a error" not "an error"). I don't think it's just a display issue as the Malware detection version stays the same (.01 for each day). I sent Support logs and was asked to check battery optimization etc. which I did. Seems this type of error happens a lot at various releases. I've rebooted, checked all parameters I can. Phishing detection version is 2024.03.03.10 which is a bit concerning since it's now 12 days old. It typically updates on Wi-Fi automatically. Have tried turning that off to run from mobile data as well, no change.
Incident closed. Worked with support but unable to resolve via logs and other checks. Based upon their recommendation I cleared the cache, uninstalled MB and reinstalled. The dashboard at least is clear, however, the database does not update automatically -- I have to manually tell it to do so which is unfortunate, since the Update frequency is set to every 3 hours and I would expect it to be automatic, as it was in previous versions. Manual updates seem to work. I will just continue to do that for now.
Hi,
I am trying to generate the artwork files of my pcb layout on Orcad 17.4 and I get the error "Database has errors, artwork generation canceled. Please run dbdoctor".
After I run the dbdoctor, I get the messages below. Two errors were detected and fixed. So, I try one more time to generate the artwork, and I get the same error message
stating that I need to run dbdoctor.
The problem seems to have been caused by using a Time Machine backup to install all my apps/files on a new computer with different CPU technology, e.g. moving from Intel to Apple M2. Apple silicon has been out a long time. Seems like this problem would have been solved by Agile Bits, or at least documented very clearly.
You're most welcome. The team is still looking into the situation and they have some ideas on how to best move forward. If you have other questions you're free to followup in that email exchange. Have a great weekend. ?
I am having the problem listed in this thread as well. I just migrated to a new 2023 iMac and am trying to resolve this. I get this message - "1Password has detected an error with your local app database, please contact sup...@1password.com".
Hi, im pretty new in this GCP thing, I already worked for the first time in Microsoft SQL Server database, which I now want to migrate it to Cloud SQL Server. I did upload the .bak file in the Bucket, then import it but still it the "Multiple databases in the file" which is wrong, I dont have any on that, its just a bunch of tables with Data.
I did tried to backup with some variations but I couldn't make it work.
I'm sorry to hear you're having trouble migrating your Microsoft SQL Server database to CloudSQL SQL Server. There can be a variety of reasons why this might be happening, but let's try to troubleshoot step by step.
Multiple databases in the backup file: As per your description, you are getting an error indicating multiple databases in the backup file. Cloud SQL does not support importing a backup file that contains multiple databases. You need to ensure your .bak file contains only a single database.
Import the backup file: In the Google Cloud Console, go to the Cloud SQL Instances page. Click on the instance you want to import the data into. Click on the IMPORT button at the top of the page. In the Import window, click BROWSE and select the .bak file from the Cloud Storage bucket. Finally, click IMPORT to start the process.
First one, check. I did check more than a few times that is one and only database and it has the version 2019 (150).
Second as I mentioned, its version 2019 (150), which it should be compatible with Cloud SQL.
Third, I dont know if it had unsupported features, as far as I'm concerned it does not have any.
Four, check. It has the same name and still it gives me the same "Multiple databases...." error.
And last, I did check it up again in my Microsoft SQL Server Management again, I did save a .bak file again.
I will like to try to make it via scripts but I don't have too much knowledge to do that.