web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

File Management Error Business Central

(0) ShareShare
ReportReport
Posted on by 185

Hello,

Am trying to read a directory using jobqueue (BC Onprem)

AL project Target is set to Internal.

My code is as below.

DirectoryPath := '\\Raju-pc\Importfolder';

FileMgmt.GetServerDirectoryFilesList((VAR NameValueBuffer ;DirectoryPath).

Am Geeting Below Error

Microsoft Dynamics 365 Business Central Server attempted to issue a client callback to create a DotNet object: System.IO.Directory (CodeUnit 419 File Management). Client callbacks are not supported on Microsoft Dynamics 365 Business Central Server

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    means the function call causes a confirmation window, which can not be shown...no gui.

    seems that the user who calls the function has not enough access rights.

    try with a domain admin user or set the correct folder rights.

  • Raju Gudipalli Profile Picture
    185 on at

    Thanks for the Reply,

    I knew that function calls are not allowed in a job queue.

    But in my case my folder is shared with everyone(Read write permissions).

    I am not sure whether we can use file Management codeunit for background process in Business central.

    If not, what are the workarounds  for file management Codeunit.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans