Read CSV: Method not found: 'Void CsvHelper.CsvParser..ctor(System.IO.TextReader, System.Globalization.CultureInfo)'

How to fix the below error?
Read CSV: Method not found: ‘Void CsvHelper.CsvParser..ctor(System.IO.TextReader, System.Globalization.CultureInfo)’.

Hi @soma.shruthi

Try this approach
Go to Manage Packages
1 Update or reinstall UiPath.System.Activities
2 Make sure all packages are compatible versions
3 If still issue, remove and re-add Read CSV activity

If Solution works for you please mark as solution or let me know if you still persist issue

Thanks

@soma.shruthi

As per error looks like a package mismatch issue

try to change your system apckages and other packages to compatible versions, to verify just search csv in projects folder and you would mostly see multiple versions of the same package present under multiple packages as sub dependency

Also specifically with latest excel activities package 3.1x we re seeing this issue try to downgrade it and check

cheers

Hello,

Just to add a bit more context, this error is usually not random it’s often linked to CsvHelper version conflicts

From what I’ve seen, CsvHelper.CsvParser(TextReader, CultureInfo) was available in older versions, but got changed/removed in newer ones. So if one package expects the old version and another brings a newer one → boom, “method not found”.

So like @Anil_G mentioned, it’s really a dependency mismatch underneath.

What I’d try in addition to the suggestions above is to check if you have multiple versions of CsvHelper pulled indirectly (project.json / packages folder)
and clean the project (delete packages ) and reopen

Worst case, creating a clean project and adding packages step by step helps spot the one causing the conflict

So yeah not just reinstalling more about aligning versions properly

Hope that helps :slightly_smiling_face:

Best regards
Ghaith ABDESSALEM

Most probably, the 3rd party CSVHelper dependency package from the UiPath.Excel.Activities is causing a conflict with the UiPath.System.Activities which has its own CSVHelper as a sub-dependency.

Try lowering/upgrading the versions for UiPath.System.Activities and UiPath.UIAutomation.Activities packages to match the Studio/Robot UiPath Platform version.

If you are observing that the CSVHelper sub-dependency is part of other project dependencies, adjust their versions to have the same or near the same CSVHelper version.