Error Resolution

Hi,
Need help to fix the following error:
Main.xaml: BC31424: Type ‘System.Data.DataTable’ in assembly ‘e08d9505-dd4c-43df-854a-6e6525b01f65, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ has been forwarded to assembly ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Either a reference to ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ is missing from your project or the type ‘System.Data.DataTable’ is missing from assembly ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.

Hi @Sim_rpa

Could you please check whether System.Data.Datatable or any similar dependencies are available in the Imports panel?

Best Regards.

Hi @Sim_rpa

To resolve this error you can try doing the below steps:

  1. Check project references.
  2. Update packages.
  3. Clean and rebuild that particular actvitiy.
  4. Check compatibility.
  5. Verify installation.

Hope it helps!!
Regards,

Hi @Sim_rpa

  1. Check the references in your project:
  • Open your project in UiPath Studio.
  • Go to the Project panel on the left-hand side.
  • Expand the Dependencies section and check if there are any references to System.Data.Common or System.Data.DataTable.
  1. Remove and re-add the references:
  • Right-click on the references related to System.Data.Common and System.Data.DataTable.
  • Select Remove to remove the references.
  • Right-click on the Dependencies section and select Manage Packages.
  • In the Package Manager, search for System.Data.Common and System.Data.DataTable.
  • Install the appropriate packages that match your project’s requirements.
  1. Clean and rebuild your project:
  • Go to the Build menu and select Clean Solution.
  • Once the solution is cleaned, go to the Build menu again and select Rebuild Solution.
  1. Restart UiPath Studio:
  • Close UiPath Studio completely and reopen it.

I hope it helps!!

@Sim_rpa

Please check this…

I hope your issue is similar just add the missing references

Cheers

in projects tab you can expand each package to see what what references they have. Go and expand each one to see which package contains system.data.common then uinstall/reinstall that package

Hi @Sim_rpa

Were you able to fix the issue? :slight_smile: