Academy Studio switch statement training has example with compile error
Attempting to go through the UI Path Academy video Studio examples for switch statements and at the 2 minute mark they’re referencing a versus fileinfo(item) for use in the value of the Assign object. Even after referencing this object I still have a compile error.

Here’s the error:
Validation Error Compiler error(s) encountered processing expression “new FileInfo(item)”.
Option Strict On disallows implicit conversions from ‘Object’ to ‘String’. Switch_Test.xaml

Hi @william_owens3,

As presented a bit earlier in the video, you need to select the For Each activity and change the TypeArgument from ‘Object’ to ‘String’.


If you still have an error, please zip your working folder and attach it here on the Forum.


Yes it does.
I missed that little tidbit of info…