Error while running Invoke code stage after converting project to Windows

Hi,

I recently converted my project from Windows (Legacy) to Windows, and since then, I have been encountering an error when running the Invoke code stage. The error message is as follows:

message: System exception.No compiled code to run error BC30002: Type
‘Microsoft.Office.Interop.ExcelApplication’ is not defined. At line 3 error
BC30002: Type ‘Microsoft.Office.1nterop.Excel.Workbooks’ is not defined. At
line 4 error BC30002: Type ‘Microsoft.Office.1nterop.Excel.Workbook’ is not
defined. At line 5 error BC30002: Type
‘Microsoft.Office.Interop.Excel.Worksheet’ is not defined. At line 6 error
BC30002: Type ‘Microsoft.0ffice.1nterop.Excel.Range’ is not defined. At line
8 error BC30002: Type ‘Microsoft.0ffice.1nterop.Excel.Range’ is not defined.
At line 9 error BC31 539: Cannot find the interop type that matches the
embedded type ‘Microsoft.Office.Interop.ExcelWorkbook’. Are you missing
an assembly reference? At line 11 error BC30002: Type
‘Microsoft.Office.Interop.Excel.Worksheet’ is not defined. At line 15 error
BC30002: Type ‘Microsoft.Office.1nterop.Excel.Worksheet’ is not defined. At
line 18 at source: XXWorkflowname.xaml

I have also tried the solution mentioned in this forum thread: Link to the forum thread, but it did not resolve the issue.

I would appreciate any assistance or guidance in resolving this error.

Thank you,

@john_mathew

First try to go to imports panel and import all the required dependencies

also alternately try t rewrite the code…in windows projects casing is also important

cheers