<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
After having a successful deployment of the Stimulsoft online toolset, I am starting to see the following error when attempting to load my reports into the web designer, or web viewer.
Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, position 8.
It is thrown on this line
stiReport.Load(_report.FullyQualifiedReportName);
where _report.FullyQualifiedReportName contains a value like.
C:\Development\Files\Trunk\Reports\Private\80ba0ae5-311d-4c55-ab7a-1929f42be43b\49b2a8b9-6936-4831-9f2c-d72f054b9ee6\MVines Report 3.mrt
I have checked for the presence of white space around this value. It is not present.
In case this was a dataset issue, I distilled a report down to only one column in my dataset. The column name I am using is Case_CaseStatus, also verified not to have spaces in front of it.
Where does this error come from? What name is it suggesting has the issue?
Thanks for your time,
Matthew Vines
Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, position 8.
It is thrown on this line
stiReport.Load(_report.FullyQualifiedReportName);
where _report.FullyQualifiedReportName contains a value like.
C:\Development\Files\Trunk\Reports\Private\80ba0ae5-311d-4c55-ab7a-1929f42be43b\49b2a8b9-6936-4831-9f2c-d72f054b9ee6\MVines Report 3.mrt
I have checked for the presence of white space around this value. It is not present.
In case this was a dataset issue, I distilled a report down to only one column in my dataset. The column name I am using is Case_CaseStatus, also verified not to have spaces in front of it.
Where does this error come from? What name is it suggesting has the issue?
Thanks for your time,
Matthew Vines
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
This is the xml for a report that is throwing the error.
It is the Name element under DataSources that I think is causing the issue. This is how I am registering my dataSource when creating the report.
Code: Select all
IDNumber,System.Int32
DataSource
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
a750b3e02281445faac2130b7327af21
0.39,0.39,0.39,0.39
Page1
11
8.5
Letter
Arial,100
[50:0:0:0]
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
MVines Report 3
11/2/2010 9:40:33 AM
11/2/2010 9:40:33 AM
Test Report 3
8c5e9880e65645f593eb44d1e4b855e7
MVines Report 3
Inches
2010.2.800
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
CSharp
Code: Select all
stiReport.DataSources.Clear();
stiReport.RegData( "DataSource", _report.GetSchemaDefinitionDataTable() ); //_report.GetSchemaDefinitionDataTable() returns the data table used for the report without any data
stiReport.Dictionary.Synchronize();
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
I have found the issue, but do not know the cause of it.
What is the element name here?
Why would it be missing?
Code: Select all
IDNumber,System.Int32
DataSource
Code: Select all
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
One more piece of information for the puzzle. Apparently the problem started when I switched to
before this issue, I was registering a dataset, I switched it to a data table because I only ever have one result set in my reports. This appears to be the source of the issue. I changed it back to a dataset and everything is moving along just fine.
This may be a bug in the Stimulsoft Report Serializer. There is an overload for RegData that takes a DataTable, but it does not appear to function correctly.
Code: Select all
_report.GetSchemaDefinitionDataTable()
This may be a bug in the Stimulsoft Report Serializer. There is an overload for RegData that takes a DataTable, but it does not appear to function correctly.
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
Hello,
Thank you.
Element name is name of datasource. You can't use empty names in report.mvines wrote:I have found the issue, but do not know the cause of it.
What is the element name here?Code: Select all
IDNumber,System.Int32 DataSource
Why would it be missing?Code: Select all
Thank you.
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
Hello,
Thank you.
Please check DataTable which returned by GetSchemaDefinitionDataTable method. TableName must be filled.mvines wrote:One more piece of information for the puzzle. Apparently the problem started when I switched to
before this issue, I was registering a dataset, I switched it to a data table because I only ever have one result set in my reports. This appears to be the source of the issue. I changed it back to a dataset and everything is moving along just fine.Code: Select all
_report.GetSchemaDefinitionDataTable()
This may be a bug in the Stimulsoft Report Serializer. There is an overload for RegData that takes a DataTable, but it does not appear to function correctly.
Thank you.
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
Thanks Jan,
That appears to have been the issue. Thanks for the reply.
That appears to have been the issue. Thanks for the reply.
<Solved> Error: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 7, posi
Hello,
Our Team is always glad to help you.
Thank you.
Our Team is always glad to help you.
Thank you.