web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

"Error during upload" - Document Management & SharePoint 2013

(0) ShareShare
ReportReport
Posted on by 345

Hi, I'm trying to configure AX 2012 so that attached files can be saved to our SharePoint Site. Though whenever I try to attach a file (assigning it the Document Type configured for SharePoint) it throws the very generic Exception:

"Error uploading file"

[Permissions are verfied for the uploading user].

So question is :

a. Did you ever encounter this ?

b. Where can I find LOGs about this error? I tried checking in the Event Viewer over at the AOS, the SharePoint Host, the SQL, AX itself.

Thanks, any help would be so much appreciated.

*This post is locked for comments

I have the same question (0)
  • Mirjam Profile Picture
    1 on at

    Hi Waller,

    I'm facing the same problem, did you ever solve it? Is your SharePoint site local or online? That is probably also very important in the problem solving.

  • Suggested answer
    Mirjam Profile Picture
    1 on at

    So I did manage to solve it. Read and weep...

    I do not normally auto-login on any live-id because I have multiple. I also normally don't browse with Internet explorer.

    I logged in to SharePoint with Internet Explorer, with the checkbox "keep me signed in" checked and the issue mysteriously disappeared. How is it best practice to rely on auto-login to be able to use an out of the box feature??

  • happyman Profile Picture
    565 on at

    Hi Mirjam,

    I have the same issue actually, i'm using Sharepoint Online. Can you give more explication about the solution please.

  • Community Member Profile Picture
    on at

    I am having the same problem so I dug into the code to figure out what the actual error was.

    For me it was:

    System.ArgumentException: Could not determine the login page for the specified SharePoint site.

      at Microsoft.Dynamics.AX.Framework.OfficeAddin.SharePoint.CredentialsPromptViewModel..ctor(Uri targetSiteUrl)

      at Microsoft.Dynamics.AX.Framework.OfficeAddin.SharePoint.AuthenticationHelper.PromptForSharePointCookies(Uri sharePointOnlineSite)

      at Microsoft.Dynamics.AX.Framework.OfficeAddin.SharePoint.AuthenticationHelper.GetSharePointOnlineCookies(Uri path, Boolean forcePrompt)

      at Microsoft.Dynamics.AX.Framework.OfficeAddin.SharePoint.DocumentUploader.UploadDocument(Stream fileStream, Uri targetUri, AuthenticationType authenticationType, Boolean allowOverwrite)

      at Microsoft.Dynamics.AX.Framework.OfficeAddin.SharePoint.DocumentUploader.UploadDocument(String fileName, Uri targetUri, AuthenticationType authenticationType, Boolean allowOverwrite)

    I got the error to display by replacing error("@SYS129183"); (somewhere around line 91) with the following code:

    System.Exception    ex;  //(At the top of the method)

    ex = ClrInterop::getLastException();

    if (ex != null)

    {

       ex = ex.get_InnerException();

       if (ex != null)

       {

           error(ex.ToString());

       }

    }

    This is in AOT>Classes>DocuActionArchive>add    

    I have not been able to solve this issue past this.

  • Suggested answer
    Community Member Profile Picture
    on at

    I did the following to solve the issue.

    On the server dynamics ax is running:

    Open internet explorer > internet options > Security > Trusted sites > Sites

    75721.Untitled.png

    Add your SharePoint site

    Make sure "Enable Protected Mode (requires restarting Internet Explorer)" is not checked.

    Close and reopen Internet explorer.

    Sign into your SharePoint site and re-try your upload.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans