microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

error AL0572: I/O operations on the file or folder resulted in an exception #5419

Closed fvet closed 2 years ago

fvet commented 4 years ago

Difficult to reproduce, but when packaging our project (5200+ files) I now and then get the error below:

error AL0572: I/O operations on the file or folder './Layouts/NVT Orderbook.rdlc' resulted in an exception with the Windows 32 error code '0x000004C8'.

It always refers to 'some' rdlc file (mostly a different one). These rdlc's, neither the parent report objects have been modified before packing / publishing. The files are also not opened. When repackaging / closing VS code, the error mostly does no longer occur.

image

atoader commented 4 years ago

Thanks @fvet ! We are aware of the problem and we are working on identifying the root cause.

BertDeTemmerman commented 4 years ago

Same problem here, using BC15CU1, AL langauge : 4.0.209944 error AL0572: I/O operations on the file or folder './REPORT/RDLC/R_20490_t.rdlc' resulted in an exception with the Windows 32 error code '0x000004C8'. project consist of 855 files (not all AL files)

also getting Error: An internal error has occurred

Nothing in event viewer

fvet commented 4 years ago

FYI, haven't seen the error a long time since using an updated insider AL extension...

image

BertDeTemmerman commented 4 years ago

FYI, haven't seen the error a long time since using an updated insider AL extension...

image

Could always try with that version ...

Just wondering how I can get that version, cause I doubt we are an bcinsider (time to disturb some colleagues! :D)

BertDeTemmerman commented 4 years ago

FYI, haven't seen the error a long time since using an updated insider AL extension... image

Could always try with that version ...

Just wondering how I can get that version, cause I doubt we are an bcinsider (time to disturb some colleagues! :D)

We have access, but using that compiler made it worse ... The AL server crashed 5 times in the last 3 minutes. The server will not be restarted.

Connection to server got closed. Server will restart. Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.Dynamics.Nav.Deployment.Telemetry.TelemetryServiceManager' threw an exception. 'Microsoft.Dynamics.Nav.Deployment.Telemetry.TelemetryServiceManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.CoreEventSource' threw an exception. ---> System.ArgumentException: External component has thrown an exception.

So doubt it works ... :s

BertDeTemmerman commented 4 years ago

@atoader

for : Error: An internal error has occurred Log((Windows) has some info:

[2020-01-09 15:59:47.645] [renderer1] [error] Cannot read property 'kind' of null: TypeError: Cannot read property 'kind' of null at asHoverContent (c:\Users\me.vscode\extensions\ms-dynamics-smb.al-4.0.218468\node_modules\vscode-languageclient\lib\protocolConverter.js:101:27) at asHover (c:\Users\me.vscode\extensions\ms-dynamics-smb.al-4.0.218468\node_modules\vscode-languageclient\lib\protocolConverter.js:134:31)

NKarolak commented 4 years ago

I have just encountered the very same bug (as reported by fvet) in AL Language extension version 4.0.206840 while customizing the base application (BC 15.2 on-prem). Using the current 5.0 version from Marketplace seemed to fix it.

itsme112358 commented 3 years ago

Got the same error today on 6.6.6.40897, targeting BC17 CU5. Recompiled three times without changing anything, then it worked 🤷‍♀️

itsme112358 commented 3 years ago

Now I tried publishing --> extension gets compiled again --> same error, this is getting annoying. The repo is already excluded from Antivirus plus rdlc files are excluded in general, so it shouldn't interfere. I have two extensions in a VSCode Workspace, maybe this causes the issue? First try: <Don't remember which it was, but was an rdlc as well> Second try: BOMCostShareDistribution.Report.al(4,18): error AL0572: I/O operations on the file or folder './BOMCostShareDistribution.rdlc' resulted in an exception with the Windows 32 error code '0x000004C8'. (Base Application) Third try: CloseInventoryPeriodTest.Report.al(4,18): error AL0572: I/O operations on the file or folder './CloseInventoryPeriodTest.rdlc' resulted in an exception with the Windows 32 error code '0x000004C8'. (Base Application) Fourth try: SCalculateNotAllowaInputTax.Report.al(8,18): error AL0572: I/O operations on the file or folder './RELion/RELion/S-Calculate NotAllowaInputTax.rdlc' resulted in an exception with the Windows 32 error code '0x000004C8'. (Custom Object) Fifth try: Works! I remember having had the issue a while back, then I only had to recompile once so I didn't care too much, but in this state the compiler is getting unusable. Here is a list of my antivirus exclusions: image

JeremyVyska commented 1 year ago

Just because this is one of the only issues that comes up when looking for this error:

I found I was getting this error for an On-Prem 20.0 version with various other report layouts during pipeline use. Higher versions of the 20.x release resolve the issue.

In my case, the on-prem client was due to upgrade to Cloud soon anyway (not bothering with a technical upgrade), so testing confirmed that I could simply build the pipeline to use the higher build and the app still functioned correctly on deployment (PTE, so not a runtime).