When the SAPReader process attempts to extract and upload a very large amount of data from SAP, the process may fail with an error like the following appearing in logging:
2020-12-03 16:09:43,923 [SAPReader.SAPReader |(null)] [ERROR] An error has occurred in the SAP Inventory Agent: Stream was too long. System.IO.IOException: Stream was too long.
The following error and stack trace will appear in logging in the SAPReader.log file when this issue occurs:
2020-12-03 16:09:43,923 [SAPReader.SAPReader |(null)] [ERROR] An error has occurred in the SAP Inventory Agent: Stream was too long. System.IO.IOException: Stream was too long. at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlUtf8RawTextWriter.FlushBuffer() at System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd) at System.Xml.XmlUtf8RawTextWriter.WriteString(String text) at System.Xml.XmlWellFormedWriter.WriteString(String text) at System.Xml.XmlWriter.WriteAttributes(XmlReader reader, Boolean defattr) at System.Xml.XmlWriter.WriteAttributes(XmlReader reader, Boolean defattr) at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr) at SAPReader.Helper.SAPInventoryXMLHelper.GetMD5HashOfInventoryContent(String id) at SAPReader.Helper.SAPInventoryXMLHelper.GenerateInventoryFileDigest() at SAPReader.SAPReader.SAPServerReader.GetNonObsolteInventoryFiles(String folder) at SAPReader.SAPReader.SAPServerReader.UploadSAPInventoryFolder(String folder, Guid importSessionUid, String connectionName, String sourceBeaconUID) at SAPReader.SAPReader.SAPServerReader.UploadSAPInventoryFromBeacon(String[] tenantUIDs)
This issue is still open but not currently scheduled to be addressed.
Master issue ID: IOJ-2167205
Also known as: ITAM-701
Aug 17, 2021 02:28 AM - edited Nov 20, 2023 01:30 PM