Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i made application in vb.net framework 4.0.datatbase is in access.jet oedb driver. I used crystalreport and dataset in it sometimes reports are fetched and sometimes it shows errror 
-> invalid arguement provided. failed to retrieve data from database.
->application crashed
->this field is not known.error in formula
->blank report is displayed


What I have tried:

Please help me out regarding it
Posted
Updated 8-Feb-18 12:59pm
Comments
Maciej Los 7-Feb-18 2:30am    
We don't see your screen and we don't have an access to your HD. Please, be more specific and provide more details. At this moment your question is too broad to answer it.

1 solution

The problem is probably exactly what is in your error message - invalid argument & error in formula

If the report always returns this error when you pass a specific set of parameters then you need to determine why, it could be data or your report. Running the Report with those parameters in Crystal should give you the same error but it will also identify what the error is.
Troubleshoot that problem, there is several ways of doing it;
a) In Crystal use the Show SQL Query menu item on the Database menu - this is the raw data that Crystal receives from the database & can be copied and pasted as a query to your respective Query tool (SSMS for SQL, Access query designer etc) - you will probably need to remove quotes.
Does this query work? Does it return the data you expect?
b) For formula fields, right-click the field in the Field Explorer & select Find in Formulas
Review all of the formulas
c) If the issue is a specific value in a formula, actually look at that value - easy way is to just drag it to the Group Header or Detail & check it - is it what you expect
d) If none of these work you can always comment out formulas & re-run to identify which is causing problems

Based on the provided information, I would suggest that you have a section (or several sections) that are suppressed unless certain data is present or parameters are provided. That is why it works sometimes but not others, you need to work out why & without the database, report & information on what set of parameters breaks the report we cannot

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900