on 10-10-2014 10:19 PM
With Studio 10 and Crystal 11 I've been running a report for a number of months with no issues.
I have these two lines of code after getting my first dataset:
UCRpt.Load(reportPath)
UCRpt.SetDatabaseLogon(etc)
As I said in the header I'm suddenly getting prompted to log into the database by the report view for one of the datasets.
Nothing about the dataaset was changed and I'm pulling my hair out.I checked the result incoming data and it appears to be what it's supposed to be. Additionally, when I reverted to the inline code that had been running previously I still got the prompt, which I didn't expect under any circumstance.
I did change the code from inline queries to stored procedures, but I've checked the content for each of the procedures and there's been no change to the output columns.
Any thoughts?
Perhaps a column data type or size has changed. Use Crystal Designer to do
Database, Verify Database...
against the Stored Procedure. This would re-sync the report with the data source.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's a picture of the reference. There is no dataset with that name and this dialog won't let me delete this reference. Is there anyway to remove it?
The dataset with that name was removed from the project and deleted. This is the last instance of that object name string and I've no idea how to make it go away.
Thanks
Chrsi
Since it won't let you delete it, I suspect that it was used in a report that's part of your project. Please edit each report and look at what it's using in the Database Expert. If it is using this old dataset, you'll need to use "Set Location" on the Crystal>>Database menu to change it.
-Dell
It seems confused. As you can see it's got one version at the top and it's point to correct version. The difference in the character string. One is "propertylost" and the other is "property_lost".
I want to keep the second and get rid of the first. Is there an easy way to remove the bogus database connection identifier? The proper one is "dsUCRProperty_Lost".
If I look at this from a different angle....
There is a main report with about 16 sub-reports. Until just the other day this was working just fine. Now, with no change to the underlying dataset object, one of the sub-reports has decided it needs to prompt for the database login. I had that problem quite awhile ago, but it based on missing information in the web.config file. Once that was dealt with I've not had this prompt since.
As shown above the report has the necessary database login information. I use the same process (pattern) for connecting data to the sub-reports which is; mySubRep.SetDataSource(dsName)
This works all the time on my desktop and has worked for months from the web servers. And then about a week and a half ago, for the particular sub-report, it stopped and I get prompted to login.
Any body got any ideas?
I have finally caught the Logon Failed error in the diagnostic log. Does this help anybody? Sometimes I get this error, sometimes I do not. I still have not figured out why.
..\..\src\print\datasource\dsmgr.cpp:4474,Analyzing report for group by,User selected not to group on server,""
N/A:-1,Analyzing report for group by,Elapsed Time,"0"
..\..\src\print\datasource\dsmgr.cpp:4419,Analyzing report for group by,Start Time,"09:56:41"
..\..\src\print\datasource\dsmgr.cpp:4420,Analyzing report for group by,Analyzing for formatting,"TRUE"
..\..\src\print\datasource\dsmgr.cpp:4447,Analyzing report for group by,First visible level,"4"
..\..\src\print\datasource\dsmgr.cpp:4463,Analyzing report for group by,Details section is visible (require all levels),""
N/A:-1,Analyzing report for group by,Elapsed Time,"0"
..\..\src\print\datasource\dsmgr.cpp:657,createNewDataSource,Start Time,"09:56:41"
N/A:-1,createNewDataSource,Elapsed Time,"0"
..\..\src\crpe\crpe4.cpp:2673,GetNthTableDataConnection diagnostics,Start Time,"09:56:41"
..\..\src\crpe\crpe4.cpp:2674,GetNthTableDataConnection diagnostics,<jobid,table:connection> pair is ,"<1,0:2>"
N/A:-1,GetNthTableDataConnection diagnostics,Elapsed Time,"0"
..\cserrinf.cpp:511,Creating new error object,Start Time,"09:56:41"
..\cserrinf.cpp:512,Creating new error object,Code,"31816"
..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
N/A:-1,Creating new error object,Elapsed Time,"0"
..\cserrinf.cpp:511,Creating new error object,Start Time,"09:56:41"
..\cserrinf.cpp:512,Creating new error object,Code,"31816"
..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
N/A:-1,Creating new error object,Elapsed Time,"0"
..\..\src\crpe\crpe4.cpp:2673,GetNthTableDataConnection diagnostics,Start Time,"09:56:41"
..\..\src\crpe\crpe4.cpp:2674,GetNthTableDataConnection diagnostics,<jobid,table:connection> pair is ,"<1,0:3>"
N/A:-1,GetNthTableDataConnection diagnostics,Elapsed Time,"0"
..\cserrinf.cpp:511,Creating new error object,Start Time,"09:56:41"
..\cserrinf.cpp:512,Creating new error object,Code,"31816"
..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
N/A:-1,Creating new error object,Elapsed Time,"0"
..\cserrinf.cpp:511,Creating new error object,Start Time,"09:56:41"
..\cserrinf.cpp:512,Creating new error object,Code,"31816"
..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you find any resolution besides rebuilding your report?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.