TM Master Common Errors

System.Xml.XmlException: Invalid character in the given encoding. Line 1, position 1.

System.Xml.XmlException: Invalid character in the given encoding. Line 1, position 1.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)

at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)

at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)

at System.Xml.XmlTextReaderImpl.ReadData()

at System.Xml.XmlTextReaderImpl.SwitchEncoding(Encoding newEncoding)

at System.Xml.XmlTextReaderImpl.SwitchEncodingToUTF8()

at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(Boolean isTextDecl)

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

at System.Xml.XmlDocument.Load(XmlReader reader)

at DataDynamics.ActiveReports.ActiveReport3.LoadLayout(String fileName)

at TmReportNet.TMReport.set_ReportFile(String Value)

at TmMv2.OrderReportHandler.CreateReport()

at TmMv2.OrderReportHandler.CreateReport(TmOrderHead order, DataTable docs)

at TmMv2.FrmTmMv2OrderHead.cmdReport_Click(Object sender, CommandEventArgs e)

at Janus.Windows.UI.CommandBars.CommandEventHandler.Invoke(Object sender, CommandEventArgs e)

at Janus.Windows.UI.CommandBars.UICommand.OnClick(CommandEventArgs e)

at Janus.Windows.UI.CommandBars.UICommand.ar()

at Janus.Windows.UI.CommandBars.UICommandBar.OnMouseUp(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


This error is due to the Template for Request For Quotation being changed to the rfqecom.xlsx in one or both of the following two places: 


[System > Settings > Order Settings > Templates and headers]:

OR 

[Fleet > Units > (Click to open the unit) > Settings > Order Templates]:


This template used the OrderReport.rpx so this should always be set to Order as the following other 3 templates:


The rfqecom.xlsx is using the "Send request for quotation" feature on a purchase order, as shown below: 


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article