Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

*error* A CALL TO SYSTEM.IO.FILE.DELETE FAILED WITH THIS MESSAGE: ACCESS TO THE PATH ...

Posted on by Microsoft Employee

Hello

When we process XML export for VAT Statement, the xml file is created on a specific path (pic _01).

But the process execute an error when try to delete that same file (pic _02).

Does anyone have/had this problem and have any idea why this is happen ?

Note: no changes, it is all standard code

Capture_5F00_01.PNGCapture_5F00_02.PNGThank you in advance.

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: *error* A CALL TO SYSTEM.IO.FILE.DELETE FAILED WITH THIS MESSAGE: ACCESS TO THE PATH ...

    I don't think it has anything to do with installation, what functions are you using to create file, may be you are creating file on the client computer and then uploading it to the server.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: *error* A CALL TO SYSTEM.IO.FILE.DELETE FAILED WITH THIS MESSAGE: ACCESS TO THE PATH ...

    Hi Suresh

    We did that, but you know that we cannot put permissions below \users. After \default and sons we cannot change. And we have Administrator permissions.

    But what is very strange is that process create the xml file.

    So the question is why the process execute the creation of the xml, and than when it runs the delete, we get permissions error. Is the same object... so CREATESERVERFILE, no problem, DELETESERVERFILE, we get no deletion permission.... Strange.

    We got some "ideas" from PT Official Microsoft Partner, here in Portugal, and they talk about some difference on machines regarding install process. Do you think that can be some installation "error", just like DLL missing or something like that? Do you know if this NAV object can have some relationship with some .net files system, or things like that ?

    Thanks a lot anyway for your help.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: *error* A CALL TO SYSTEM.IO.FILE.DELETE FAILED WITH THIS MESSAGE: ACCESS TO THE PATH ...

    IF the service user which is running the service does not have enough permissions then you may get that error, try to give to the server folder and all its subfolder full control permission for that user.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans