Issue
Exchange Import or Office 365 modules may log the following error:

2015-03-20 12:03:33Z|1368| 11|ERROR|                                  GetStreamAsImage|Unable to convert OLE attachment to PNG file, dumping source directly into output.  System.Drawing.Image FromStream(System.IO.Stream, Boolean, Boolean)
Parameter is not valid.
   at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
   at System.Drawing.Image.FromStream(Stream stream)
   at QUADROtech.MessageParser.Timefinity.MessageReader.GetStreamAsImage(Object oleStorage)
2015-11-30 14:07:29Z|6172| 20|ERROR|                                   CopyAttachments|Unable to process message attachment, skipping message processing  Void CopyAttachments(QUADROtech.MessageParser.MailMessage, Timefinity.Messaging.Library.Message)
Message attachment was OLE, but it wasn't an image.
   at QUADROtech.MessageParser.Timefinity.MessageReader.CopyAttachments(MailMessage item, Message message)
   at QUADROtech.MessageParser.Timefinity.MessageReader.LoadMessage(String fileName)
   at QUADROtech.ExchangeWebServices.EWS.ItemEWS.Load(IMessageReader messageReader)
   at QUADROtech.ExchangeWebServices.EWS.SingleIngest.<>c__DisplayClassa.<Ingest>b__4()

 
Solution
EWSSingle and EWSBatch do not support EMF file attachment, therefore we recommend to use AIP as a workaround for these type of attachments.
Sometimes is also AIP failing to ingest such files, therefore please open a case with support and provide sample messages.

Print Friendly, PDF & Email