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 NAV (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    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.

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    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.

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans