Genexus 错误 "Check srcIndex and length, and the array's lower bounds" 生成报告

Genexus error "Check srcIndex and length, and the array's lower bounds" generating report

KB 基于 Genexus 16 U9,使用生成器 .NET 4.0。

当客户端通过网络服务请求时,系统会生成报告,并传递发票的 ID。通常,许多不同的文档会同时请求它,但每个报告都会生成一个唯一的文件名(避免锁定文件名),将其转换为 base64 并删除文件。

在大多数情况下,请求会成功,但有时它会在短时间内开始为许多请求抛出以下异常。回收 IIS 池后,它会停止一段时间。

上报程序:rnuc006.

Source array was not long enough. Check srcIndex and length, and the array's lower bounds.   at GeneXus.Procedure.GxReportUtils.GetPrinter(Int32 outputType, String path, Stream reportOutputStream)
   at GeneXus.Procedure.GXProcedure.getPrinter()
   at GeneXus.Programs.rnuc006.executePrivate()
   at GeneXus.Programs.rnuc006.execute(SdtSDTDadosEmissao& aP0_SDTDadosEmissao, SdtSDTDadosEnvio& aP1_SDTDadosEnvio, Int16 aP2_indiceLote, Int16 aP3_indiceRPS, String aP4_Filename)
   at GeneXus.Programs.pnfs216.S121()
   at GeneXus.Programs.pnfs216.executePrivate()

我正在尝试调试,但很难找到它突然开始发生的原因。

在 v16u10 上已经修复了这个错误,如果您再次遇到这个问题,也许您可​​以尝试使用那个版本。