subscripts dont render properly in report
Divide by Zero #ERROR in SSRS 2012 using a very long calculated SUM statement
I've got a very long calculation that is resulting in a divide by zero error. Can someone point out thecorrect placement if the IIf statements and associated ()?
=(Sum(Fields!Month3Projection.Value, "DataSet3") +
Sum(Fields!Month3Projection.Value, "newtotal") +
Sum(Fields!Month3Projection.Value, "DataSet6") +
Sum(Fields!Month3Projection.Value, "DataSet7") -
(Sum(Fields!Month3LastYearActual.Value, "DataSet3") +
Sum(Fields!Month3LastYearActual.Value, "newtotal") +
Sum(Fields!Month3LastYearActual.Value, "DataSet6") +
Sum(Fields!Month3LastYearActual.Value, "DataSet7"))) /
(Sum(Fields!Month3LastYearActual.Value, "DataSet3") +
Sum(Fields!Month3LastYearActual.Value, "newtotal") +
Sum(Fields!Month3LastYearActual.Value, "DataSet6") +
Sum(Fields!Month3LastYearActual.Value, "DataSet7"))
All suggestions are appreciated. Jim
Parameter default and manual inputs
Hello
Is it possible in SSRS to have Parameter which will be default to some value but also allow user to input value if he wants to change it to something else.
I have Time parameter in my report and it is default to SystemTime, but user wants it to be changed when needed , he doesnt want a drop down of values ..but be able to change it to another time.
Paraemter format is HH:MM
Best Regards,
An unexpected error occurred while compiling expressions. Native compiler return value: `-1073741511'
I keep getting the error in the title when I try to access or modify any RDL file that uses an embedded data source from a SharePoint report library (I have approximately 14 reports). This error is unique to only one farm, I can upload and access the reports okay from several other test farms. I can also upload simple "hello world" reports on the broken farm and they render correctly.
I think the error is a bit of a red herring. If I look in the ULS logs in SharePoint I see an error being thrown that the data source can't be found. This I sort of expect since I am not publishing the RDL through BIDS but am instead uploading through CSOM (this is one of many files that are part of a deployment package that needs to be automated, so using BIDS isn't an option). However, while the error about the data source not being is sort of expected, on other systems I am at least able to edit the RDL file's data source (either programmatically or through the SP UI) to correct the data source (which is what I want to do). This one server throws the error any time I try to touch the reports.
Here are the log messages I see in ULS. I do not actually see the error code in the title anywhere in ULS. I am not familiar enough with SSRS to know where to look for any logs for it to see if I can figure out what is causing that error code.
> SPRequest.GetMetadataForUrl: UserPrincipalName=i:0).w|[my user SID], AppPrincipalName= ,bstrUrl=https://server.net/sites/sitecoll/subsite/report library/My_Data_Source ,METADATAFLAGS=59
> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.SPWeb.GetObjectForUrl(String strUrl, Guid& listId)
at Microsoft.ReportingServices.SharePoint.Objects.RSSPImpWeb.GetObject(String strUrl)
at Microsoft.ReportingServices.SharePoint.Server.Utility.GetSPItemMetaDataAndContent(ItemSpecifier itemSpecifier, UserContext userContext, Boolean returnContent, Boolean wrapFileNotFoundOnOpenWeb, Byte[]& content)
at Microsoft.ReportingServices.SharePoint.Server.Utility.GetSharePointItem(ExternalItemPath objectName, UserContext userContext)
at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(ExternalItemPath path, Boolean createOnly)
at Microsoft.ReportingServices.Library.RSServiceHelper.SyncToRSCatalog(ExternalItemPath path)
at Microsoft.ReportingServices.Library.ProcessingPublishing.CheckDataSourcePublishingCallback(RSService Service, String catalogPath, Guid& catalogItemId, Byte[]& secDesc, ItemType& type)
at Microsoft.ReportingServices.Library.RSService.CheckDataSourcePublishingCallback(String itemPath, Guid& catalogItemId)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.CreateSharedDataSourceLink(PublishingContextStruct context, DataSource dataSource)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.ReadDataSource(DataSourceNameValidator dataSourceNames, PublishingContextStruct context, IDataProtection dataProtection)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.ReadDataSources(PublishingContextStruct context, IDataProtection dataProtection)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.ReadReport(IDataProtection dataProtection)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase1(Stream definitionStream, String& description, String& language, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, Boolean&
hasExternalImages, Boolean& hasHyperlinks)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources,
DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, IDataProtection dataProtection, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage,
ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean&
hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext, IDataProtection dataProtection)
at Microsoft.ReportingServices.Library.RSService.ConvertToIntermediate(Byte[] definition, Boolean usePermanentSnapshot, ItemProperties properties, CatalogItemContext reportContext, DateTime currentDate, Boolean checkAccessForSharedDatasources, Boolean
resolveTemporaryDataSource, DataSourceInfoCollection originalDataSources, DataSetInfoCollection originalDataSets, ReportProcessingFlags previousProcessingFlags, Boolean isInternalRepublish, Boolean isRdlx, ReportSnapshot& intermediateSnapshot, ParameterInfoCollection&
parameters, Warning[]& warnings, DataSourceInfoCollection& dataSources, DataSetInfoCollection& dataSets, PageProperties& pageProperties, Byte[]& dataCacheHash)
at Microsoft.ReportingServices.Library.FullReportCatalogItem.PrepareNewReport(Byte[] definition, Boolean usePermanentSnapshot)
at Microsoft.ReportingServices.Library.CreateReportActionBase`1.PrepareForNewItem(ProfessionalReportCatalogItem theItem)
at Microsoft.ReportingServices.Library.CreateItemAction`2.CreateNew(TCreatedType itemToCreate, CatalogItemContext parentContext, Boolean isVirtualItem)
at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(ExternalItemPath path, Boolean createOnly)
at Microsoft.ReportingServices.Library.RSServiceHelper.SyncToRSCatalog(ExternalItemPath path)
at Microsoft.ReportingServices.Library.CatalogItemFactory.InternalGetCatalogItem(CatalogItemContext itemContext, Boolean doSync, Boolean& wasSynched)
at Microsoft.ReportingServices.Library.GetItemDataSourcesAction.PerformActionNow()
at Microsoft.ReportingServices.Library.RSSoapAction`1.Execute()
at Microsoft.ReportingServices.Library.ReportingService2005Impl.GetItemDataSources(String Item, DataSource[]& DataSources)
at Microsoft.ReportingServices.ServiceRuntime.ReportServiceManagement.<>c__DisplayClass7e.<GetItemDataSources>b__7d()
at Microsoft.ReportingServices.ServiceRuntime.ReportServiceBase.ExecuteWithContext[TResult](Func`1 action)
at Microsoft.ReportingServices.ServiceRuntime.ReportServiceManagement.GetItemDataSources(String ItemPath)
at SyncInvokeGetItemDataSources(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
at System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
at System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)
at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)
at System.Runtime.AsyncResult.SyncContinue(IAsyncResult result)
at System.ServiceModel.Channels.HttpPipeline.EmptyHttpPipeline.BeginProcessInboundRequest(ReplyChannelAcceptor replyChannelAcceptor, Action dequeuedCallback, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpChannelListener`1.HttpContextReceivedAsyncResult`1.ProcessHttpContextAsync()
at System.ServiceModel.Channels.HttpChannelListener`1.BeginHttpContextReceived(HttpRequestContext context, Action acceptorCallback, AsyncCallback callback, Object state)
at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
at System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)
at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
> Throwing Microsoft.ReportingServices.ReportProcessing.ReportPublishingException: , Microsoft.ReportingServices.ReportProcessing.ReportPublishingException: Exception of type 'Microsoft.ReportingServices.ReportProcessing.ReportPublishingException' was thrown.;
This is the code I am using to update the RDL file.
using (ClientContext ctx = CreateContext(baseUrl)){
ctx.Load(ctx.Web.Lists);
ctx.ExecuteQuery();
foreach (List list in ctx.Web.Lists)
{
if (list.BaseTemplate == 433)
{
ConsoleHelper.WriteInfo("Updating SSRS reports");
LogHelper.Info("Found SSRS Report Library '{0}'", list.Title);
ctx.Load(list, l => l.RootFolder.Name);
ctx.ExecuteQuery();
string[] userId = Settings.ConnectAs.Split("\\".ToCharArray());
NetworkCredential cred = new NetworkCredential(userId[1], Settings.ConnectAsPassword, userId[0]);
ReportingService2010.ReportingService2010SoapClient ssrsService = new ReportingService2010.ReportingService2010SoapClient();
Uri uri = new Uri(baseUrl + "/_vti_bin/ReportServer/ReportService2010.asmx");
ssrsService.Endpoint.Address = new System.ServiceModel.EndpointAddress(uri, ssrsService.Endpoint.Address.Headers.ToArray());
ssrsService.ClientCredentials.Windows.ClientCredential = cred;
ssrsService.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
ssrsService.Open();
CatalogItem[] items = null;
LogHelper.Info("Getting list of children at '{0}'", list.RootFolder.Name);
ssrsService.ListChildren(baseUrl + "/" + list.RootFolder.Name, true, out items);
DataSource ds = new DataSource();
ds.Name = "My_Data_Source";
DataSourceDefinition dsd = new DataSourceDefinition();
dsd.ConnectString = CurrentComponent.SSRSConnectionString;
dsd.UserName = CurrentComponent.SSRSConnectAs;
dsd.Password = SecurePasswordFetcher.ConvertToUnsecureString(CurrentComponent.SSRSConnectAsPassword);
dsd.ImpersonateUser = false;
dsd.ImpersonateUserSpecified = true;
dsd.Enabled = true;
dsd.EnabledSpecified = true;
dsd.Extension = "SQL";
dsd.Prompt = null;
dsd.WindowsCredentials = true;
dsd.CredentialRetrieval = CredentialRetrievalEnum.Store;
ds.Item = dsd;
foreach (CatalogItem item in items)
{
LogHelper.Info("Updating SSRS report '{0}'", item.Name);
DataSource[] sources = null;
try
{
ssrsService.GetItemDataSources(item.Path, out sources);
}
catch
{
sources = new DataSource[1];
sources[0] = new DataSource();
sources[0].Name = ds.Name;
CatalogItem itemInfo = null;
ssrsService.CreateDataSource(ds.Name + ".rsds", item.Path.Substring(0, item.Path.LastIndexOf("/")), false, dsd, null, out itemInfo);
}
sources[0].Item = dsd;
ssrsService.SetItemDataSources(item.Path, sources); //<-- this is where the error pops.
}
ConsoleHelper.WriteInfo("Finished Updating SSRS reports");
}
}
}
Problems with adding SSRS export formats to rsreportserver.config
I just wanted to know if there are any known issues with adding more export formats to SSRS. I added a pipe delimited export format and I made some tests. Everything seems to work fine but I was wondering if someone new of any known issues before I move hte changes to production.
Thank you
Nikos
Unable to open report manager
Function to get the Guid of a SharePoint List given it's name?
I have an SSRS 2014 report that runs in SharePoint mode in which I need to cobble together a URL containing the GUID of a SharePoint List (on the same site collection the report runs in).
This report will run in different host named site collections but the same list name is used on each site.
I am hoping that there is a built in function in ssrs which can handle this but I've not come across one yet.
The functions I've seen others use a webservices call which I'd like to avoid if possible although it would only need to run once but efficiency is a concern. Any ideas on how I can use a custom code to get this url and then in my textbox function I'd use
=Code.GetGuid("My List Name")
to retrieve the lists guid.
Thank you!
Love them all...regardless. - Buddha
Display Image on SSRS report based on an Expression
I am trying to display an image named "Button" based on the following condition:
=IIF(Fields!National_Accounts.Value="X","Button",Nothing)
The statement is evaluating correctly because when the field ="X", it is displaying the word Button in my report when I view it in report viewer instead of the image.
Why won't it display the image. Do I have to give it a path like "/Images/Button"? The images is saved locally in the report pane in the Images section.
Report Builder 3.0 display in Query Designer
Hi All,
I am using report builder3.0 with OLEDB provider(AS400). After running query in Query Designer it display <Binary> for few columns as given. How to display the values for those columns?
Thanks&Regards,
Palani
Palani
How to pass more than one parameter to SQL procedure
Dear all,
We are bulding a report template using Report Builder.
in our template we will have 2 selection of Main Category and SubCategory
Main category selection represent the ParentCategory Value
Sub Category selection represent the ChildCategory Value.
Based on the given selection the user does, I need to be able to pass to my DataSet store procedure 2 parameters which correspond to both selection of Parent and Child.
So far I was suing one single parameter for my store procs but in this case I need to send 2.
Any idea how to handle this ?
regards
How to handle Cascading categories
Dear all,
I need to build a report template where I will have a maximum of 4 category selection which is used as below :
Category List Box : Represent root categories
Sub Category 1 List Box : Represent list of Sub categories based on Category Listselection
Sub Category 2 List Box : Represent list of Sub categories based on Sub Category 1 selection
Sub Category 3 List Box : Represent list of Sub categories based on Sub Category 2 selection
If a categry list have not data it should not be visible.
Based on this cascading selection, I need to know the value of the 2 last list box parameter selction in order to pass them to my store procedure.
How to build this cascading and how to keep track of last 2 parameter selection ?
Regards
Passing parameters from pie chart
Hi,
I am using SSRS 2008 and trying to pass parameters from pie chart through URL. However, the parameter is not being passed. If the user clicks on the slice of the pie chart, the related detailed report should show up. I have 2 parameters to pass, one is the date and other is the country. Depending on which country they click on, that detailed report should show. I have same parameter named country in both the main and sub report. Here is the code I have used. The parameter country is a multi valued parameter. Please can you some correct me where I am doing wrong. Thanks.
="javascript:void(window.open('http://reportserver/reportname&rs:Command=Render&StartDate="& Parameters!StartDate.Value& "&Country="& Parameters!Country.Value &"','_blank'))"
Technical Resources
Hi, been a long time since I have been on the Forums. This is not a tech question I know but i'm hoping someone can advise?
Have taken it upon myself to learn report development for Reporting Services. There are a few Books around but I need something specifically to help with expressions etc. with report designer. I have the SQL basics down (read "Basics" here) but find using expressions to format and display data the way I need it a litlle complex. Resources seem to be quite scattered around the place.
Anyone suggest a good centralised resource for expressions with examples, whether thats books or web based, also any good online training I could sign up for to help with this? Also should I get some basic VB under my belt to help with expressions?
FYI I have done all of the basic SSRS learning based around SQL 2005, and an just now moving on to 2008 as this is more relevant to my work environment.
Thanks in advance all.
Regards,
Gaz
Report is printed with extra blank page
Filter expressions and related fields
I'm trying to set up a table which will show the highest point in a data series for a number of different attributes.
At the moment, I can filter the highest value, using a simple MAX() expression, but I can not get the table to show the corresponding year that this occurred - the year value only shows the most recent entry.
Is there any way to enter the corresponding year to the data value in the table?
Thank you
SSRS 2012 Export to Excel
Hi,
SharePoint 2013 integrated Reporting export to Excel report size more then 70 Mb fails with error:
ERROR: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: Во время подготовки отчета к просмотру произошла ошибка. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: Во время
подготовки отчета к просмотру произошла ошибка. ---> System.ServiceModel.CommunicationException: The remote host closed the connection. The error code is 0x800704CD. ---> System.Web.HttpException: The remote host closed the connection. The error
code is 0x800704CD.
File in tempDirectory "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\WebServices\RSTempFiles\ prepared, but then I see error.
Subscription and export smaller report to Excel executes without errors.
Windows Server 2012 R2 Datacenter
SharePoint Server 2013
Microsoft SQL Server 2012 (SP2-CU8) (KB3082561) - 11.0.5634.1 (X64) Enterprise Edition
RsReportingServer.config:
<add name="FileSizeLimitMb" value="1000" />
<Add Key="SecureConnectionLevel" Value="0" />
<Add Key="CleanupCycleMinutes" Value="10" />
<Add Key="MaxActiveReqForOneUser" Value="20" />
<Add Key="AlertingCleanupCycleMinutes" Value="20" />
<Add Key="AlertingDataCleanupMinutes" Value="360" />
<Add Key="AlertingExecutionLogCleanupMinutes" Value="10080" />
<Add Key="AlertingMaxDataRetentionDays" Value="180" />
<Add Key="RunningRequestsScavengerCycle" Value="600" />
<Add Key="RunningRequestsDbCycle" Value="600" />
<Add Key="RunningRequestsAge" Value="300" />
<Add Key="MaxScheduleWait" Value="5" />
<Add Key="DisplayErrorLink" Value="true" />
<Add Key="WebServiceUseFileShareStorage" Value="false" />
<Add Key="ProcessTimeout" Value="600" />
w3wp!reportrendering!8cb!12/09/2015-11:21:31:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: Во время подготовки отчета
к просмотру произошла ошибка. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: Во время подготовки отчета к просмотру произошла ошибка. ---> System.ServiceModel.CommunicationException: The remote host
closed the connection. The error code is 0x800704CD. ---> System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD.
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.WriteFromStream(Byte[] data, Int32 offset, Int32 size)
at System.ServiceModel.Channels.BytesReadPositionStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
— End of inner exception stack trace —
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.CheckWrapThrow(Exception e)
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.BufferedStream.Write(Byte[] array, Int32 offset, Int32 count)
at System.Xml.XmlStreamNodeWriter.WriteBytes(Byte[] byteBuffer, Int32 byteOffset, Int32 byteCount)
at System.Xml.XmlBinaryNodeWriter.WriteBase64Text(Byte[] trailBytes, Int32 trailByteCount, Byte[] base64Buffer, Int32 base64Offset, Int32 base64Count)
at System.Xml.XmlBaseWriter.WriteBase64(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.ServiceRuntime.WcfResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Library.BufferAndOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.SaveSpreadsheet(Stream outputStream, Stream backgroundImage, UInt16 backgroundImageWidth, UInt16 backgroundImageHeight)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream
createAndRegisterStream)
— End of inner exception stack trace —
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream
createAndRegisterStream)
at Mi
w3wp!library!8cb!12/09/2015-11:21:31:: e ERROR: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: Во время подготовки отчета к просмотру произошла ошибка. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException:Во время подготовки отчета к просмотру произошла ошибка. ---> System.ServiceModel.CommunicationException: The remote host closed the connection. The error code is 0x800704CD. ---> System.Web.HttpException: The remote host closed the connection.
The error code is 0x800704CD.
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.WriteFromStream(Byte[] data, Int32 offset, Int32 size)
at System.ServiceModel.Channels.BytesReadPositionStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
— End of inner exception stack trace —
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.CheckWrapThrow(Exception e)
at System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.BufferedStream.Write(Byte[] array, Int32 offset, Int32 count)
at System.Xml.XmlStreamNodeWriter.WriteBytes(Byte[] byteBuffer, Int32 byteOffset, Int32 byteCount)
at System.Xml.XmlBinaryNodeWriter.WriteBase64Text(Byte[] trailBytes, Int32 trailByteCount, Byte[] base64Buffer, Int32 base64Offset, Int32 base64Count)
at System.Xml.XmlBaseWriter.WriteBase64(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.ServiceRuntime.WcfResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Library.BufferAndOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator.SaveSpreadsheet(Stream outputStream, Stream backgroundImage, UInt16 backgroundImageWidth, UInt16 backgroundImageHeight)
at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream
createAndRegisterStream)
— End of inner exception stack trace —
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(IRenderingExtensi
w3wp!wcfruntime!8cb!12/09/2015-11:21:31:: e ERROR: Reporting Services fault exception System.ServiceModel.FaultException`1[Microsoft.ReportingServices.ServiceContract.RsExceptionInfo]: Во время подготовки отчета к просмотру произошла
ошибка. ---> Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: Во время подготовки отчета к просмотру произошла ошибка. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: Во время
подготовки отчета к просмотру произошла ошибка. ---> System.ServiceModel.CommunicationException: The remote host closed the connection. The error code is 0x800704CD. ---> System.Web.HttpException: The remote host closed the connection. The error
code is 0x800704CD. (Fault Detail is equal to Microsoft.ReportingServices.ServiceContract.RsExceptionInfo).
How to set Chart horizontal axis automatically according to the source?
Hi All,
There are some requests as below for Chart in SQL server 2014 Report.
1. I need to bind a column "Field 1" (Date Time format) as horizontal axis in Chart Category Groups.
2. The values in "Field 1" are multiple formats, for example, Quarterly, monthly, weekly, daily, hourly.
3. I set Horizontal axis with Category format and interval/interval unit as auto.
Expected Result:
1. Hope horizontal axis can display values according to the "Field 1"
2. When display monthly, it is better to display the first day of month.
3. When display other formats, it is better to automatically display readable horizontal axis with appreciated interval step value.
Any help is appreciated. Thanks a lot!
Expression for Fill Color property is not working
hi all ,
one small issue i have in Report Design
please see these expressions
= iif(ReportItems!SecurityPrivilege1.Value = " " , "White","LightGrey")
= iif(Fields!SecurityPrivilege.Value = " " , "White","LightGrey")
i have written these expression in the fill color properties , and the name of the textbox is SecurityPrivilege1 , but both of the expression is not working.
actually i wanted to fill that box with grey , if value != null
else white
please guide me .
Thanks
Calling Custom Assembly error
we used the new method, ‘AddFullTrustModuleInSandboxAppDomain()’ instead of the deprecated one ‘AddTrustedCodeModuleInCurrentAppDomain()’ for calling the custom assembly.
The following permissions are also set:
PermissionSet permissions = new PermissionSet(PermissionState.None);
permissions.AddPermission(new FileIOPermission(PermissionState.Unrestricted));
permissions.AddPermission(new SecurityPermission(SecurityPermissionFlag.Execution));
rptViewer.LocalReport.SetBasePermissionsForSandboxAppDomain(permissions);
while opening the report it shows the following error:
‘The report references the code module ‘Client.Report, Version=1.0.0.0, culture=neutral, PublicKeyToken=null’ which is not a trusted assembly.’
Please help me to fix this issue.
.net framework: version 2.0
Microsoft.ReportViewer.WinForms.dll : version 8 (Working properly), version 12 (Not trusted assembly error)
SSRS 2012 - Zoom IN / OUT issue with Rotate270 degree
Hi All,
We are using rotate 270 property to show the data vertically in column header(s). When we generate the report, it works fine and display the data in 270 degree direction. This issue is when we ZOOM IN or OUT the generated report, we see only blank text box(s).
This issue is coming when the reporting website is in compatibility mode list in IE11. When we remove the website from compatibility mode then report works fine.
We would like to know is Microsoft has released any patch to resolve the issue regardless of changing setting in Internet explorer or any report layout change required.
Thanks,
Vishal Jharwade