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)

Unable to Open Attachments in Enterprise Portal

(0) ShareShare
ReportReport
Posted on by 587

Hello everyone,

I have an issue when using enterprise portal to open attachments,  expense receipts for example. When clicking on the attachment or clicking the open button, a new blank windows opens in my browser with the "downloaddocument.aspx" in the URL and nothing more. I have tried adding the EP site to compatibility mode and running IE as administrator, adding the EP site to trusted & local internet zone. Current version is IE 11. 

Using the AX client the attachment is able to open, eliminating any permission or functional issue. I have tried re-deploying the TRV* webparts but no difference in behavior.

Has anyone experienced this issue and how did you resolve it?

Thanks

*This post is locked for comments

I have the same question (0)
  • Dhillon Profile Picture
    215 on at

    Hi,

    can you attach a file in EP and open the same in AX client?  Are you using DB or Archive directory to store the attachments? make sure your EP application pool account has read/write permissions if you are using directory to store attachments.

    Thanks,

  • SergiPB Profile Picture
    587 on at

    Yes, I can open the same attachment in the AX client but not in EP. When I click the attachment in EP I should get the prompt to save or open the file and that is not happening. Just the new blank tab is appearing in the browser.

    The EP app pool account does have full control of the archive directory.

    I am running into this issue on R3 RTM.

  • Dhillon Profile Picture
    215 on at

    Can you try with a small txt file?

  • SergiPB Profile Picture
    587 on at

    It is a small text file at 14 bytes.

    A look through LCS doesn't bring up any relevant info on this.

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hello SergiPB, Did you reviewed technet.microsoft.com/.../dd309650.aspx ?

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    Hi. I've seen this in the past multiple times, but never identified a proper cause, before the issue somehow disappeared from the radar. But would love to identify the root cause.

    I always suspected to be Domain Policy security related, since most of the times there was at least one user that had this working. Is this the case for you? Do you have users that have this problem while other are not? Also, the IIS is hosted on the same machine as the AOS? And are you opening the browser on the same machine as any of the two?

    Can you try something first: can you open up the link not using IE, but Firefox or Chrome (I tested a EP link in Firefox and it should work fine).

  • Verified answer
    SergiPB Profile Picture
    587 on at

    Turns out it was a bug resolved by applying KB 3121637 Cannot view receipts that are attached to travel and expense reports in Enterprise Portal (EP).

    The hotfix basically does this:

    In class EPDocuGet runDocument method - add the following to line 59

            // Restriction for external users
            if (EP::isExternalUser() && (EP::isCustomer() || EP::isVendor()))  //from hotfix

     Replacing

     // Restriction for external users
     if (EP::isCustomer() || EP::isVendor()) 
     

  • Suggested answer
    Uzair Saleem Profile Picture
    131 on at

    Dear SergiPB,

    I added the same code but it didn't work for me. Attachment is not working only for Expense management EP. On all other forms for EP attachment is working.

  • Suggested answer
    Community Member Profile Picture
    on at

    Following the procedure in the link below solved it for me, it turns out the archive directory in document management was not properly configured

    Document management in AX 2012

    http://ajstudi0.blogspot.com.au/2013/02/document-management-in-ax-2012.html

  • arey Profile Picture
    369 on at
    Hello SergiPB,
    Finally, did you solve this problem?
    Modifying those lines of code?
    We have a test environment with the same class (code, version, modified date) like Production and it's working there. So I don't think this code change will be related

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