Службы Reporting Services 2005: при попытке экспорта в Excel отображается «Ссылка на объект не установлена ​​для экземпляра объекта». ошибка - PullRequest
2 голосов
/ 27 января 2010

У меня довольно сложный отчет, состоящий из множества подотчетов.

Одна конкретная проблема вызывает проблему: если вы запускаете ее автономно, она работает нормально. Если вы интегрируете его как подотчет, он не разрешит вам экспортировать в формат Excel (из Preview) со следующей ошибкой:

An error occurred during local report processing.
An error occurred during rendering of the report.
An error occurred during rendering of the report.
Object reference not set to an instance of an object.

Произведение в любой другой формат работает нормально. Большая часть моего Google до сих пор говорила «Переустановите службы отчетов», что я действительно не хочу делать (я переустановил для предыдущий выпуск , и мне понадобился хороший день или так, чтобы все снова стало счастливым - возможно, даже больше), особенно если учесть, что это не гарантированное исправление.

Я не знаю, насколько это важно, но отчеты действительно делают нас из Dundas Charts, что может затруднить анализ.

Кто-нибудь знает лучшее решение?

Обновление:

Когда я пытаюсь экспортировать в Excel на сервере отчетов, он дает мне следующее:

Object reference not set to an instance of an object. 
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.Exception: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[Exception: Object reference not set to an instance of an object.]

[Exception: An error occurred during rendering of the report.]

[Exception: An error occurred during rendering of the report.]
   Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +520
   Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +936
   Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +28
   Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +85
   Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +143
   Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +152
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Ответы [ 2 ]

1 голос
/ 03 апреля 2012

Я столкнулся с той же проблемой с приведенным ниже утверждением. Все работает нормально, как и ожидалось, за исключением экспорта в Excel.

=iif(ReportItems!textbox343.Value>ReportItems!textbox344.Value or ReportItems!textbox346.Value>ReportItems!textbox347.Value,"Yes","No")

Вот исправление. Добавлены брекеты и вуаля вуду магия это работает.

=iif((ReportItems!textbox343.Value>ReportItems!textbox344.Value) or (ReportItems!textbox346.Value>ReportItems!textbox347.Value),"Yes","No")
0 голосов
/ 02 февраля 2010

Я считаю, что экспорт в Excel отчета, содержащего вложенные отчеты, является известной проблемой в SSRS 2005 и решен в 2008 году. Я не знаю, является ли обновление для вас вариантом?

...