SSRS 2017 Subscription Won't Open - reporting-services

I'm running SSRS on an OS 2016 standard and SQL Server 2017 and PowerBI. We're having problems, but I'll address one issue at a time.
I cannot open subscription services. I've successfully done this without problems in SQL Server 2012, but not the new box. I'm an administrator on the box and have every capability available for security - my role on the SSRS site is Admin. The error reads:
An error has occurred. Something went wrong. Please try again later
Here's the log file - but I can't find a 200 reference anywhere?
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 500, Elapsed time
0:00:00.0107581 | RequestID = s_10ee693e-a340-45d7-a021-6a30961fef3c
RSPortal!reportserverwebapp!RSPortal.exe!3!05/14/2018-10:57:27:: i
INFO: Received request GET /api/v2.0/me | RequestID =
s_77bbe02a-f5f4-4767-b1a3-7da5c58dba72
RSPortal!reportserverwebapp!RSPortal.exe!d!05/14/2018-10:57:27:: i
INFO: Received request GET /api/v2.0/schedules | RequestID =
s_8a7661ed-20ff-4585-8313-1c5df05dd236
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.0093358 | RequestID = s_8a7661ed-20ff-4585-8313-1c5df05dd236
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.0448676 | RequestID = s_77bbe02a-f5f4-4767-b1a3-7da5c58dba72
RSPortal!reportserverwebapp!RSPortal.exe!3!05/14/2018-10:57:27:: i
INFO: Received request POST /api/v2.0/schedules/model.describe |
RequestID = s_01998a7b-43fb-4825-8ba6-e90a911b39b7
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:28:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.1642061 | RequestID = s_01998a7b-43fb-4825-8ba6-e90a911b39b7
Any help appreciated.
Thanks

After days and days of searching found this that worked:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/6e831bc2-377e-47e6-a3bd-d601aa34438b/ssrs-subscription-settings-and-error-logs?forum=sqlreportingservices

I was getting this message when trying to view subscriptions for an SSRS report.
For me, the issue was that somehow the subscription parameters became invalid. This may or may not have been because we did a SQL Server upgrade. After the upgrade I noticed that the requirements for creating a subscription are very stringent about how the date is typed in for date values.
The solution for me was to run a script like this on the report server DB.
update s set s.parameters = '<ParameterValues />'
FROM ReportServer.dbo.Subscriptions s
INNER JOIN ReportServer.dbo.Catalog c
ON s.Report_OID = c.ItemID
AND s.Description = 'Some name'

my issue was a bit more silly, but I thought I would share anyways. My datasource was pointing to an outdated database. I'm not sure why the error couldnt have just told me the datasource was having problems, but either way, updating it fixed the issue for me.

Related

Access is denied. Check credentials and try again - occurs occasionally

I've created Outlook Addin and I have an issue with email handling in C# by Exchange Api 2.2. Form time to time I get such error from users "Access is denied. Check credentials and try again" when trying to execute this code (use are mailbox owners and have full rights):
var selection = Adapter.Instance.OutlookApplicationRef.ActiveExplorer().Selection;
string entryId = selection[1].EntryID;
EWS.AlternateId objAltID = new EWS.AlternateId();
objAltID.Format = EWS.IdFormat.HexEntryId;
objAltID.Mailbox = "myemail#test.test";
objAltID.UniqueId = entryId;
//Convert PR_ENTRYID identifier format to an EWS identifier.
EWS.AlternateIdBase objAltIDBase = esb.ConvertId(objAltID, EWS.IdFormat.EwsId);
EWS.AlternateId objAltIDResp = (EWS.AlternateId)objAltIDBase;
string ewsId = objAltIDResp.UniqueId;
var psToLoad = new EWS.PropertySet(EWS.BasePropertySet.IdOnly, EWS.EmailMessageSchema.InternetMessageId, EWS.EmailMessageSchema.Sender,
EWS.EmailMessageSchema.ToRecipients, EWS.EmailMessageSchema.CcRecipients, EWS.ItemSchema.Body,
EWS.EmailMessageSchema.MimeContent);
var EWSEmailMessage = EWS.EmailMessage.Bind(service, ewsId, psToLoad);
I get this error on "EmailMessage.Bind" from time to time only. For 99 % of users it works. I have something about 5000 of users. We compared configuration in Exchange and everything is the same like with users where application works correctly. Maybe there is a better way to get email information using selected email in Outlook (2010).
I've come across this error and what we found was it was a faulty calendar permission on one of the permissions on the mailbox you are trying to access.
Hope this helps

SQL Server 2008 blocked process report error in extended event [duplicate]

This question already has answers here:
extended events blocked process report missing from sys.dm_xe_objects
(2 answers)
Closed 5 years ago.
Trying to create an extended event in SQL Server 2008 to capture the blocked process report. Here is the script I am using:
CREATE EVENT SESSION [IA_BlockedProcesses] ON SERVER
ADD EVENT sqlserver.blocked_process_report(
ACTION(sqlserver.client_app_name,
sqlserver.client_hostname,
sqlserver.database_name)),
ADD EVENT sqlserver.xml_deadlock_report (
ACTION(sqlserver.client_app_name,
sqlserver.client_hostname,
sqlserver.database_name))
ADD TARGET package0.asynchronous_file_target
(SET filename = N'c:\Isaac\blocked_process.xel',
metadatafile = N'c:\Isaac\blocked_process.xem',
max_file_size = (65536),
max_rollover_files = 5)
WITH (MAX_DISPATCH_LATENCY = 5SECONDS)
GO
And when I run the script, I get this error:
Msg 25623, Level 16, State 1, Line 7
The event name, "sqlserver.blocked_process_report", is invalid, or the object could not be found
I believe either I am not approaching this correctly, or the blocked_process_report is not available in this version of SQL Server.
When I run this query:
SELECT *
FROM sys.dm_xe_objects
WHERE name = 'blocked_process_report'
...there are no results.
Can anyone confirm for me definitively whether A) the blocked_process_report is indeed available in SQL Server 2008, and B) if my code above needs changed?
Thanks in advance
Mods - please close this as a duplicate.
After I posted this, then I was able to find this one:
extended events blocked process report missing from sys.dm_xe_objects
Looks like the blocked process report wasn't added as a traceable event until SQL Server 2012.
Thanks

EWS SyncFolderItems is giving me exception "An internal server error occurred. The operation failed."

I have a Synchronisation tool which uses EWS Managed API 'SyncFolderItems' to retrieve changed items in a Calendar folder. It has been running fine for 18 months or so but this week two customers both experienced the same issue. (Could be a coincidence). Both are Office 365 customers.
The sync started failing to complete, and on closer analysis, the SyncFolderItems call was failing with error "An internal server error occurred. The operation failed." No further details given in the error.
I reset the sync (ie set the syncstate back to null so it sync everything in the folder again) . It worked fine for several pagination iterations getting 250 items at a time, but them at some point it failed.
I thought maybe there was an item with alot of data. I reduced the page size to 25 and it worked OK for a bit, then failed. I reduced it a page size of 1 and it fails. There are 1250 items in the folder, so I haven't worked out which item it is failing at yet. It seems inconsistent and I wonder if there is a throttle which has been set higher recently?
I think my next step is to see if there is one offending item and delete it, but its hard work out which item it might be.
Does anyone have any suggestions for what might be going wrong?
icc = service.SyncFolderItems(Connection.SourceID, ps, null, 1,
SyncFolderItemsScope.NormalItems, syncstate);
I having the same issue with SyncFolderItems(..).
The problem seems to exist only in public folders? I tested with a public calender folder. If I call SyncFolderItems for the first time with no status, I get no error. But if I have a status and delete one item in the public folder, I get this error on the next call of SyncFolderItems().
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2016, TimeZoneInfo.Local);
service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
service.Credentials = new WebCredentials("x.y#germany.de", "pwd");
Folder f1 = Folder.Bind(service, new FolderId("SOMEFOLDERID OF A PUBLIC CALENDAR FOLDER"), BasePropertySet.FirstClassProperties);
Console.WriteLine(f1.DisplayName);
String status = "";
do
{
ChangeCollection<ItemChange> changes = service.SyncFolderItems(f1.Id, BasePropertySet.IdOnly, null, 100, SyncFolderItemsScope.NormalItems, status);
Console.Write(changes.Count+",");
status = changes.SyncState;
} while (true);
ServerInfo: {15.01.1101.019} V2017_04_14

Inconsistent time difference in facebook post graph API

Recently, i'm making an application which retrieve facebook posts of a page for a certain date. The issue that i've encountered is, there are some inconsistencies between the post unix time and the displayed date for some posts.
This is an example that i've found:
Created time from JSON reponse : "created_time": "2013-03-09T18:58:20+0000"
Displayed date :March 10, 2013 at 1:58am
The time difference is : 1:58 am - 18: 58 pm = 7 hr
then, for another post:
Created time from JSON reponse : "created_time": "2013-03-09T19:03:17+0000"
Displayed date :March 10, 2013 at 3:03am
The time difference is : 3:03 am - 19: 03 pm = 8 hr
And no, I didn't change my timezone inbetween displaying those two JSON response.
I use graph API and 'since until' parameter with unix timestamp for getting the JSON response.
Is there anyone who can explain this issue?
Thanks in advance! :)
After much more time spending on it..i found this helpful link to implement in my project...
i hope it may helpful to u also..
How to convert Date from facebook api into android app date format

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.