SSRS subscription throwing Invalid State error when saving - reporting-services

I have migrated to a new report server. When trying to create new subscriptions through the URL I am getting the following error:
Operation is not valid due to the current state of the object.
I found that a certain windows KB can cause this issue (KB2656356 and KB2656351) However I have found that adding a key to the web.config file might also do the trick.
<https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb6ede72-6ed1- 4379-9d3c-847c11b75b32/report-manager-operation-cannot-run-due-to-current-state- of-the-object?forum=sqlreportingservices/>
But after adding this key and bouncing the services, no change. I still get the error. Has anyone experienced this?
ui!ReportManager_0-1!5144!03/21/2017-10:23:17:: e ERROR: System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-2!5e0!03/21/2017-10:23:18:: i INFO: Call to GetSystemPermissionsAction().
ui!ReportManager_0-1!5144!03/21/2017-10:23:18:: e ERROR: HTTP status code --> 500
-------Details--------
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-2!5e0!03/21/2017-10:23:18:: i INFO: Call to GetSystemPropertiesAction().
ui!ReportManager_0-1!5144!03/21/2017-10:23:18:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
The SSRS version is 11.0.3000.0. It is a native install. I am creating the subscription through the report server URL "businessreport/reports";. It seems directly related to the amount of available parameters. In my case if I pair down the amount of items including the report, then I don't have an issue. Obviously i can edit the report to fix this, but I inherited a very large amount of reports. I'd rather be able to pass as many as necessary. Hopefully that helps
Also I have tried editing the web.config file in both of the following directories:
I:\MSRS11.SQLPROD\Reporting Services\ReportManager
and
I:\MSRS11.SQLPROD\Reporting Services\ReportServer
I included the following: This did not make a difference at all.

Related

"Invalid Column Name" error on old database value

I have made changes to my database on one of my table. Before I had this field:
ORDER_AMOUNT
which was a NUMERIC(5,2) field.
The field has been renamed like this:
ORDER_DETAIL_AMOUNT
But ever since then each time the app tries to take something from this table, this error occurs:
Invalid column name 'ORDER_AMOUNT'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'ORDER_AMOUNT'.
I'm completely new to MySql and I'm using Visual Studio 2012, can anyone help me out understand what's the problem and how to fix this?
Same thing then : You renamed it in the design so you have to rename it in your app to.
There is probably a place where you refer to ["ORDER_AMOUNT"]. Now the app expects to see this column in the database. Since it is now called ["ORDER_DETAIL_AMOUNT"] it won't find it and will give you the error.
Change the name in the app. And Voila.

PowerBuilder Find function throws an error "expression is not valid"

What is wrong with this code. I am checking whether there is an available record in the database before inserting a new serial number. When I enter any record whether available or not, it throws an error message:
"Expression is not valid". (PowerBuilder Classic 12.5 and SQL Server
2008)
If This.GetColumnName() = "serial_No" Then
long ll_serial
ll_serial=dw_newrecord.find(data, 1, dw_newrecord.rowcount())
if ll_serial>0 then
messagebox("validation error", "The record already exists")
return 1
end if
End If
It is likely that your data expression has a syntax error. It can be some misformed code -like missing quotes- or maybe that the column name is incorrect.
To help for tuning a filter or find expression, you can test it in the datawindow design screen via the Rows / filter menu.
A better solution for long-term coding design would be to integrate the Datawindow Debug Machine (made by a colleague of mine) to your project. It is a precious tool to prototype datawindow expressions for finding, filtering but also for dynamic objects creation / modification in a datawindow. And while correctly interfaced with a datawindow ancestor of your project, it can help with filters and find expression errors like here.
EDIT: As RealHowTo noticed, the tool has been updated. Here is the current latest version (but there is no updated demo screencast though).

object required error

Can anyone tell me the reason for this error message in report manager? My report works fine in tool. My second parameter is cascaded (derived from) to the first parameter.
When I run the report for first time it works, but when immediately change any other parameter and try to execute it gives me no data in the result and the web page shows this error:
Line: 13
Char: 692
Error: Object Required
Code: 0
Why do I receive this error?
Sounds like Javascripts version of a NullReferenceException. If that is the case, there are a billion different reasons why this could happen.

LinkDataSource can't load DataContext

I am trying to populate a dropdown list control on an web page using VS 2008 and keep getting an error that it can't load the DataContext. My backend is a SQLx server 2005 DB. I create a Link To SQL data context and have 1 table in it. My LinKDataSource is as follows -
asp:LinqDataSource ID="LinqDataSource1" runat="server"ContextTypeName="DACDataContext" TableName="portfolio">
/asp:LinqDataSource
My dropdown definition is:
asp:DropDownList ID="ddlPortfolio" runat="server" Width="165px" DataSourceid="LinqDataSource1" DataTextField="porfolio_name"
DataValueField="portfolio_id">
/asp:DropDownList
I can see in my properties of my DatContext that the ContextTypeName is DACDataContext
The pecific errors I get are:
HttpException (0x80004005): Could not load type 'DACDataContext'.
and
InvalidOperationException: Could not find the type specified in the ContextTypeName property of LinqDataSource 'LinqDataSource1'.]
I know this must be something really stupid but I am at my wits end.
Please help.
Verify that DACDataContext is public and you may also try fully qualifying the type (ie. ContextTypeName="MyNamespace.DACDataContext")

Linq 2 SQL on shared host

I recently ran into an issue with linq on a shared host.
The host is Shared Intellect and they support v3.5 of the framework. However, I am uncertain to whether they have SP1 installed. My suspicion is that they do not.
I have a simple News table that has the following structure:
NewsID uniqueidentifier
Title nvarchar(250)
Introduction nvarchar(1000)
Article ntext
DateEntered datetime (default getdate())
IsPublic bit (default true)
My goal is to display the 3 most recent records from this table. I initially went the D&D method (I know, I know) and created a linq data-source and was unable to find a way to limit the results the way I desired, so I removed that and wrote the following:
var dc = new NewsDataContext();
var news = from a in dc.News
where a.IsPublic == true
orderby a.DateEntered descending
select new { a.NewsID, a.Introduction };
lstNews.DataSource = news.Take(3);
lstNews.DataBind();
This worked perfectly on my local machine.
However, when I uploaded everything to the shared host, I recieved the following error:
.Read_<>f__AnonymousType0`2
(System.Data.Linq.SqlClient.Implementation.ObjectMaterializer`1<System.Data.SqlClient.SqlDataReader>)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException:
.Read_<>f__AnonymousType0`2
(System.Data.Linq.SqlClient.Implementation.ObjectMaterializer`1<System.Data.SqlClient.SqlDataReader>)
I tried to search the error on Google, but met with no success. I then tried to modify my query in every way I could imagine, removing various combinations of the where/orderby parameters as well as limiting my query to a single column and even removing the Take command.
My Question therefore comes in 3 parts:
Has anyone else encountered this and if so, is there a "quick" fix?
Is there a way to use the datasource to limit the rows?
Is there some way to determine what version of the framework the shared host is running short of emailing them directly (which I have done and am awaiting an answer)
System.MethodAccessException is thrown by the framework when it is missing an assembly, or one of the references are of the wrong version.
The first thing I would do is try uploading and referencing your code to the LINQ assemblies in your BIN, instead of the shared hosting providers GAC.