SSRS 2012 subscription running twice
Hi,
We have a data driven subscription that creates and xml file for export to a third party for processing. This has been working fine for several months but now it is running twice for a single schedule.
I found a thread (https://social.msdn.microsoft.com/forums/sqlserver/en-US/55a8410f-e29e-4918-9cce-3de525755236/sql-server-2008-r2-subscription-running-twice) which has a similar story but for me the SSRS log doesn't help. All this shows is that the job
ran successfully twice.
We are using SQL Server 2012 Enterprise.
Any suggestions would be appreciated?
JST
Hi John,
Per my understanding that your data driven subscription one day suddenly send the same subscription twice one day which work fine before, right?
Does the problem occurred only once or many times? The issue can be caused by many factors:
When a scheduled operation is defined, the report server creates a corresponding job in SQL Server Agent and runs the job on the date and time specified in the schedule. If somebody run the subscription manually after the job executed, the users can got
two emails, so please make sure the subscription isn’t run manually during the time by someone.
The SQL Server Agent service calculates an incorrect NEXT_RUN_TIME value for the job. Therefore, the job does not always run at the correct times. This issue occurs because an error causes a date value to be changed unexpectedly, the date value is used
to calculate the NEXT_RUN_TIME value. If you got the subscription execute twice many times. please edit reset the subscription.
Did it sent twice with the same time, if you have one subscription failed to send at the proper time and it have delayed, it may be send at the next time.
Gererally, use SQL Server Agent Service to fire an event. This event will add a record to a table in ReportServer database. SQL Server Reporting Services windows services monitor the table, if the table has data, a subscription will be delivered, and
the record will be deleted.
In this case, the issue seems to be caused by the record is not deleted correctly. It should happen because the record is locked when there has many subscriptions at the same time.
To fix the issue, please make sure we don't have multiple subscriptions which are run at the same time.
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support
Similar Messages
-
SSRS 2012 Subscription Error in Test Environment
Hi All,
I was trying to set-up Email Subscription for SSRS in my Test Environment using "Reporting Services Configuration Manager" and after providing SMTP server details. I was getting error "Failed to sent Email to [email protected]"
What could be the reason?
I tried pining SMTP IP address from the Machine where SSRS installed and I was able to ping SMTP Server using CMD ping command.
Thanks Shiven:) If Answer is Helpful, Please VoteHi All,
I found the issue. The IP address of Machine, where SSRS server installed, was not included in to the SMTP relay and that's why I was getting error "Failed
to sent Email to [email protected]".
Once my network team, added IP address, it started working fine.
Another thing I noticed, due to some reason SQL Server Agent was stopped and was not running and one
of my colleagues was trying to create new subscription and was getting error 'The SQL Agent service is not running. This operation requires the SQL Agent service. (rsSchedulerNotResponding)'.
Once I started SQL Server Agent, My colleague was able to create new subscription.
Thanks Shiven:) If Answer is Helpful, Please Vote -
I have a SharePoint 2010 Reports library that has reports with old subscriptions. Whenever a user tries to add a subscription or edit one by selecting the ellipsis to choose this particular library we get the SharePoint correlation error that really
doesn't provide much information. We can successfully add the subscription by manually entering the folder path into the subscription without using the ellipsis or by using another library to store the subscriptions in. I've looked at the Reporting
services logs but I don't see much there either.
There was someone with a similar issue with SharePoint 2013. I've added the name of the article below but I haven't found anything about SharePoint 2010. Any ideas are welcome....
Unable to create or edit SSRS 2012 subscriptions on reports stored in SharePoint 2013 document libraryIf you re-publish the report, can you create a subscription from it? Remember that with SSRS 2012 and higher, you need to have Contribute rights to the report to create subscriptions.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
SSRS 2012 Reports freeze after first run in IE 11
Hello,
We have just recently upgraded/migrated from SSRS 2008R2 to SSRS 2012 sp2 (Windows 2012 R1).
We have found one report so far when using IE 11 that after the first run from the client side Internet Explorer freezes. The report normally takes 4-5 seconds to run. I have waited an hour and the report has not resolved.
The same report runs fine in Firefox or Chrome, even after multiple runs. It also continues to run fine from our SSRS 2008R2 server from IE 11.
I have tried private browsing and it still only runs once and will not run again. I have tried compatability mode and it will not run either. I have also noted that it will crash our ERP system (java based) when it is running at the same time
in IE as when I run this report. Other reports seem to work fine.
The report is simple, it is just a report of subscriptions from ReportServer. There is some XML parsing in there though. It is the only difference that I can see in all the other reports on the system. Oh, the report runs fine from
Visual Studio 2012. I have redeployed, and no luck yet.
Here is my query
WITH [EMAIL]([SubscriptionID], [EmailLine]) AS
SELECT I.[SubscriptionID],
I1.rows.value('Value [1]', 'VARCHAR(MAX)') AS [EmailLine]
FROM (
--if the Subscription is an e-mail, get the XML fragment which contains the Email line
SELECT S.[SubscriptionID],
--add a "root" element to create well-formed XML to the "ExtensionSettings"
--(in case it's NULL)
CONVERT(XML, N'<Root>' + CONVERT(NVARCHAR(MAX), S.[ExtensionSettings]) + N'</Root>') AS [ExtensionSettings]
FROM ReportServer.dbo.[Subscriptions] S WITH (NOLOCK)
WHERE --only get e-mail subscriptions
S.[DeliveryExtension] = 'Report Server Email'
) I CROSS APPLY
--pull out elements in the "ParameterValues/ParameterValue" hierarchy
I.ExtensionSettings.nodes('/Root/ParameterValues/ParameterValue') AS I1(rows)
WHERE --only get the Subject field
--I1.rows.value('Name [1]', 'VARCHAR(100)') = 'Subject'
I1.rows.value('Name [1]', 'VARCHAR(100)') IN ('TO', 'BCC','CC')
--get subscription data for all users
SELECT replace([EMAIL].[EmailLine], '@plu.edu','') email_line,
--internally put-together description of subscription
-- S.[Description],
--user-friendly message for what happened the last time the subscription ran
--which may be "New Subscription"
--report path and name
C.[Path], C.[Name],
--start date and end date for schedule
SC.[StartDate], SC.[EndDate],
--when the subscription was modified
S.[ModifiedDate]
FROM --actual subscriptions
ReportServer.dbo.[Subscriptions] S WITH (NOLOCK) LEFT OUTER JOIN
--report details from Catalog
ReportServer.dbo.[Catalog] C WITH (NOLOCK) ON
S.[Report_OID] = C.[ItemID] LEFT OUTER JOIN
--Users (owner)
ReportServer.dbo.[Users] [U1] WITH (NOLOCK) ON
S.[OwnerID] = [U1].[UserID] LEFT OUTER JOIN
--Users (modified by)
ReportServer.dbo.[Users] [U2] WITH (NOLOCK) ON
S.[ModifiedByID] = [U2].[UserID] LEFT OUTER JOIN
--Subscription Schedules
ReportServer.dbo.[ReportSchedule] RS WITH (NOLOCK) ON
S.[SubscriptionID] = RS.[SubscriptionID] LEFT OUTER JOIN
--Schedules
ReportServer.dbo.[Schedule] SC WITH (NOLOCK) ON
RS.[ScheduleID] = SC.[ScheduleID] LEFT OUTER JOIN
--Subjects CTE from e-mail subscriptions
[EMAIL] ON
S.[SubscriptionID] = [EMAIL].[SubscriptionID]
WHERE EmailLine is not null
and EmailLine like '%' + @Email + '%'
and C.[Path] like '%' + @Path + '%'
order by C.[Path]
The other observation that I have is that my CPU utilization goes up from 25% to over 50% when I kick this off. So, it is definitely getting confused about something...
Thank you for your feedback,
ChrisBrad,
I am not sure how to attach the rdl, so here it is inline.
The one thing that is strange is that my test SSRS 2012 SP2 server (Windows 2008R2) the report works. However, their is a difference in the OS. The production server is Windows 2012
The report works in Visual Studio, it works in Firefox, it works in Chrome. Just not in SSRS 2012 SP2 on Windows 2012.
Thanks
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<Body>
<ReportItems>
<Tablix Name="table1">
<TablixBody>
<TablixColumns>
<TablixColumn>
<Width>4.125in</Width>
</TablixColumn>
<TablixColumn>
<Width>2.75in</Width>
</TablixColumn>
<TablixColumn>
<Width>2.625in</Width>
</TablixColumn>
<TablixColumn>
<Width>0.83333in</Width>
</TablixColumn>
<TablixColumn>
<Width>0.83333in</Width>
</TablixColumn>
<TablixColumn>
<Width>0.83333in</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
<TablixRow>
<Height>0.18in</Height>
<TablixCells>
<TablixCell>
<CellContents>
<Textbox Name="textbox1">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Email Addresses</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox1</rd:DefaultName>
<ZIndex>11</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="textbox2">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Path</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox2</rd:DefaultName>
<ZIndex>10</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="textbox3">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Name</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox3</rd:DefaultName>
<ZIndex>9</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="textbox4">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Start Date</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox4</rd:DefaultName>
<ZIndex>8</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="textbox10">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>End Date</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox10</rd:DefaultName>
<ZIndex>7</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="textbox13">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Modified Date</Value>
<Style>
<FontSize>8pt</FontSize>
<FontWeight>Bold</FontWeight>
<TextDecoration>Underline</TextDecoration>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>textbox13</rd:DefaultName>
<ZIndex>6</ZIndex>
<Style>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<BackgroundColor>White</BackgroundColor>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
</TablixCells>
</TablixRow>
<TablixRow>
<Height>0.18in</Height>
<TablixCells>
<TablixCell>
<CellContents>
<Textbox Name="email_line">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!email_line.Value</Value>
<Style>
<FontSize>8pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>email_line</rd:DefaultName>
<ZIndex>5</ZIndex>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Path">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!Path.Value</Value>
<Style>
<FontSize>8pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Path</rd:DefaultName>
<ZIndex>4</ZIndex>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Name">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!Name.Value</Value>
<Style>
<FontSize>8pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Name</rd:DefaultName>
<ZIndex>3</ZIndex>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="StartDate">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!StartDate.Value</Value>
<Style>
<FontSize>8pt</FontSize>
<Format>d</Format>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>StartDate</rd:DefaultName>
<ZIndex>2</ZIndex>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="EndDate">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!EndDate.Value</Value>
<Style>
<FontSize>8pt</FontSize>
<Format>d</Format>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>EndDate</rd:DefaultName>
<ZIndex>1</ZIndex>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="ModifiedDate">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!ModifiedDate.Value</Value>
<Style>
<FontSize>8pt</FontSize>
<Format>d</Format>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>ModifiedDate</rd:DefaultName>
<Style>
<TopBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</TopBorder>
<BottomBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</BottomBorder>
<LeftBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</LeftBorder>
<RightBorder>
<Color>Black</Color>
<Style>Solid</Style>
<Width>1pt</Width>
</RightBorder>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
</TablixCells>
</TablixRow>
</TablixRows>
</TablixBody>
<TablixColumnHierarchy>
<TablixMembers>
<TablixMember />
<TablixMember />
<TablixMember />
<TablixMember />
<TablixMember />
<TablixMember />
</TablixMembers>
</TablixColumnHierarchy>
<TablixRowHierarchy>
<TablixMembers>
<TablixMember>
<FixedData>true</FixedData>
<KeepWithGroup>After</KeepWithGroup>
<RepeatOnNewPage>true</RepeatOnNewPage>
<KeepTogether>true</KeepTogether>
</TablixMember>
<TablixMember>
<Group Name="table1_Details_Group">
<DataElementName>Detail</DataElementName>
</Group>
<TablixMembers>
<TablixMember />
</TablixMembers>
<DataElementName>Detail_Collection</DataElementName>
<DataElementOutput>Output</DataElementOutput>
<KeepTogether>true</KeepTogether>
</TablixMember>
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>email</DataSetName>
<Height>0.36in</Height>
<Width>11.99999in</Width>
<Style />
</Tablix>
</ReportItems>
<Height>0.36in</Height>
<Style />
</Body>
<Width>12in</Width>
<Page>
<PageFooter>
<Height>0.25in</Height>
<PrintOnFirstPage>true</PrintOnFirstPage>
<PrintOnLastPage>true</PrintOnLastPage>
<ReportItems>
<Textbox Name="textbox8">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Globals!ReportFolder & "/" & Globals!ReportName & "/" & User!UserID</Value>
<Style>
<FontSize>8pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Right</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<Left>8in</Left>
<Height>0.25in</Height>
<Width>4in</Width>
<Style>
<VerticalAlign>Bottom</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</ReportItems>
<Style />
</PageFooter>
<LeftMargin>1in</LeftMargin>
<RightMargin>1in</RightMargin>
<TopMargin>1in</TopMargin>
<BottomMargin>1in</BottomMargin>
<Style />
</Page>
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="SQL_ReportServer">
<DataSourceReference>SQL_ReportServer</DataSourceReference>
<rd:SecurityType>None</rd:SecurityType>
<rd:DataSourceID>77e94914-07c8-421a-b785-a126cad0d6ac</rd:DataSourceID>
</DataSource>
</DataSources>
<DataSets>
<DataSet Name="email">
<Query>
<DataSourceName>SQL_ReportServer</DataSourceName>
<QueryParameters>
<QueryParameter Name="@Email">
<Value>=Parameters!Email.Value</Value>
</QueryParameter>
<QueryParameter Name="@Path">
<Value>=Parameters!Path.Value</Value>
</QueryParameter>
</QueryParameters>
<CommandText>WITH [EMAIL]([SubscriptionID], [EmailLine]) AS
SELECT I.[SubscriptionID],
I1.rows.value('Value [1]', 'VARCHAR(MAX)') AS [EmailLine]
FROM (
--if the Subscription is an e-mail, get the XML fragment which contains the Email line
SELECT S.[SubscriptionID],
--add a "root" element to create well-formed XML to the "ExtensionSettings"
--(in case it's NULL)
CONVERT(XML, N'<Root>' + CONVERT(NVARCHAR(MAX), S.[ExtensionSettings]) + N'</Root>') AS [ExtensionSettings]
FROM ReportServer.dbo.[Subscriptions] S WITH (NOLOCK)
WHERE --only get e-mail subscriptions
S.[DeliveryExtension] = 'Report Server Email'
) I CROSS APPLY
--pull out elements in the "ParameterValues/ParameterValue" hierarchy
I.ExtensionSettings.nodes('/Root/ParameterValues/ParameterValue') AS I1(rows)
WHERE --only get the Subject field
--I1.rows.value('Name [1]', 'VARCHAR(100)') = 'Subject'
I1.rows.value('Name [1]', 'VARCHAR(100)') IN ('TO', 'BCC','CC')
--get subscription data for all users
SELECT replace([EMAIL].[EmailLine], '@plu.edu','') email_line,
--internally put-together description of subscription
-- S.[Description],
--user-friendly message for what happened the last time the subscription ran
--which may be "New Subscription"
--report path and name
C.[Path], C.[Name],
--start date and end date for schedule
SC.[StartDate], SC.[EndDate],
--when the subscription was modified
S.[ModifiedDate]
FROM --actual subscriptions
ReportServer.dbo.[Subscriptions] S WITH (NOLOCK) LEFT OUTER JOIN
--report details from Catalog
ReportServer.dbo.[Catalog] C WITH (NOLOCK) ON
S.[Report_OID] = C.[ItemID] LEFT OUTER JOIN
--Users (owner)
ReportServer.dbo.[Users] [U1] WITH (NOLOCK) ON
S.[OwnerID] = [U1].[UserID] LEFT OUTER JOIN
--Users (modified by)
ReportServer.dbo.[Users] [U2] WITH (NOLOCK) ON
S.[ModifiedByID] = [U2].[UserID] LEFT OUTER JOIN
--Subscription Schedules
ReportServer.dbo.[ReportSchedule] RS WITH (NOLOCK) ON
S.[SubscriptionID] = RS.[SubscriptionID] LEFT OUTER JOIN
--Schedules
ReportServer.dbo.[Schedule] SC WITH (NOLOCK) ON
RS.[ScheduleID] = SC.[ScheduleID] LEFT OUTER JOIN
--Subjects CTE from e-mail subscriptions
[EMAIL] ON
S.[SubscriptionID] = [EMAIL].[SubscriptionID]
WHERE EmailLine is not null
and EmailLine like '%' + @Email + '%'
and C.[Path] like '%' + @Path + '%'
order by C.[Path]</CommandText>
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
</Query>
<Fields>
<Field Name="email_line">
<DataField>email_line</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Path">
<DataField>Path</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Name">
<DataField>Name</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="StartDate">
<DataField>StartDate</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="EndDate">
<DataField>EndDate</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="ModifiedDate">
<DataField>ModifiedDate</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
</Fields>
</DataSet>
</DataSets>
<ReportParameters>
<ReportParameter Name="Email">
<DataType>String</DataType>
<AllowBlank>true</AllowBlank>
<Prompt>Email Like (e.g allen):</Prompt>
</ReportParameter>
<ReportParameter Name="Path">
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>%</Value>
</Values>
</DefaultValue>
<Prompt>Path like (e.g Advancement):</Prompt>
</ReportParameter>
<ReportParameter Name="Report_Parameter_2">
<DataType>Boolean</DataType>
<AllowBlank>true</AllowBlank>
<Prompt>Parameter OK?</Prompt>
</ReportParameter>
</ReportParameters>
<Language>en-US</Language>
<ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
<rd:ReportUnitType>Inch</rd:ReportUnitType>
<rd:ReportID>811078db-33dd-4670-9df4-be748e9ec2ef</rd:ReportID>
</Report> -
SSRS 2012 integrated with Sharepoint 2013, subscription and impersonation
Hello,
We are configuring SSRS 2012 integrated with Sharepoint 2013. The reports are connecting to SSAS cubes via shared Datasources. We have defined user based roles and security in the cubes and would like to pass the effective username to the cubes when they
access data via reports.
Also we need to create subscriptions on these reports to run on either daily/weekly or monthly schedule and send email to a list of users.
How do we configure our Datasources on sharepoint so both could be acheived.
Our Database and Sharepoint are on different servers.
Thanks
DeepakHi Deepak
For your first question:
while configuring the datasource in SharePoint, check the option 'Set execution context to this account' in the settings. This will pass the effective user name to the cubes.
Thanks
Bala -
Error while running SSRS 2012 report integrated with SharePoint 2013
Hi,
Our reporting services environment has SSRS 2012 integrated with SharePoint 2013. The SharePoint 2013 farm has 2 web front ends, 1 app server and a separate server for reporting services i.e SSRS 2012 .
We have created a https web application in SharePoint 2013 and all the SSRS 2012 reports are deployed into a "Report Library" residing in its root site collection.
The simple reports are running well. But there is a report where we have 3 multi-value parameters. On running this report in IE or Chrome, we get the error "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the
server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' <!DOCTYPE html PUB'."
Some of the forums suggested to add the below entry in the web config of the SharePoint web app where the SSRS reports are deployed. We did that too, still the error is appearing. Please can anyone help .
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="100000" />
</appSettings>
ThanksHi Surendra,
I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
Please reference to the setting below to don't limit the timeout values if you got the report reloading:
Point to a report in the library.
Click the down arrow, and select Manage processing options.
In Processing Time-out, select Do not time out report processing or
Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
If you got the session timeout that refresh the page, please reference to the setting in below article:
http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
Details information in the article below about the timeout setting for your reference:
Set Processing Options (Reporting Services in SharePoint Integrated Mode)
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Running an SSRS 2012 report from C#
Hello
I have created the report in SSRS and it works fine
I would be grateful if someone gives me a step by step procedure / link to Run an SSRS 2012 report from C#.
regards
Manoj Gokhalesee this article
http://www.codeproject.com/Articles/675762/Call-SSRS-Reports-by-using-Csharp
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
SSRS 2012 - Groups in Report Manager aren't present when exported to Excel
Hi all, hope somebody can help with this issue, as I cant seem to find any other posts about it
I have a report in SSRS2012. It was copied from SSRS2005 quite recently, as we have upgraded. The SQL developer said that it didn't need any code changes, as he had some kind of tool to test code problems between the two versions.
The report has a table, with 5 row groups, and one detail row. The table is setup as follows:
Name Sales
Costs Profit
Group1
Group2
Group3
Group4
Group5
DetailsRow
When I run this report using the Report Manager website from SSRS2005, and then export to Excel 2013, I get the 6 row groups in Excel, no problem whatsoever. I can drill into each group in Excel, using the group drilldown column on the left hand side. This
works the same as the Report Manager website.
If I run the exact same report from the Report Manager website in SSRS2012, the Report Manager result is the same as SSRS2005 - all the row groups are present, and the drilldown works fine. However, the export to Excel has issues with the groups. There are
only 3 row groups showing in Excel, along with a column group added for no apparent reason. Drilling into each group shows inconsistent details, and there is no apparent logic as to what is shown within each group.
Hopefully, someone has seen this issue before, and can help, because I have no idea what to do, having spent a couple of days trying to figure it out. I should also mention, that this issue with groups is seen on all my reports which have groups, not just
this report
Thanks for any and all help
NazHi Naz,
According to your description, the report works correctly in SSRS 2005 while the same report doesn’t work in SSRS 2012 when exporting to a Excel file.
In your scenario, please make sure you are migrating the report from SSRS 2005 to SSRS 2012 instead of copying the .rdl directly. Generally, we are using Reporting Services Migration Tool to migrate reports between report server. Please refer to this article:
SQL Server Reporting Services: Migrating SSRS reports, data sources and subscriptions from one server to another.
After migrating the report successfully, you should upgrade the report definition in SQL Server Data Tools to upgrade the .rdl file. Please refer to this article:
Upgrade Reports.
If you have upgraded the report but the issue still persists, please provide report design for our analysis. If possible, please provide some screenshots about the preview result and Excel render result.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
I have an SSRS 2012 report and SSAS Cube in 2008. My report criterion requires filtering on measures. So Created measures as dimensions . The report requires >= functionality on the measures. But in the Query designer of
the report there is =, IN, Within Range ,Excluding range , MDX as the operators.
To achieve my goal. I have “From” and “To” as parameters on the numeric dimension. The “To” parameter I have set as internal and setting
the default value of “TO” .By writing another Dataset query that returns the “MAX”
value and the MAX value returned is a member of the measure converted to dim I confirmed.. So this whole works as >=.The user enters only the “FROM” parameter and the “TO” is set internally. The user can enter any value in the “From” parameter. Any
value that is not even a member.It is a textbox. I cannot use a list of values from the “From” parameter.
But whenever I run the report after entering all the selection criteria
I keep getting
Error “the restrictions imposed by the constrained flag in the strtomember functions were violated”
I know this means that Max value in the “TO” section is not a member .
I did try
: StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].
&[" & @ToFactRCSCVBLASTAPPRLIMITACH &
"]", CONSTRAINED) )
But I get “syntax for the “&” is incorrect”
If I use Drop down for the “From” and “To” parameters then it works fine. But that’s not what Business Users need.
Please let me know what the options to make this work. I did use parameters that filter the
Dataset returned it works fine but there is a performance impact.Hi,
I think if you use the following method you will be able to compare the members.
CDbl(StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].&[" + @ToFactRCSCVBLASTAPPRLIMITACH + "]").Member_Name)
As you mentioned that you converted your measures as dimensions, you are having an integer value as the member name. In that case use VBA functions with MDX to do the datatype conversion.
Take a look into the following MDX written against Adventure Works;
WITH CALCULATED MEMBER [Measures].[Member Name] AS
CInt
Right
CStr
[Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME
), 4
SELECT {[Measures].[Sales Amount], [Measures].[Member Name]} ON COLUMNS,
FILTER
[Date].[Calendar Year].[Calendar Year].MEMBERS,
CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) >= 2005 AND
CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) <=2008
} ON ROWS
FROM [Adventure Works]
I am filtering the Years by using the member names by extracting the Integer portion of the member name and applying data type conversion functions in VBA. So I
Keep in mind that you have to get rid of the CONSTRAINED clause if your business users can enter anything on the SSRS text box. -
SSRS 2012 Print Error w/ Win 8.1 IE11 (0x80004005)
I'm having an issue printing SSRS 2012 reports from Win 8.1/IE11. When I print I get "An error occurred trying to render the report. (0x80004005)" See below for SSRS Log. This happens when trying to print any reports from this
server on a win 8.1 machine. I've checked on Win8/IE10 and Win7/IE11 and they both work fine. When I change the "User agent string" in F12/Emulation to IE10 instead of default it also works fine. These reports are in compatibility mode
by default due to the "Dispaly intranet sites in Compatibility View" being checked by default. If I uncheck this box the reports will not even run. They display an error message of "Value cannot be null. Parameter name: String"
which is very similar looking to the error in the log below.
TIA for any help
Tommy
The error log from SSRS is
webserver!ReportServer_0-15!14cc!06/11/2014-09:59:40:: e ERROR: Internal error: System.ArgumentNullException: Value cannot be null.
Parameter name: String
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Web.Configuration.HttpCapabilitiesBase.get_MajorVersion()
at Microsoft.ReportingServices.Diagnostics.Utilities.BrowserDetectionUtility.GetBrowserInfoFromRequest(HttpRequest request)
at Microsoft.ReportingServices.WebServer.HttpRequestContext.get_BrowserCapabilities()
at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.HttpRequestWrapper.get_BrowserCapabilities()
at Microsoft.ReportingServices.Library.StreamRequestHandler.PopulateRSRequestParameters()
at Microsoft.ReportingServices.Library.StreamRequestHandler.PerformStreamedOperation(StreamedOperation operation)
at Microsoft.ReportingServices.Library.StreamRequestHandler.RenderItem(ItemType itemType)
at Microsoft.ReportingServices.Library.StreamRequestHandler.ExecuteCommand()
at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
library!ReportServer_0-15!14cc!06/11/2014-09:59:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException: ArgumentException is encountered. Check inner exception for details., Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException:
An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-15-130469329522201322. Most likely, the HTTP request contains an unsupported verb or invalid syntax. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: String
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Web.Configuration.HttpCapabilitiesBase.get_MajorVersion()
at Microsoft.ReportingServices.Diagnostics.Utilities.BrowserDetectionUtility.GetBrowserInfoFromRequest(HttpRequest request)
at Microsoft.ReportingServices.WebServer.HttpRequestContext.get_BrowserCapabilities()
at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.HttpRequestWrapper.get_BrowserCapabilities()
at Microsoft.ReportingServices.Library.StreamRequestHandler.PopulateRSRequestParameters()
at Microsoft.ReportingServices.Library.StreamRequestHandler.PerformStreamedOperation(StreamedOperation operation)
at Microsoft.ReportingServices.Library.StreamRequestHandler.RenderItem(ItemType itemType)
at Microsoft.ReportingServices.Library.StreamRequestHandler.ExecuteCommand()
at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
--- End of inner exception stack trace ---;
ui!ReportManager_0-16!3cc!06/11/2014-09:59:40:: i INFO: Unhandled exception: Microsoft.Reporting.WebForms.ReportServerException: An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-15-130469329522201322. Most likely,
the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) ---> Microsoft.Reporting.WebForms.ReportServerException: For more information about this error navigate to the report server on the local server machine, or enable remote
errors
--- End of inner exception stack trace ---
at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.SoapReportExecutionService.Render(AbortState abortState, String reportPath, String executionId, String historyId, String format, XmlNodeList deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream,
String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
at Microsoft.Reporting.WebForms.ServerModeSession.RenderReportForPrint(String deviceInfo, NameValueCollection additonalParams, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Hi Joshua.Arenz,
As per my understanding, you configured SSRS 2012 of SharePoint mode, when you click system setting in Central Admin, you got the error message.
According to the error message, the Reporting Services service application is not configured correctly. Please make sure you created service application correctly by following steps:
In SharePoint Central Administration, in the Application Management group, click Manage Service Applications.
In the SharePoint toolbar, click the New button.
In the New menu, click SQL Server Reporting Services Service Application.
In the Create SQL Server Reporting Services Service Application page, enter a name for the application.
In Application Pool section, create a new application pool for the application (recommended). Then select or create a managed account for the application pool.
In the Database Server, you can use the current server or choose a different SQL Server.
In Database Name the default value is ReportingService_<guid>, which is a unique database name. If you type a new value, type a unique value.
In Database Authentication, the default is Windows Authentication.
In the Web Application Association section, select the Web Application to be provisioned for access by the current Reporting Services Service Application.
Click OK.
For more information about Creating a new Reporting Services Service Application, please refer to the following document:
http://niftit.com/how-to-install-configure-reporting-services-sharepoint-2013/
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu -
SSRS 2012. ReportServer takes long time to be up.
SSRS 2012 Sp1
Hi guys,
I am using SSRS as my reporting platform, but I have always got the following issue.
SSRS ReportServer takes time to load.
The first time takes long, then less time but only if the ReprotServer web page is continuosly retrived.
HERE the problem:
If the ReprotServer page is not used after a short time (let me say 10 min), the page takes long time to be up again.
I have checked the configuration that is set as for default 12 hours.
Is there a way to speed up the ReportServer opening page time?
Thanks for your helpHi Fasttrack2,
According to your description, you want to optimize the performance of your report. Right?
In this scenario, when your report page is not active for a short time, it will take long time to render again. This is because the you have the report timeout. You can select "Do not timeout report" in Processing. Please refer to the link below:
SQL Server Reporting Services – Timeout Settings
For the performance issue, it can be many reason cause the report running slowly. Please refer to the articles below to optimize the report:
More tips to improve performance of SSRS reports.
Reporting Services Performance and Optimization
Troubleshooting Reports: Report Performance
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
SSRS 2012 Excel Rendering Error
Hi
I need help
Platform
Sharepoint 2013
SSRS 2012 integrated in sharePoint 2013
I've no problem when I export my report (25000 records) to EXCELOPENXML format, but each time I try to export it with 140 000 records i've always the error described below , however I can export it to csv format
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream
createAndRegisterStream)
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
--- End of inner exception stack trace ---;
w3wp!library!1b!02/25/2014-12:18:44:: e ERROR: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.Threading.ThreadAbortException: Thread was being aborted.
at System.AppDomain.GetId()
at System.Threading.Thread.GetCurrentCultureNoAppX()
at Go17(RegexRunner )
at System.Text.RegularExpressions.RegexRunner.Scan(Regex regex, String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout)
at System.Text.RegularExpressions.Regex.Run(Boolean quick, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
at System.Text.RegularExpressions.Regex.Match(String input)
at Microsoft.ReportingServices.ReportProcessing.Validator.ValidateColor(String color, Color& c, Boolean allowTransparency)
at Microsoft.ReportingServices.OnDemandReportRendering.ReportColor..ctor(String color, Boolean allowTransparency)
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.AddColor(String colorString)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.Layout.LayoutEngine.ItemInfo.FillBorders(RPLStyleProps style, Boolean omitBorderTop, Boolean omitBorderBottom, IExcelGenerator excel)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.Layout.LayoutEngine.RenderNewItem(IRowItemStruct item, Int32 top, Int32 topRow, IExcelGenerator excel, String pageContentKey, Dictionary`2 sharedBorderCache, Dictionary`2 sharedImageCache,
Boolean& autosizableGrow, Boolean& autosizableShrink)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.Layout.LayoutEngine.RenderPageToExcel(IExcelGenerator excel, String key, Dictionary`2 sharedBorderCache, Dictionary`2 sharedImageCache)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.MainEngine.RenderRPLPage(RPLReport report, Boolean headerInBody, Boolean suppressOutlines)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream
createAndRegisterStream)
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
at Microsoft.ReportingServices.Library.RenderFromSnapshot.CallProcessingAndRendering(ProcessingContext pc, RenderingContext rc, OnDemandProcessingResult& result)
at Microsoft.ReportingServices.Library.RenderStrategyBase.ExecuteStrategy(OnDemandProcessingResult& processingResult)
w3wp!wcfruntime!1b!02/25/2014-12:18:44:: e ERROR: Reporting Services fault exception System.ServiceModel.FaultException`1[Microsoft.ReportingServices.ServiceContract.RsExceptionInfo]: An unexpected error occurred in Report Processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException:
An unexpected error occurred in Report Processing. ---> System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors (Fault Detail is equal to Microsoft.ReportingServices.ServiceContract.RsExceptionInfo).
Any solutionsHi Vichu,
According to your description, you encountered the timeout issue when rendering your report. Right?
In Reporting Services, sometimes this issue happens when rendering big report, and it exceed the default Query Timeout time. Generally, we increase the Query Timeout and Session Timeout so that it will have more time to retrieving data.
In this scenario, since you have done this adjustment and the issue still exists randomly. We suggest you optimize the performance of your report. Please refer to the articles below:
Processing large reports:
http://technet.microsoft.com/en-us/library/ms159638.aspx
Performance (Reporting Services):
http://technet.microsoft.com/en-us/library/bb522786.aspx
Improving report performance with caching:
http://technet.microsoft.com/en-us/library/ms155927.aspx
Report performance optimization tips:
http://blogs.msdn.com/b/robertbruckner/archive/2009/01/08/report-performance-optimization-tips-subreports-drilldown.aspx
In addition, we recommend you install the Updates for SSRS 2012:
http://sqlserverbuilds.blogspot.com/
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Sharepoint 2013 and SSRS 2012 Integration - Report Server Content Types not displayed
Hello, Everyone:
I installed SSRS 2012 on our Sharepoint 2013 application server following the step-by-step instruction from the posting below:
http://msdn.microsoft.com/en-us/library/jj219068.aspx
Everything goes well after STEP 3 is completed.
I did see the reporting services started and SSRS service application created.
However, when I created a new site and tried to enable the predefined Reporting Services content types, I do not see the Shared data source (.rsds) files, report models (.smdl), and Report Builder report definition (.rdl) 3 types of files listed at
all.
Further more, when I go to the Provision Subscriptions and Alerts page, I keep getting a "SQL Server Agent state cannot be determined" error, even though the username and password provided is the admin user
for the database.
Any experience of what is wrong with the SSRS - Sharepoint integration? Please help!
TinaHello, Treavor:
Now that the content types problem is resolved, I need to come back to the
Provision Subscriptions and Alerts page.
I guess I'm a little confused about what is being asked for the Provision Subscriptions and Alerts page.
The user I provided on the Provision Subscriptions and Alerts page is my user-defined sysadmin role. And the page takes that.
When I downloaded the SQL script, it was trying to give the automatically generated user "sa-SPDevContentAppPo" permission.
Which user are we using to detect the SQL Server Agent?
Thanks again!
Tina -
SSRS 2012 with SharePoint 2010: Unable to connect to the remote server
We had originally installed SSRS 2012 with SP 2010 and I did not like how the installation was configured, so we uninstalled everything and removed the SSRS server from the SharePoint farm and uninstalled all the SQL bits (SSRS was deployed to web tier in
sharepoint mode).
I've since added a new application server to host the SSRS SharePoint Mode and Installed the reporting services add-in on the WFE. For reference, I have 1 WFE and 2 App Servers. the WFE has the Reporting Service Add-in and both App Servers have
the SharePoint mode of SSRS installed as described here: https://msdn.microsoft.com/en-us/library/hh479774(v=sql.110).aspx
I've also installed the Service Application and all seems to work well up until I make an attempt to create a report or data source on the WFE.
It looks like somewhere, the WFE is still looking to connect to the original SSRS machine we installed. I've gone through registry, config files and the SharePoint config database to see if I can see where the reference value is. Still can't
find it anywhere. None of the Reporting commandlets are helping.
Technically what is occurring;
Add Reporting service content types and create a New Reporting Data Source through UI
ULS Logs go after the url: /_layouts/ReportServer/NewSharedDataSource.rsds
Exception occurs after some time because it times out trying to connect to wrong host. Exception below:
Exception encountered for SOAP method GetSystemProperties: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <WRONG HOST IP>:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) -
-- End of inner exception stack trace ---
at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SetConnectionProtocol()
at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
No powershell commands or any of the settings in the service application allow me to set this. Any help would be appreciated.
20 Bay Windows Home Server (Not Vail!)
http://piroozjavan.blogspot.com/Issue an iisreset on the WFE, and validate that SSRS Service is running on the App servers.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi All,
I got complain that one of my reports which was subscribed from SSRS Report Manager could not delivered to targeted people 3 days back.
I want to to check that Email was sent or not So I wrote below query but I think table will be over written on each execution of subscription and cannot see the history. I can see only the latest data.
SELECT A.NAME,B.Description,B.LastStatus,B.LastRunTime
FROM [dbo].[Catalog] A
INNER JOIN [dbo].[Subscriptions] B ON A.ItemID=B.Report_OID
WHERE TYPE=2
AND NAME='REPORT_NAME'
AND B.LastStatus LIKE '%EMAIL ID%'
AND B.LastRunTime>Getdate()-1
ORDER BY B.LastRunTime
There is another query which says that report was rendered by SUBSCRIPTION and have no track that Email was sent or not.
--Query to find out how a report was execute
SELECT * FROM EXECUTIONLOG3
WHERE REQUESTTYPE='SUBSCRIPTION'
AND ITEMPATH LIKE '%REPORT NAME'
ORDER BY TIMESTART DESC
There is any way to track this?
https://msdn.microsoft.com/en-us/library/ms159110.aspx
http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
Thanks Shiven:) If Answer is Helpful, Please VoteHi S Kumar Dubey,
According to your description, you want to find the failed subscription report and resent the report to users again.
In this scenario, you can run the query below to find the failed subscription.
use ReportServer
go
SELECT C.Name, S.LastRunTime, S.LastStatus, S.Description
FROM Subscriptions AS S
LEFT OUTER JOIN [Catalog] AS C
ON C.ItemID = S.Report_OID
WHERE LEFT (S.LastStatus, 12) != 'Mail sent to'
AND LEFT (S.LastStatus, 12) != 'New Subscrip'
Then you can execute the code with jobstep command below to find the corresponding SQL Agent Jobs for failed subscription, then execute the job to send the email again.
select 'exec sp_start_job @job_name = ''' + cast(j.name as varchar(40)) + ''''
from msdb.dbo.sysjobs j
join msdb.dbo.sysjobsteps js on js.job_id = j.job_id
join [ReportServer].[dbo].[Subscriptions] s on js.command like '%' + cast(s.subscriptionid as varchar(40)) + '%'
where s.LastStatus like 'Failure sending mail%';
Reference:
SSRS Failed Subscription Notifications
Re-running SSRS subscription jobs that have failed
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Maybe you are looking for
-
Hello everybody, I have the next scenario Oracle DB-> XI-> Idoc PAYEXT, now the problem is that I get the error in the message mapping that Mapping not sufficiently defined, my strcutures look fine, so is there a way to know all the required fields
-
I am trying to burn a CD but it won't finalize! I am attempting to burn a 7 hour audio program onto several audio cd's. The first disc burned and then the drive opened, asking me to remove disc 1 and to insert a blank for disc 2. Disc 2 will not fina
-
How do I change which application is the (default) for a given file type?
For .pdf files, I have set the application behaviour to "Always Ask", because sometimes I want to open the pdf, sometimes I want to save it. So far so good. Now, when I want to open the .pdf, I have added an application to the dropdown list, so now I
-
Hi, I'm trying to setup a 5508 to put multiple management ports into LAG configuration for Etherchannel to the connected switch. I have not found where to configure that in the GUI. Is that a CLI-only command? Thanks.
-
Good laptop for Adobe Premiere Elements 9 ?
Which laptop is good and reliable for AP9 ? I mean, editing Canon 60D .MOV videos ? What about Dell XPS i5-560M, 4GB RAM, 1920x1080 screen, 1GB GT420M Graphics Card, etc. Does anybody have any experience ? Thanks in advance