Unable to Attach or View Sharepoint attachments

We have been using sharepoint to attach documents for quite some time with no issue. However recently (the last 2 weeks) we have been having a repetitive error when trying to view or add an attachment.

The error we get is “Unable to obtain authentication cookie”

The only way we can workaround the issue is for users to come out of Epicor and go back in but this is happening frequently.

The details of the error are shown below

Application Error

Exception caught in: Epicor.ServiceModel

Error Detail

Message: Unable to obtain authentication cookie.
Program: Epicor.ServiceModel.dll
Method: ShouldRethrowNonRetryableException

Client Stack Trace

at Epicor.ServiceModel.Channels.ImplBase1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets) at Ice.Proxy.BO.AttachmentImpl.SpDownloadFile(Int32 xFileRefNum, Dictionary2& metadata)
at Ice.Lib.Attachments.BOSpTransfer.DownloadFile()
at Ice.Lib.Framework.AttachmentHandler.GetSharePointDocument(AttachmentOptions options)
at Ice.Lib.Framework.AttachmentHandler.LaunchAttachment(Object sender, String fileName, Boolean isPDM, AttachmentOptions options, DocAssocType type, Boolean showInDocStar)
at Ice.Lib.Framework.Attachments.AttachmentPanel.launchAttachment(DocAssocType type, Boolean showInDocStar)
at Ice.Lib.Framework.Attachments.AttachmentPanel.OnClickView()
at Ice.Lib.Framework.Attachments.AttachmentPanel.btnView_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
at Ice.Lib.Framework.EpiButton.OnClick(EventArgs e)
at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)
at Ice.Lib.Framework.EpiButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any suggestions would be really appreciated.

Thank you

Hello!

We had the same issue and after investigating we learned the following.

It’s good that the SharePoint Device Access is set as you mentioned, but I’m afraid it is a compatibility problem.As far as we know, you have Epicor ERP 10.1.600.19.
Based on our development’s statement, Sharepoint online no longer working for Epicor versions prior 10.2.600.

Permanent Fix would be to upgrade the ERP to 10.2.600 or higher.

Workaround: try to use a different storage type while this is analyzed by development on PRB0234957. I attach this support case to that Problem.

The cause of this error is that the retired components and features from Microsoft prevents connection.

We are migrating documents and switching to 10.2 as soon as we can.

Does your Azure Account have MFA switched off?
What account is used for your application pool?