Action is ambiguous,imported from the namespaces or types 'microsoft.office.interop.excel,system

Hi Everyone,

We recently migrated our project from Legacy to Windows. and i have encountered with this error

Thank you!

@Farooq_Syeda,

Please share Save to and value to save field code here to see what we can do to fix it.

This is the value @ashokkarale
If(dt_CSCSiteActivationData.AsEnumerable().Where(Function(e) e(“Site ID”).ToString.Trim.ToLower.StartsWith(Dict_Config(“PediatricMainCohortShortForm”).ToString.Trim.ToLower)).ToList.Count>0,dt_CSCSiteActivationData.AsEnumerable().Where(Function(e) e(“Site ID”).ToString.Trim.ToLower.StartsWith(Dict_Config(“PediatricMainCohortShortForm”).ToString.Trim.ToLower)).CopyToDataTable(),dt_CSCSiteActivationData.Clone)

@Farooq_Syeda,

This is for the value. Please share to which logic it’s being assigned.

@Farooq_Syeda,

Ok it’s just a datatable. Do you have excel process scope in current workflow where this error is coming?

Try deleting this Microsoft.Office.Interop.Excel namespace from Import panel.

It Worked Thank you so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.