Invoke Method activity within For each loop

This is the error message which i have received
Invoke method

‘File’ does not have a public static method named ‘WriteAllBytes’ matching the parameter types, generic types arguments and generic type constraints supplied to invokeMethod ‘Invoke Method’


The error is clear…the parameters you provided are wrong in yhe invoke method

Please check the same

You should have first a path which is of string type and second a byte array



It seems typo (missing r )


Also check if parameters is correct.