Some users may experience issues accessing the case portal. For more information, please click here.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Known Issue: SAPReader process may fail with error when uploading very large SAP data set: "System.IO.IOException: Stream was too long." (IOJ-2167205)

Known Issue: SAPReader process may fail with error when uploading very large SAP data set: "System.IO.IOException: Stream was too long." (IOJ-2167205)

Summary

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.

 

Symptoms

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)

Fix status

This issue is still open but not currently scheduled to be addressed.

Other information

Affected components: Integrations: SAP

Master issue ID: IOJ-2167205

Also known as: FNMS-70004

Labels (1)
Was this article helpful? Yes No

Tip: If you have been impacted by this issue, please click the KUDOS button above. This helps to track the relative significance and importance of issues. Clicking on an option against "Was this article helpful?" also helps assess and improve the usefulness of content.

No ratings
Version history
Last update:
‎Jun 12, 2022 03:53 AM
Updated by: