SSRS Rendering Fails in Esoteric Context The 2019 Stack Overflow Developer Survey Results Are InConverting Crystal reports to SSRSSSRS subscription fails on renderingAn error occurred during rendering of the report in SSRS ReportAveraging only non-zero values and displaying the result in Minutes:Seconds in SSRSSSRS running very slow and error client renderingFormat Hours/Minutes in SSRS ExpressionSSRS FieldValue denying ReportItemsSSRS - Exporting a huge report into PDFSSRS report fails to load in browser report manager - rsFilterEvaluationErrorSSIS - SSRS Rendering Clash Between EXCEL and EXCELOPENXML

How can I fix this gap between bookcases I made?

Is it possible to achieve a negative score?

Deadlock Graph and Interpretation, solution to avoid

What tool would a Roman-age civilization have to grind silver and other metals into dust?

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Can the Protection from Evil and Good spell be used on the caster?

Why isn't airport relocation done gradually?

Are USB sockets on wall outlets live all the time, even when the switch is off?

Why can Shazam do this?

What is the use of option -o in the useradd command?

What can other administrators access on my machine?

Unbreakable Formation vs. Cry of the Carnarium

Extreme, unacceptable situation and I can't attend work tomorrow morning

Spanish for "widget"

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Carnot-Caratheodory metric

On the insanity of kings as an argument against monarchy

Pristine Bit Checking

Are there any other methods to apply to solving simultaneous equations?

Why is my p-value correlated to difference between means in two sample tests?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

How to manage monthly salary

What do the Banks children have against barley water?



SSRS Rendering Fails in Esoteric Context



The 2019 Stack Overflow Developer Survey Results Are InConverting Crystal reports to SSRSSSRS subscription fails on renderingAn error occurred during rendering of the report in SSRS ReportAveraging only non-zero values and displaying the result in Minutes:Seconds in SSRSSSRS running very slow and error client renderingFormat Hours/Minutes in SSRS ExpressionSSRS FieldValue denying ReportItemsSSRS - Exporting a huge report into PDFSSRS report fails to load in browser report manager - rsFilterEvaluationErrorSSIS - SSRS Rendering Clash Between EXCEL and EXCELOPENXML



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am using ReportingService2005 in a C#.net application that reaches out to an SSRS server to generate multiple reports as PDFs and combine them into a single PDF. It had worked well for a rough in-house program, but I recently deployed updated versions of old reports to be more flexible in some parameters. These reports were made by copying over tables from the old versions to maintain formatting, then updating the expressions to match the new report setup. One of these reports, in only very specific contexts that I can repeat if I encounter (but cannot determine what will trigger it), will fail to render in the program:



System.Web.Services.Protocols.SoapException - An error occurred during rendering of the report. --->
Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. --->
Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. --->
Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.


(Line breaks added to help with reading.) It doesn't say what field is being referenced or what element is failing, even if I try to analyze the SoapException in debug. If I look at a related dump log on the SSRS server, the report is:



library!ReportServer_0-113!248!03/21/2019-18:53:16:: e ERROR: Report server unique dump occured. Exception: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.
at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.FieldsImpl.CheckedGetFieldByIndex(Int32 index)
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleFieldReference(Int32 fieldIndex, VariantResult& result)
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleExpression(ExpressionInfo expression, VariantResult& result)
at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateTextRunValueExpression(TextRun textRun)
at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.TextRunImpl.GetResult(IReportScopeInstance romInstance)
at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.EvaluateOriginalValue()
at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.get_OriginalValue()
at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.EvaluateOriginalValue()
at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.get_TypeCode()
at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.GetAlignmentRight(Style style, StyleInstance styleInstance)
at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.InitParagraphs()
at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox..ctor(TextBox source, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.Create(ReportItem source, Boolean tablixCellParent, Boolean ignoreKT, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.AddRowMember(TablixMember rowMember, Int32 colIndex, Int32 rowSpan, Int32 colSpan, LevelInfo childInfo, PageContext pageContext, Double updateWidth)
at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDynamicRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Int32 sourceIndex, Int32 parentRowIndex, Int32 parentColIndex, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBord, Message: , Unhandled Exception: False


which doesn't seem to tell me any more except that the error occurs while trying to render a cell (which doesn't help, there's the header, footer, and a single tablix).



This same report, for the same parameters, will work fine in Visual Studio, ReportViewer through our website, the SSRS web interface, and even if I have the file render in this custom program as Excel instead of PDF. (Generating as PDF through the other interfaces also works fine.) I have combed the report's code for errant Field! statements, particularly where a context is specified (e.g. another DataSet) and found nothing amiss.



I know that ReportingServices can make extremely esoteric error messages[1] so it's quite possible this isn't related to a non-existing field at all, but I can't figure out anything that might be wrong with the report or with the way that I'm calling to generate it. If I use a slightly different set of parameters, referring to a date range instead of a pre-defined time frame to get the same data, it generates fine; there is a column that doesn't get filled out in this case, making it a potential culprit, but again I can find nothing wrong.



Is there something I'm missing, or am I misunderstanding the error message? Is there another place that would actually tell me which frackin' cell has the error? The last-ditch solution for report problems has been to just recreate them wholly from scratch, but I would like to avoid this as the report is complex with a ton of tiny details.



Also, I noticed GetAlignmentRight half-way through the trace; is this something that might help with debugging? If rendering calls Right/Center/Left I could very painfully narrow down the cell in question, if there even is one. I tried to change all of my right-aligned cells to center, though, and the trace did not change. Edit: Nope, the cell that caused the problem was center-aligned, so this wouldn't have helped in this case.




[1] another error message I dealt with in a different report said a non-existent ReportItem was being referenced, when the actual problem was timeout due to rendering taking too long; I've confirmed that's not the issue here










share|improve this question






























    0















    I am using ReportingService2005 in a C#.net application that reaches out to an SSRS server to generate multiple reports as PDFs and combine them into a single PDF. It had worked well for a rough in-house program, but I recently deployed updated versions of old reports to be more flexible in some parameters. These reports were made by copying over tables from the old versions to maintain formatting, then updating the expressions to match the new report setup. One of these reports, in only very specific contexts that I can repeat if I encounter (but cannot determine what will trigger it), will fail to render in the program:



    System.Web.Services.Protocols.SoapException - An error occurred during rendering of the report. --->
    Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. --->
    Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. --->
    Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.


    (Line breaks added to help with reading.) It doesn't say what field is being referenced or what element is failing, even if I try to analyze the SoapException in debug. If I look at a related dump log on the SSRS server, the report is:



    library!ReportServer_0-113!248!03/21/2019-18:53:16:: e ERROR: Report server unique dump occured. Exception: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.
    at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.FieldsImpl.CheckedGetFieldByIndex(Int32 index)
    at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleFieldReference(Int32 fieldIndex, VariantResult& result)
    at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleExpression(ExpressionInfo expression, VariantResult& result)
    at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateTextRunValueExpression(TextRun textRun)
    at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.TextRunImpl.GetResult(IReportScopeInstance romInstance)
    at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.EvaluateOriginalValue()
    at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.get_OriginalValue()
    at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.EvaluateOriginalValue()
    at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.get_TypeCode()
    at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.GetAlignmentRight(Style style, StyleInstance styleInstance)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.InitParagraphs()
    at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox..ctor(TextBox source, PageContext pageContext)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.Create(ReportItem source, Boolean tablixCellParent, Boolean ignoreKT, PageContext pageContext)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.AddRowMember(TablixMember rowMember, Int32 colIndex, Int32 rowSpan, Int32 colSpan, LevelInfo childInfo, PageContext pageContext, Double updateWidth)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDynamicRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Int32 sourceIndex, Int32 parentRowIndex, Int32 parentColIndex, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
    at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBord, Message: , Unhandled Exception: False


    which doesn't seem to tell me any more except that the error occurs while trying to render a cell (which doesn't help, there's the header, footer, and a single tablix).



    This same report, for the same parameters, will work fine in Visual Studio, ReportViewer through our website, the SSRS web interface, and even if I have the file render in this custom program as Excel instead of PDF. (Generating as PDF through the other interfaces also works fine.) I have combed the report's code for errant Field! statements, particularly where a context is specified (e.g. another DataSet) and found nothing amiss.



    I know that ReportingServices can make extremely esoteric error messages[1] so it's quite possible this isn't related to a non-existing field at all, but I can't figure out anything that might be wrong with the report or with the way that I'm calling to generate it. If I use a slightly different set of parameters, referring to a date range instead of a pre-defined time frame to get the same data, it generates fine; there is a column that doesn't get filled out in this case, making it a potential culprit, but again I can find nothing wrong.



    Is there something I'm missing, or am I misunderstanding the error message? Is there another place that would actually tell me which frackin' cell has the error? The last-ditch solution for report problems has been to just recreate them wholly from scratch, but I would like to avoid this as the report is complex with a ton of tiny details.



    Also, I noticed GetAlignmentRight half-way through the trace; is this something that might help with debugging? If rendering calls Right/Center/Left I could very painfully narrow down the cell in question, if there even is one. I tried to change all of my right-aligned cells to center, though, and the trace did not change. Edit: Nope, the cell that caused the problem was center-aligned, so this wouldn't have helped in this case.




    [1] another error message I dealt with in a different report said a non-existent ReportItem was being referenced, when the actual problem was timeout due to rendering taking too long; I've confirmed that's not the issue here










    share|improve this question


























      0












      0








      0








      I am using ReportingService2005 in a C#.net application that reaches out to an SSRS server to generate multiple reports as PDFs and combine them into a single PDF. It had worked well for a rough in-house program, but I recently deployed updated versions of old reports to be more flexible in some parameters. These reports were made by copying over tables from the old versions to maintain formatting, then updating the expressions to match the new report setup. One of these reports, in only very specific contexts that I can repeat if I encounter (but cannot determine what will trigger it), will fail to render in the program:



      System.Web.Services.Protocols.SoapException - An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.


      (Line breaks added to help with reading.) It doesn't say what field is being referenced or what element is failing, even if I try to analyze the SoapException in debug. If I look at a related dump log on the SSRS server, the report is:



      library!ReportServer_0-113!248!03/21/2019-18:53:16:: e ERROR: Report server unique dump occured. Exception: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.
      at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.FieldsImpl.CheckedGetFieldByIndex(Int32 index)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleFieldReference(Int32 fieldIndex, VariantResult& result)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleExpression(ExpressionInfo expression, VariantResult& result)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateTextRunValueExpression(TextRun textRun)
      at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.TextRunImpl.GetResult(IReportScopeInstance romInstance)
      at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.EvaluateOriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.get_OriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.EvaluateOriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.get_TypeCode()
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.GetAlignmentRight(Style style, StyleInstance styleInstance)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.InitParagraphs()
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox..ctor(TextBox source, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.Create(ReportItem source, Boolean tablixCellParent, Boolean ignoreKT, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.AddRowMember(TablixMember rowMember, Int32 colIndex, Int32 rowSpan, Int32 colSpan, LevelInfo childInfo, PageContext pageContext, Double updateWidth)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDynamicRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Int32 sourceIndex, Int32 parentRowIndex, Int32 parentColIndex, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBord, Message: , Unhandled Exception: False


      which doesn't seem to tell me any more except that the error occurs while trying to render a cell (which doesn't help, there's the header, footer, and a single tablix).



      This same report, for the same parameters, will work fine in Visual Studio, ReportViewer through our website, the SSRS web interface, and even if I have the file render in this custom program as Excel instead of PDF. (Generating as PDF through the other interfaces also works fine.) I have combed the report's code for errant Field! statements, particularly where a context is specified (e.g. another DataSet) and found nothing amiss.



      I know that ReportingServices can make extremely esoteric error messages[1] so it's quite possible this isn't related to a non-existing field at all, but I can't figure out anything that might be wrong with the report or with the way that I'm calling to generate it. If I use a slightly different set of parameters, referring to a date range instead of a pre-defined time frame to get the same data, it generates fine; there is a column that doesn't get filled out in this case, making it a potential culprit, but again I can find nothing wrong.



      Is there something I'm missing, or am I misunderstanding the error message? Is there another place that would actually tell me which frackin' cell has the error? The last-ditch solution for report problems has been to just recreate them wholly from scratch, but I would like to avoid this as the report is complex with a ton of tiny details.



      Also, I noticed GetAlignmentRight half-way through the trace; is this something that might help with debugging? If rendering calls Right/Center/Left I could very painfully narrow down the cell in question, if there even is one. I tried to change all of my right-aligned cells to center, though, and the trace did not change. Edit: Nope, the cell that caused the problem was center-aligned, so this wouldn't have helped in this case.




      [1] another error message I dealt with in a different report said a non-existent ReportItem was being referenced, when the actual problem was timeout due to rendering taking too long; I've confirmed that's not the issue here










      share|improve this question
















      I am using ReportingService2005 in a C#.net application that reaches out to an SSRS server to generate multiple reports as PDFs and combine them into a single PDF. It had worked well for a rough in-house program, but I recently deployed updated versions of old reports to be more flexible in some parameters. These reports were made by copying over tables from the old versions to maintain formatting, then updating the expressions to match the new report setup. One of these reports, in only very specific contexts that I can repeat if I encounter (but cannot determine what will trigger it), will fail to render in the program:



      System.Web.Services.Protocols.SoapException - An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. --->
      Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.


      (Line breaks added to help with reading.) It doesn't say what field is being referenced or what element is failing, even if I try to analyze the SoapException in debug. If I look at a related dump log on the SSRS server, the report is:



      library!ReportServer_0-113!248!03/21/2019-18:53:16:: e ERROR: Report server unique dump occured. Exception: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException_NonExistingFieldReference: The expression referenced a non-existing field in the fields collection.
      at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.FieldsImpl.CheckedGetFieldByIndex(Int32 index)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleFieldReference(Int32 fieldIndex, VariantResult& result)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateSimpleExpression(ExpressionInfo expression, VariantResult& result)
      at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.EvaluateTextRunValueExpression(TextRun textRun)
      at Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.TextRunImpl.GetResult(IReportScopeInstance romInstance)
      at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.EvaluateOriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.InternalTextRunInstance.get_OriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.EvaluateOriginalValue()
      at Microsoft.ReportingServices.OnDemandReportRendering.TextBoxInstance.get_TypeCode()
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.GetAlignmentRight(Style style, StyleInstance styleInstance)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.InitParagraphs()
      at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox..ctor(TextBox source, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.Create(ReportItem source, Boolean tablixCellParent, Boolean ignoreKT, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.AddRowMember(TablixMember rowMember, Int32 colIndex, Int32 rowSpan, Int32 colSpan, LevelInfo childInfo, PageContext pageContext, Double updateWidth)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDynamicRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Int32 sourceIndex, Int32 parentRowIndex, Int32 parentColIndex, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext)
      at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBord, Message: , Unhandled Exception: False


      which doesn't seem to tell me any more except that the error occurs while trying to render a cell (which doesn't help, there's the header, footer, and a single tablix).



      This same report, for the same parameters, will work fine in Visual Studio, ReportViewer through our website, the SSRS web interface, and even if I have the file render in this custom program as Excel instead of PDF. (Generating as PDF through the other interfaces also works fine.) I have combed the report's code for errant Field! statements, particularly where a context is specified (e.g. another DataSet) and found nothing amiss.



      I know that ReportingServices can make extremely esoteric error messages[1] so it's quite possible this isn't related to a non-existing field at all, but I can't figure out anything that might be wrong with the report or with the way that I'm calling to generate it. If I use a slightly different set of parameters, referring to a date range instead of a pre-defined time frame to get the same data, it generates fine; there is a column that doesn't get filled out in this case, making it a potential culprit, but again I can find nothing wrong.



      Is there something I'm missing, or am I misunderstanding the error message? Is there another place that would actually tell me which frackin' cell has the error? The last-ditch solution for report problems has been to just recreate them wholly from scratch, but I would like to avoid this as the report is complex with a ton of tiny details.



      Also, I noticed GetAlignmentRight half-way through the trace; is this something that might help with debugging? If rendering calls Right/Center/Left I could very painfully narrow down the cell in question, if there even is one. I tried to change all of my right-aligned cells to center, though, and the trace did not change. Edit: Nope, the cell that caused the problem was center-aligned, so this wouldn't have helped in this case.




      [1] another error message I dealt with in a different report said a non-existent ReportItem was being referenced, when the actual problem was timeout due to rendering taking too long; I've confirmed that's not the issue here







      c# reporting-services ssrs-2016






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 23:01







      Kodithic

















      asked Mar 22 at 2:46









      KodithicKodithic

      11011




      11011






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Solution



          It was a field call causing this, but the field reference was correct. The fix, after identifying this call, was to remove the cell entirely (in my case, deleting the whole row because it was the only cell used on that row) and re-create it.




          Troubleshooting Details



          I know the how, but not the why. Determined to solve this, I made a copy of the report and slowly deleted sections until the problem stopped. Reset, delete a sub-section of that section that contained the issue, repeat.



          I eventually determined that the issue was with a single cell, and only in a specific instance: When the value of =Fields!Level3Name.Value had the value of Non-Controllables. Removing just the expression would allow the report to render. Modifying the expression to be =Fields!Level3Name.Value & " " or =CStr(Fields!Level3Name.Value) would allow the report to generate, but this field would show #Error:



          Error Example



          The Total line at the bottom of that image references the exact same field. I tried a few other small changes but they either resulted in #Error or I didn't like the workaround, so in the end I tried to just insert a new row, manually re-create the cell, and delete the old one. Now generation works just fine (in testing, knock on wood.)



          My best guess is that the - caused the renderer to try to treat the result as an equation. But different params would also have this or a similar Field3Name and run without problem, and again this would only occur when I tried to generate the report as a PDF through the C#.net application and nowhere else. I analyzed the XML for the "fixed" TablixMember (representing the entire row) vs the "broken" one, even after adjusting to use the exact same settings the fixed one still worked. So, I don't know why this happened but at least if it happens again I have a way to chase it down.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292168%2fssrs-rendering-fails-in-esoteric-context%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Solution



            It was a field call causing this, but the field reference was correct. The fix, after identifying this call, was to remove the cell entirely (in my case, deleting the whole row because it was the only cell used on that row) and re-create it.




            Troubleshooting Details



            I know the how, but not the why. Determined to solve this, I made a copy of the report and slowly deleted sections until the problem stopped. Reset, delete a sub-section of that section that contained the issue, repeat.



            I eventually determined that the issue was with a single cell, and only in a specific instance: When the value of =Fields!Level3Name.Value had the value of Non-Controllables. Removing just the expression would allow the report to render. Modifying the expression to be =Fields!Level3Name.Value & " " or =CStr(Fields!Level3Name.Value) would allow the report to generate, but this field would show #Error:



            Error Example



            The Total line at the bottom of that image references the exact same field. I tried a few other small changes but they either resulted in #Error or I didn't like the workaround, so in the end I tried to just insert a new row, manually re-create the cell, and delete the old one. Now generation works just fine (in testing, knock on wood.)



            My best guess is that the - caused the renderer to try to treat the result as an equation. But different params would also have this or a similar Field3Name and run without problem, and again this would only occur when I tried to generate the report as a PDF through the C#.net application and nowhere else. I analyzed the XML for the "fixed" TablixMember (representing the entire row) vs the "broken" one, even after adjusting to use the exact same settings the fixed one still worked. So, I don't know why this happened but at least if it happens again I have a way to chase it down.






            share|improve this answer



























              0














              Solution



              It was a field call causing this, but the field reference was correct. The fix, after identifying this call, was to remove the cell entirely (in my case, deleting the whole row because it was the only cell used on that row) and re-create it.




              Troubleshooting Details



              I know the how, but not the why. Determined to solve this, I made a copy of the report and slowly deleted sections until the problem stopped. Reset, delete a sub-section of that section that contained the issue, repeat.



              I eventually determined that the issue was with a single cell, and only in a specific instance: When the value of =Fields!Level3Name.Value had the value of Non-Controllables. Removing just the expression would allow the report to render. Modifying the expression to be =Fields!Level3Name.Value & " " or =CStr(Fields!Level3Name.Value) would allow the report to generate, but this field would show #Error:



              Error Example



              The Total line at the bottom of that image references the exact same field. I tried a few other small changes but they either resulted in #Error or I didn't like the workaround, so in the end I tried to just insert a new row, manually re-create the cell, and delete the old one. Now generation works just fine (in testing, knock on wood.)



              My best guess is that the - caused the renderer to try to treat the result as an equation. But different params would also have this or a similar Field3Name and run without problem, and again this would only occur when I tried to generate the report as a PDF through the C#.net application and nowhere else. I analyzed the XML for the "fixed" TablixMember (representing the entire row) vs the "broken" one, even after adjusting to use the exact same settings the fixed one still worked. So, I don't know why this happened but at least if it happens again I have a way to chase it down.






              share|improve this answer

























                0












                0








                0







                Solution



                It was a field call causing this, but the field reference was correct. The fix, after identifying this call, was to remove the cell entirely (in my case, deleting the whole row because it was the only cell used on that row) and re-create it.




                Troubleshooting Details



                I know the how, but not the why. Determined to solve this, I made a copy of the report and slowly deleted sections until the problem stopped. Reset, delete a sub-section of that section that contained the issue, repeat.



                I eventually determined that the issue was with a single cell, and only in a specific instance: When the value of =Fields!Level3Name.Value had the value of Non-Controllables. Removing just the expression would allow the report to render. Modifying the expression to be =Fields!Level3Name.Value & " " or =CStr(Fields!Level3Name.Value) would allow the report to generate, but this field would show #Error:



                Error Example



                The Total line at the bottom of that image references the exact same field. I tried a few other small changes but they either resulted in #Error or I didn't like the workaround, so in the end I tried to just insert a new row, manually re-create the cell, and delete the old one. Now generation works just fine (in testing, knock on wood.)



                My best guess is that the - caused the renderer to try to treat the result as an equation. But different params would also have this or a similar Field3Name and run without problem, and again this would only occur when I tried to generate the report as a PDF through the C#.net application and nowhere else. I analyzed the XML for the "fixed" TablixMember (representing the entire row) vs the "broken" one, even after adjusting to use the exact same settings the fixed one still worked. So, I don't know why this happened but at least if it happens again I have a way to chase it down.






                share|improve this answer













                Solution



                It was a field call causing this, but the field reference was correct. The fix, after identifying this call, was to remove the cell entirely (in my case, deleting the whole row because it was the only cell used on that row) and re-create it.




                Troubleshooting Details



                I know the how, but not the why. Determined to solve this, I made a copy of the report and slowly deleted sections until the problem stopped. Reset, delete a sub-section of that section that contained the issue, repeat.



                I eventually determined that the issue was with a single cell, and only in a specific instance: When the value of =Fields!Level3Name.Value had the value of Non-Controllables. Removing just the expression would allow the report to render. Modifying the expression to be =Fields!Level3Name.Value & " " or =CStr(Fields!Level3Name.Value) would allow the report to generate, but this field would show #Error:



                Error Example



                The Total line at the bottom of that image references the exact same field. I tried a few other small changes but they either resulted in #Error or I didn't like the workaround, so in the end I tried to just insert a new row, manually re-create the cell, and delete the old one. Now generation works just fine (in testing, knock on wood.)



                My best guess is that the - caused the renderer to try to treat the result as an equation. But different params would also have this or a similar Field3Name and run without problem, and again this would only occur when I tried to generate the report as a PDF through the C#.net application and nowhere else. I analyzed the XML for the "fixed" TablixMember (representing the entire row) vs the "broken" one, even after adjusting to use the exact same settings the fixed one still worked. So, I don't know why this happened but at least if it happens again I have a way to chase it down.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 22:58









                KodithicKodithic

                11011




                11011





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292168%2fssrs-rendering-fails-in-esoteric-context%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현