Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Unable to Open Attachments in Enterprise Portal

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

Categories:
  • arey Profile Picture
    arey 369 on at
    Unable to Open Attachments in Enterprise Portal
    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
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to Open Attachments in Enterprise Portal

    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

  • Suggested answer
    Uzair Saleem Profile Picture
    Uzair Saleem 131 on at
    RE: Unable to Open Attachments in Enterprise Portal

    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.

  • Verified answer
    SergiPB Profile Picture
    SergiPB 587 on at
    RE: Unable to Open Attachments in Enterprise Portal

    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
    Iulian Cordobin Profile Picture
    Iulian Cordobin 8,201 on at
    RE: Unable to Open Attachments in Enterprise Portal

    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).

  • Umesh Pandit Profile Picture
    Umesh Pandit 9,033 User Group Leader on at
    RE: Unable to Open Attachments in Enterprise Portal

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

  • SergiPB Profile Picture
    SergiPB 587 on at
    RE: Unable to Open Attachments in Enterprise Portal

    It is a small text file at 14 bytes.

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

  • Dhillon Profile Picture
    Dhillon 215 on at
    RE: Unable to Open Attachments in Enterprise Portal

    Can you try with a small txt file?

  • SergiPB Profile Picture
    SergiPB 587 on at
    RE: Unable to Open Attachments in Enterprise Portal

    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
    Dhillon 215 on at
    RE: Unable to Open Attachments in Enterprise Portal

    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,

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,632 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,528 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans