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)

Cannot delete a document attached

(0) ShareShare
ReportReport
Posted on by 155

Hi,

On dynamics Ax 09, I cannot delete a document attached.
When the document is attached and got the statut "link", I analyze that is not possible to delete it.
The error message is: "Document management directory does not exist.".

I check the setup on the document management ( basic, setup, document management) 

it but it still not resolve the problem.

Thanks by advance for your help.

Fabrice

*This post is locked for comments

I have the same question (0)
  • Dick Wenning Profile Picture
    8,705 Moderator on at

    is the document stored in the database or outside AX?

    can you show me the related docuref and docuvalue data (use table browser)

  • Fabrice Profile Picture
    155 on at

    Hi Dick,

    When I got the problem, it was about a document store outside AX.

    I found the way to delete all the document imported by changing the setup of the type of the document ( define in data base). I tried to import a document define in data base but I got a message that I was not allow to import data in Ax.

    Do you have a explication or another "best practice" to attach a document?

    Thank you

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    please at a breakpoint at the class info, method add. from that point you can see why it revuese to import, perhaps you can change AX or configuration settings of document management.

    By the way ar you runnen ax3.0 or higher? in case of 4.0 it could be that you need aditition staps are needed

  • Fabrice Profile Picture
    155 on at

    Thank for your fast reply.

    I'm running on the version 5.

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    the code that inserts the data run's on the server. this explains our trouble.

    table docuvalue method public static client DocuValue writeDocuValue(DocuRef  docuRef, Filename filename = '', BinData binData = null)
    {

     

  • m_anass Profile Picture
    on at

    The same thing happen with me, but at the begining of the attaching document, it keeps telling me the same error "Document management directory does not exist",

  • Fabrice Profile Picture
    155 on at

    Hi Mahmoud,

    Hope it's help, use it only if necessary

    Basic > > >

    Select the type, tab general, change the file localisation

    archive directory ==> database

    open again the document attached, delete the line ( it's delete only the record and not the document)

    after that, go back on the Basic > > >

    back on the previous set up ( database ==> archive directory)

     

  • Anisha Profile Picture
    375 on at

    I have a problem with documents stored in the database.

    When I generate the document the system gives an error: 'the document cannot be saved in the database the file is locked"

    How can I fix this?

    I also want to emial the documents via the email functionality in CRM, the system gives the error "archive directory must be specified" it is specified. How do I fix this to?

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