ReportViewer,数组边界外的索引(RDLC报告)C#

ReportViewer,数组边界外的索引(RDLC报告)C#,c#,sql-server,ado.net,report,rdlc,C#,Sql Server,Ado.net,Report,Rdlc,我正在尝试生成一个rdlc报告,而现在dataSet正在抛出一个异常。i、 “e”索引超出了数组的边界 在命令视图中,我在命令窗口中看到以下错误 >? dataTable.GetErrors()[0] 'dataTable.GetErrors()[0]' threw an exception of type 'System.IndexOutOfRangeException' Data: {System.Collections.ListDictionaryInternal}

我正在尝试生成一个rdlc报告,而现在dataSet正在抛出一个异常。i、 “e”索引超出了数组的边界

在命令视图中,我在命令窗口中看到以下错误

>? dataTable.GetErrors()[0]

   'dataTable.GetErrors()[0]' threw an exception of type 
   'System.IndexOutOfRangeException'

Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233080
HelpLink: null
IPForWatsonBuckets: {0}
InnerException: null
IsTransient: false
Message: "Index was outside the bounds of the array."
RemoteStackTrace: null
Source: null
StackTrace: null
TargetSite: null
WatsonBuckets: null
_HResult: -2146233080
_className: null
_data: {System.Collections.ListDictionaryInternal}
_dynamicMethods: null
_exceptionMethod: null
_exceptionMethodString: null
_helpURL: null
_innerException: null
_ipForWatsonBuckets: {0}
_message: "Index was outside the bounds of the array."
_remoteStackIndex: 0
_remoteStackTraceString: null
_safeSerializationManager: {System.Runtime.Serialization.SafeSerializationManager}
_source: null
_stackTrace: null
_stackTraceString: null
_watsonBuckets: null
_xcode: -532462766
_xptrs: {0}
在历史调试方面,它指向这些代码

public virtual int Fill(ReportDataSet.DataTable1DataTable dataTable)
{
    this.Adapter.SelectCommand = this.CommandCollection[0];
    if ((this.ClearBeforeFill == true))
    {
        dataTable.Clear();
    }

    int returnValue = Adapter.Fill(dataTable);

    return returnValue;
}

报表查看器保持空白。有什么建议吗

因为数据表可以存储的最大行数是16777216。因此,如果结果包含的记录多于此记录,则会出现“索引超出数组边界”错误。

实际上,该错误是合法的。 是我的错。特定列仅属于特定类型的客户。然而,我正在提取所有记录,因此长度被声明为g 3,但由于该列,它过去变成了4

不管怎样,我生成了两份报告,现在一切都很好。
谢谢各位,

这很有可能是关于列的,但无论如何尝试一下都很好我只从9-11列中检索记录,所以目前我只有一条记录要检索,即一行。