17
Views
4
Comments
Solved
[CSV to XLSX] CSVTOXLSX Plugin throws an error
Question
csv-to-xlsx
Web icon
Forge asset by André Cardoso

Hi all,

I'm encountering the following error while using the CSVTOXLSX plugin:

"Common Language Runtime detected an invalid program."

Has anyone come across this issue before or knows what might be causing it? Any suggestions or fixes would be very helpful.

I've attached an image of the plugin for reference.

Thanks in advance

Kowshiha

UserImage.jpg
Kowshiha V
Solution

Thank you for your response Janakiraman.

I reinstalled the plugin, and used the server action for excel conversion inside the Core module and took dependency from Core module to UI module which resolves this issue.


Thanks,

Kowshiha


2025-12-09 14-11-18
Janakiraman JR

Hi Kowshika,

The error you're encountering is a .NET-level runtime error, not something specific to OutSystems or the CSVtoXLSX component, though it is occurring within that plugin.

  • Check if your OutSystems environment is running in .NET Framework or .NET Core.

  • If you're on .NET Core, the plugin might be incompatible if it was built for full .NET Framework.

Consider using other Forge components like:

  • Excel Package

  • ClosedXML


UserImage.jpg
Kowshiha V

Hello JR,

Yes, I understand your point. However, everything was working fine until two days ago. I've started encountering this error only since yesterday. Could it be that the .NET code was updated or changed recently?

2025-12-09 14-11-18
Janakiraman JR

Hi Kowshika,

Your OutSystems server may have received a .NET Framework patch or Windows update recently that broke compatibility. Even minor hotfixes can cause previously “tolerated” IL code to start throwing InvalidProgramException.

Please follow the below points

  • Check the Windows Update logs or OutSystems environment logs to see if an update was applied in the past few days.

  • Roll back or reinstall the same .NET version to test if it resolves the issue.

This is rare, but a partial corruption of the DLL, caused by a file-level antivirus engine or disk error, could also make the IL unreadable.

  • Downloading the DLL from Integration Studio or directly from your \Bin folder and running it through ILSpy or dotPeek to see if it can be decompiled.

  • If it fails or shows errors, the DLL is definitely corrupted or incompatible.


UserImage.jpg
Kowshiha V
Solution

Thank you for your response Janakiraman.

I reinstalled the plugin, and used the server action for excel conversion inside the Core module and took dependency from Core module to UI module which resolves this issue.


Thanks,

Kowshiha


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.