I'm getting an exception when trying to use column names with underscores for example test_data. I've tried this with stored procs, straight sql and event driven queries with the same results. It looks like it's cutting off the column name at the underscore
The exception message is :
Message "Column 'test' does not belong to table Table."
The Stack Trace is :
System.Data.DataRow.GetDataColumn(String columnName)\r\n at System.Data.DataRow.get_Item(String columnName)\r\n at ceTe.DynamicPDF.ReportWriter.Data.DataTableRecordSet.get_Item(String fieldName)\r\n at zz93.ju.d(LayoutWriter A_0)\r\n at ceTe.DynamicPDF.ReportWriter.ReportElements.RecordBox.Layout(lz record, LayoutWriter writer)\r\n at ceTe.DynamicPDF.ReportWriter.ReportElementList.a(lz A_0, LayoutWriter A_1)\r\n at zz93.lz.a(ReportPart A_0, LayoutWriter A_1)\r\n at ceTe.DynamicPDF.ReportWriter.DetailReportPart.a(LayoutWriter A_0)\r\n at zz93.eh.o()\r\n at ceTe.DynamicPDF.ReportWriter.Report.Layout(dh writer)\r\n at zz93.dh.c()\r\n at ceTe.DynamicPDF.ReportWriter.DocumentLayout.Run(ParameterDictionary parameters)\r\n at ceTe.DynamicPDF.ReportWriter.DocumentLayout.Run()\r\n
Problem with columns names
Re: Problem with columns names
Support · Jul 15, 2009Hello,
Can you please try using the square brackets for the columns having underscore in them and see if it solves your problem? Ex: [test_data].
Thanks,
ceTe Software Support Team.
Re: Problem with columns names
Forum member · Jul 15, 2009That worked. Did I miss this somewhere in the documentation?
Thank you,
John
Re: Problem with columns names
Support · Jul 15, 2009Hello John,
Currently we do not have this in our help documentation. We will add this point in the next release of the help documentation.
Thanks,
ceTe Software Support Team.
Re: Problem with columns names
Forum member · Jul 15, 2009Thank you, this was extremely helpful.