Query execution failed for dataset. (rsErrorExecutingCommand) - c#

I've developed few reports. More of them are working fine in develop environment. after successfull testing they were published on web. But one of them if I press "View Report" following error occurs.
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'xxx'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors

My dataset result doesnt get. I changed my sp result and it solved it. Maybe this help someone.
Thank you

Related

9022 SQL ERROR while executing CREATE DATABASE query through .net code

When i try to execute CREATE DATABASE query from .net code,
"CREATE DATABASE TESTDB_RE ON (NAME=TESTDB_RE_dat, FILENAME='D:\Test.mdf', SIZE=4MB, FILEGROWTH=4MB) COLLATE Latin1_General_CS_AS;"
I am getting error
"Detail=[9022],Msg=[The log can not be initialized because the log files are not fully formatted. Database 'TESTDB' cannot be opened due
to inaccessible files or insufficient permission" error.
I checked microsoft documentation for 9022 error but not getting sufficient information for the cause of 9022 error.
Any help would be higly appreciated. Thanks.

Permission error when setting SSRS report parameters in C#

experts,
I'm inheriting a C# script to render a SSRS report. The script throws the following exception when it tries to set the report parameters ( serverReport.SetParameters(parameters): )
Microsoft.Reporting.WinForms.ReportServerException: The permissions granted to user 'domainName\userName' are insufficient for performing this operation.
However, I am able to execute the report on the report manager without any problems. For Datasource setup, I selected "Credentials stored securely in the report server", filled in the above username (domainName\userName) and the password fields, and checked the box "Use as Windows credentials when connecting to the data source". The report runs successfully on the report server.
Additonal info: The processing mode for the report viewer is set to remote in the C# script (reportViewer.ProcessingMode = ProcessingMode.Remote).
I don't understand why the credential works when executing the report on the report server, but not when accessing it through the C# script. I'm very new to C# and any help and info will be greatly appreciated.
Thanks in advance.
Problem solved.
It turned out that additional permission is needed for the report on the report server. After the DBA granted the account access to the report folder, the problem is solved.

ScriptManager - AsyncPostBackTimeout to "0"

I have designed a report in report builder 3.0 using dataset which is using store procedure from sql server 2008 r2. It works fine if i pull less information from database but if i try to pull large information then i get 'The Operation has Timed Out' message in report builder.
I am showing this report in VS2012 using report viewer but i am getting following error message on pulling large information from database.
Message: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
I have google this issue and came across following article;
http://blogs.msdn.com/b/selvar/archive/2012/06/18/reportviewer-2010-control-fails-with-sys-webforms-pagerequestmanagertimeoutexception-the-server-request-timed-out.aspx
After setting script manager property AsyncPostBackTimeout to "0", report works fine.
In my project Script Manager control is in master page, i am just wondering if setting AsyncPostBackTimeout to 0 in master page would cause any issues?

RDLC Report works fine for local users;doesn't work elsewhere

App built with VS (WPF and C#). Added RDLC report. Users here have no problem displaying report. Elsewhere error is: 'Set connectionID threw an exception', 'Line number '7' and line position '14'.
The users that are not local have no problems running the app, just the report. The same user with the same login can come here and run the report, but go there and they get the error.
I have full admin rights/superuser. I go there, use a computer and get the error. I took a laptop from here to there and it displayed the report. I then disconnected the laptop from the wireless and used the same ether cord that the computer that would not display the report used and the report ran fine. Changed the timeout to 60 secs. No difference.
Believe it may be where the temp file is writing, but can't find the temp file.
Any thoughts?
Thanks very much

Crystal Reports (VS 2010) report not showing up and not throwing any errors

I'm trying to get a Crystal Report to show up on a web page. My code looks like this:
ReportDocument rd = new ReportDocument();
rd.Load(#"C:\projects\reports\testreport.rpt");
rd.SetDatabaseLogon("sa", "thepassword");
CRViewer.ReportSource = rd;
I've worked through several actual errors already to get to where I am now. The last error I had was that the connection couldn't be made, but when I added the SetDabaseLogon call to use SQL Server Auth security instead of integrated that problem was fixed.
Now I am not getting any error at all but the report simply doesn't show up.
I'm at a loss as to what to try now, any ideas would be appreciated!
(I don't know if this is really relevant or not, but this is in a SharePoint web part that I'm creating.)
Try adding this line:
CRViewer.Show();
If it isn't that simple, then I'd run the application outside of the webpart wrapping to at least confirm/deny if it being in SharePoint is related.

Categories