You are viewing limited content. For full access, please sign in.

Discussion

Discussion

QF Agent XML EoF error - How to determine XML file referred to?

posted on January 5, 2015

There is an error in the QF agent history logs along with an End of File missing error.

Unexpected end of file while parsing Name has occurred. Line 72, position 105.

The line and position is helpful but I am unable to see which XML file it is referring to. Searching through the XML files in the program data folder there is no xml files that are 72 lines long.

Kinda stuck here, I need to know which file in order to further troubleshoot.

 

 

0 0
replied on April 24, 2019

I have the same issue with a customer of mine.  No documents sitting in the session and it appears to still be processing documents without issue, but the error logs are filled with these errors still.

 

Has a resolution been found?  Other than re-creating the session entirely.

0 0
replied on July 9, 2015

I am also experiencing this error.  I cleared out the Agent completely, including the session references, then re-created the references and schedules.  The error still occurs.  Any ideas? Error log attached.

QFError.txt (17.2 KB)
0 0
replied on June 17, 2015

HI,

We also are getting this error.  And when you click on 'Ok' for the error, you are kicked out of the session.   Is there any solution?

0 0
replied on January 30, 2015

Hi

 

I also have the same issue.   I recreated the QF Agent Schedule for the session.  I still get this error which terminates the session.    I tried to look for the reference folder path and search the name in client and also in Windows to see if it was stuck in any Temp folder.  Simply, I can't  find the file that error relates too.

- we had this with LF V9.1 and QF 9.0

-we just upgraded to V9.2 and QF 9.0 ,  We still have the isse

Appreciate the help..              

0 0
replied on January 7, 2015

That seems to be on a document in the session. If you open the session and the document is still there, try sending it and see if the error persists. If the document is not longer there, it was probably sent on the next pass. If that's the case, then it was most likely something on the machine interferring with the file at the time QF tried to read it, possibly the anti-virus scan or something like it.

0 0
replied on January 7, 2015

This is a temp file I assume, not an xml file within the revision queue. I let the customer know however he was able to remove the error by removing and re-creating the agent job for the session.

0 0
replied on January 7, 2015

Yes, each document in the session has an XML file associated with it that describes its structure and metadata. Quick Fields creates this file when the document is identified and processed and deletes it when the document is sent to Laserfiche.

0 0
replied on January 6, 2015

<Errors>
<Error Time="01/05/2015 23:00:01" Type="InvalidOperationException" Message="An error occurred reading the document xml. [0828-QF1]">
  <HelpLink />
  <Data>
    <Item Key="xml" Value="&lt;Document Name=&quot;Invoice_%(Fields.Invoice Number)&quot; Electronic=&quot;false&quot; Identified=&quot;true&quot; Invalid=&quot;false&quot; DocumentClassId=&quot;1&quot; Agent=&quot;true&quot; SourceMachine=&quot;LF-02&quot; DocumentClass=&quot;Right Page Barcode&quot;&gt;&#xD;&#xA;  &lt;ElectronicFile /&gt;&#xD;&#xA;  &lt;DocumentProperties&gt;&#xD;&#xA;    &lt;Folder&gt;&#xD;&#xA;      &lt;Path&gt;\Customer\Invoice\%(Fields.Invoice Year)\%(Fields.Invoice Date)\%(Fields.Invoice Number)&lt;/Path&gt;&#xD;&#xA;      &lt;Tags Count=&quot;0&quot; /&gt;&#xD;&#xA;      &lt;Fields Count=&quot;0&quot; /&gt;&#xD;&#xA;    &lt;/Folder&gt;&#xD;&#xA;    &lt;Volume Id=&quot;1&quot;&gt;DEFAULT&lt;/Volume&gt;&#xD;&#xA;    &lt;Tags Count=&quot;0&quot; /&gt;&#xD;&#xA;    &lt;Fields Count=&quot;10&quot;&gt;&#xD;&#xA;      &lt;Field Name=&quot;Invoice Number&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;3158675&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Location Number&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;3&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Customer Number&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;003304&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;External Customer Number&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value /&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Billing Customer Number&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;003300&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Customer Name&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;ROUND TABLE-MARCONI      &lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Invoice Date&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;Date&quot;&gt;&#xD;&#xA;        &lt;Value&gt;12/23/2014&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Invoice Total&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;1990.05&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Chain Code&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;RTDC&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;      &lt;Field Name=&quot;Invoice Year&quot; Security=&quot;Read, Create, Edit&quot; type=&quot;String&quot;&gt;&#xD;&#xA;        &lt;Value&gt;2014&lt;/Value&gt;&#xD;&#xA;      &lt;/Field&gt;&#xD;&#xA;    &lt;/Fields&gt;&#xD;&#xA;    &lt;Template Id=&quot;2&quot;&gt;Customer Invoice&lt;/Template&gt;&#xD;&#xA;    &lt;AdditionalFields /&gt;&#xD;&#xA;    &lt;Comment /&gt;&#xD;&#xA;  &lt;/DocumentProperties&gt;&#xD;&#xA;  &lt;PropertyBag /&gt;&#xD;&#xA;  &lt;TokenManager&gt;&#xD;&#xA;    &lt;Token Name=&quot;IMAGE FILE SIZE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;80036&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;NAME&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;Untitled&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;EXTENSION&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;PATH&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;\Process\Customer Invoice&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;SOURCE PATH&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;\Process\Customer Invoice&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;CREATION DATE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;12/24/2014 8:54:08 AM&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;MODIFICATION DATE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;12/24/2014 8:54:15 AM&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;DOCUMENT ID&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;1504497&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.BILLING CUSTOMER NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.CHAIN CODE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.CUSTOMER NAME&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.CUSTOMER NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.EXTERNAL CUSTOMER NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.INVOICE DATE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.INVOICE NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.INVOICE TOTAL&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.INVOICE YEAR&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIELD.LOCATION NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;FIRST_PAGE_RIGHT_BARCODE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;3158675&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;RIGHT_INVOICE_BAR_CODE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot; /&gt;&#xD;&#xA;    &lt;Token Name=&quot;SQL-DM01-INVOICE_HEADER_INVOICE_NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;3158675&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;SQL-DM01-INVOICE_HEADER_LOCATION_NUMBER&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;3&lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;SQL-DM01-INVOICE_HEADER_CUSTOMER_NAME&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;ROUND TABLE-MARCONI      &lt;/Token&gt;&#xD;&#xA;    &lt;Token Name=&quot;SQL-DM01-INVOICE_HEADER_INVOICE_DATE&quot; Status=&quot;Verified&quot; Confidence=&quot;100&quot;&gt;12/23/2014&lt;/To" />
  </Data>
  <Trace>   at Laserfiche.QuickFields.AgentErrorLogger.WriteErrorToXml(Exception error, XmlWriter writer)
   at Laserfiche.QuickFields.AgentErrorLogger.WriteError(Exception error)
   at Laserfiche.QuickFields.Runtime.QFSessionProcessor.ErrorReadingDocument(String documentXml)
   at Laserfiche.BatchProcessor.Runtime.SessionProcessor.ConstructDocument(String documentXml, DocumentClass docClass, PageReader pageReader)
   at Laserfiche.QuickFields.Runtime.QFSessionProcessor.LoadRecoveredDocuments()
  at Laserfiche.QuickFields.Runtime.QFSessionProcessor.OnSessionChanged(ISession session)
   at Laserfiche.BatchProcessor.Runtime.SessionProcessor.ChangeSession(ISession newSession)
   at Laserfiche.BatchProcessor.BPManager.OpenNewSession(String filepath, Dictionary`2 createParams)
   at Laserfiche.QuickFields.QFApplicationUnattended.InitializeSession()
   at Laserfiche.QuickFields.QFApplicationUnattended.OnRun()
   at Laserfiche.Project.ApplicationBase.RunApp()
   at Laserfiche.BatchProcessor.Runtime.BPApplication.Run()
   at Laserfiche.QuickFields.Program.Main()
</Trace>
</Error>
<Error Time="01/05/2015 23:00:01" Type="XmlException" Message="Unexpected end of file while parsing Name has occurred. Line 72, position 105.">
  <HelpLink />
  <Trace>   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32&amp; colonPos)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlReader.ReadString()
   at System.Xml.XmlTextReaderImpl.ReadString()
   at Laserfiche.BatchProcessor.ComponentModel.TokenDictionary.Create(XmlReader reader)
   at Laserfiche.QuickFields.ComponentModel.QFDocument.ReadPublishedTokens(XmlReader reader)
   at Laserfiche.QuickFields.ComponentModel.QFDocument.ReadFromPublishedXml(XmlReader reader)
   at Laserfiche.QuickFields.ComponentModel.QFDocument.CreateFromPublishedXml(XmlReader reader)
   at Laserfiche.QuickFields.Runtime.QFSessionProcessor.ReadDocumentData(XmlReader reader, DocumentClass docClass, PageReader pageReader)
   at Laserfiche.BatchProcessor.Runtime.SessionProcessor.ConstructDocument(String documentXml, DocumentClass docClass, PageReader pageReader)</Trace>
</Error>

</Errors>

0 0
replied on January 5, 2015

Can you paste the whole error in here?

0 0
replied on March 23, 2017

Miruna,

What was the resolution on this question?

I'm receiving the same error (QF version 9.0.1)

03/23/2017 1:23:01 An error occurred reading the document xml. [0828-QF1]

03/23/2017 1:23:01 Unexpected end of file has occurred. The following elements are not closed: Token, TokenManager, Page, Pages, Document. Line 70, position 107.

Thanks.

0 0
replied on October 23, 2024

Hello @████████

 

I know its been a super long time but were you able to solve this?

 

Thanks

0 0
replied on October 24, 2024

Sorry.  I don't remember what I did to resolve it.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.