asked on July 21, 2020 Show version history

Edit: It turns out that a few fields in the XML had values that were larger than the 40-character size limit. I'll leave this up just in case it help anyone.

 

I'm bringing documents into a repository by using XML files containing the document information (titles, metadata, etc.)

 

Almost all of them have processed correctly, but a few of them are giving the error at the bottom of this post in Event Viewer. I have a few questions about this:

1. Is there any way to find out the specific line or field with the issue? Each of the XML files contains up to 1000 documents worth of information, so I don't believe I could diagnose this by hand.

2. Does this simply mean that one of the fields in the XML does not contain valid information for its corresponding field in Laserfiche? I have set all of them to be Text fields so I wouldn't imagine there are invalid characters. I don't think it's a field size limit issue.

 

---

There was an error running the profile (Profile Name) while importing the file "(path to file)". (Input string was not in a correct format.)
 
Error Code: 
 
StackTrace:    at System.Text.StringBuilder.FormatError()
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(String format, Object[] args)
   at Laserfiche.ImportAgent.Service.ExecuteProfileFile.GetFieldValue(DocumentInfo LFDoc, FieldInfo LFField, String[] strValues, IIATokenSubstituteContext ti)
   at Laserfiche.ImportAgent.Service.ExecuteProfileXmlFile.ReplaceFieldValueNode(XmlNode lfDocNode, String fileRef, Session lfDatabase)
   at Laserfiche.ImportAgent.Service.ExecuteProfileXmlFile.ReplaceTokensInXml(XmlDocument document, Session lfDatabase)
   at Laserfiche.ImportAgent.Service.ExecuteProfileXmlFile.ProcessXMLFile(ExecutionContext context, Session LFDatabase, Boolean willBurnPdfAnnotation)
   at Laserfiche.ImportAgent.Service.ExecuteProfileXmlFile.ImportFile(ExecutionContext context)
   at Laserfiche.ImportAgent.Service.ExecuteProfileFile.Execute(ExecutionContext context)

0 0