Error ERROR Validation Error Compiler error(s) encountered processing expression ""C:\Users\sjahedba\Documents\UiPath\ExcelAutomation\jahed.xlsx"". Value of type 'String' cannot be converted to 'UiPath.Excel.WorkbookApplication'. test.xaml

You are almost there in this reply:

Just change this to Array of String (String[]):
image

Step 1)
Yes , updated

Step 2 ) Error free

Step 3 ) While debug the flowchart , getting same error

@loginerror, what kind of error is that: Value of type ‘string’ cannot be convert to ‘UiPath.Excel.WorkbookApplication’?

Hey Will,

yes i have followed the mention steps , still facing same error

Thanks

Hy @shaik.jahedbasha570,

Try to do it a bit different, instead of sending the excel file as attachement, first zip it and then send the zip as attachement.

Use this package to zip
image

hi Will

kindly share a demo .Xaml

how would i use the zip activity and how can i pass to send email activity.


image

Hy @shaik.jahedbasha570,

This activity takes a zip folder and zip, please check its properties.
Instead of sending the excel file send the zipped folder, ok?!

Hi Will,

Step 1 ) please find the below image for my project folder path
Note: jahed.Zip i have created manually

Step 2 ) By using assign activity i have passed the path

Step 3 ) i utilized zip activity like below shown image

Step 4 ) How would i pass the my zip file to send email activity ?

Hy @shaik.jahedbasha570, you are almos there, pass the zip folder as the argument, very close!

like this

@shaik.jahedbasha570, exactly like this! did it worked?

Sorry , same error.

try the full path for the zip @shaik.jahedbasha570, what is the error message?

What are the arguments for the ZIP activity?, the error is there

i tried two scenarios

Scenario 1 : ( Success )
by click Debug → Run File
image

Step 1 ) Used the assign activity

Step 2 ) used the zip activity

Step 3 ) by using the send email activity

Step 4 ) its success and received data

image

Scenario 2 ( Failed getting an error )
by click Debug → Debug

image

While publishing to orchestrator , i am getting this error because of the scenario 2 ( Mentioned above )

At least it worked locally @shaik.jahedbasha570

Could you share this workflow with me so I can take a look?

The error happens on another XAML file:
image

When you click Debug, it validates all files in the project folder. You have to make sure that no errors are present in the other XAML file text.xaml, not only your Main.xaml

yes , issue fixed , i have deleted Xaml.
and able to publish to orchestrator