Invoke Code save file with variable

Hello - I am trying to save a file in the last step in my process using a variable within Invoke Code activity.

I am getting the following error when I attempt to run the process. Would anyone have a fix for this?


Error ERROR Validation Error Compiler error(s) encountered processing expression “NewFilePath”.Invalid L-value expression.:Reference expressions cannot end with Conversion. The provided expression’s type must exactly match the type T of VisualBasicReference or LambdaReference. Process Client Data - Circit/DownloadConfirmationCircit.xaml

1 Like

I work fine. Is the filePath variable not a String?
It would be helpful to show a little more code.

Found the solution. The path did not exist yet. It is working fine now. Thanks for your reply!

1 Like