Notifications
Announcements
No record found.
Hi guys,
I'm trying to read the CSV files in network folder, using batch job, but I'm getting the error below. Is working when I do not check the batch processing. I checked the network folder permission and all users have full access (non production environment). Could you help me?
PS: It is in AX 4.0...
Hi Rafael,
Please check this post. You can add this code to the import logic.
InteropPermission permission = new InteropPermission(InteropKind::ClrInterop); ; permission.assert();
Gunjan is right - the error message is about InteropPermission, not file permissions.
Use CodeAccessPermission::assertMultiple() to assert multiple permissions at once.
Hi Gunjan and Martin,
I added the InteropPermission, but the issue is in the line below:
commaIo = new CommaIo(fileName, #io_read);
When I run without batch processing is working, but when I run with batch processing the commaIo is null.
You mentioned that users have access, but does the AOS service account permissions to read the file?
I changed the AOS service account to my own user. I have access in the path, in the file... but using batch processing show the same issue.
Did you rebuilt CIL?
Does it work if you execute the code in CIL but not in batch?
Full CIL in AX 4.0? Is the first time that I use the AX 4.0... I didn't find the Full CIL option.
Without batch processing is working. The issue is only with batch processing.
Did you make sure that the AOS service account has access to the shared location you are reading the file from? It's might be running fine for you as your account has the required access.
Yes, I'm sure. I created a new folder in the server and shared with permission to all users, I can create, edit, delete and change the files. Just in batch job do not work.
Sorry, I forgot it's about AX 4.0.
The case when it works, does it run on the server tier?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader