I'm no expert but I see you're expecting XML and as far as I
know, the default response in Solr 8 is JSON. Maybe check that ?



On Wednesday, 17-11-2021 at 11:16 Heller, George A III CTR (USA)
wrote:






We have an existing ASP>NET C# application that currently uses Solr
3.6.1 for indexing and searching of documents. Using Solr
3.6.1,everything works fine.



I built a Solr 8.10.1 server and when I try to upload documents to a
Solr collection in 8.10.1, I get a "Data is invalid at root level"
error. Any help with would be appreciated. 




 



CODE:



ISolrOperations solr = ServiceLocator.Current.GetInstance();



                         
                  var response =



                                                   
solr.Extract(



                                                   
new ExtractParameters(file, nextDocFile)



                                                   
{



         
                                              ExtractFormat
= ExtractFormat.Text,



                                                       
ExtractOnly = false,



                                                       
AutoCommit = true



                      
                             });




 



ERROR LOG:



Exception Type: XmlException Error in:
http://localhost:63408/document/new_document.aspx?uID=2081&dType=PHP&txtPath=%2fContribution+Folders%2fPHP%2f00+-++CLOSED+FILES%2f01-Intelligence%2f01-Personnel
Error Message: Data at the root level is invalid. Line 1, position
1.Error Source: System.XmlStackTrace:    at
System.Xml.XmlTextReaderImpl.Throw(Exception e)   at
System.Xml.XmlTextReaderImpl.Throw(String res, String arg)   at
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()   at
System.Xml.XmlTextReaderImpl.ParseDocumentContent()   at
System.Xml.XmlTextReaderImpl.Read [1]()   at
System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions
options)   at System.Xml.Linq.XDocument.Parse(String text,
LoadOptions options)   at System.Xml.Linq.XDocument.Parse(String
text)   at
SolrNet.Impl.SolrBasicServer`1.SendAndParseExtract(ISolrCommand
cmd)   at SolrNet.Impl.SolrBasicServer`1.Extract(ExtractParameters
parameters)   at SolrNet.Impl.SolrServer`1.Extract(ExtractParameters
parameters)   at xyz_app.Document.new [2]_document.Upload_File() in
 



 



 



 



Thanks,



George Heller



 



Email: [email protected]



 



SecurityPlus Logo Certified CE



 





Links:
------
[1] http://System.Xml.XmlTextReaderImpl.Read
[2] http://app.Document.new

Reply via email to