Error: Option Strict On disallows implicit conversions from 'String' to 'Integer'

Getting the following error on an Assign activity inside a For Each activity.

  • To: LasName //string variable
  • Value: row(“Last”).ToString

Compiler error(s) encountered processing expression “row(“Last”).ToString”.
Option Strict On disallows implicit conversions from ‘String’ to ‘Integer’.

Any help?

@nicolasg

Could you please show me screenshot of your WorkFlow.

Fine
Buddy as you have mentioned as row(“Last”).ToString, even though it has any number nicolasg1234 it will get converted to string as we have use ToString next to row(“Last”)
so the issue is with the left TO varaible name and its type :- LasName
Kindly check whether the variable type of LasName in the variable panel once whether it is String or not,
I think its in int32 type and thats what error message even implies
Option Strict On disallows implicit conversions from ‘String’ to ‘Integer’.

This should work for sure
Cheers @nicolasg

1 Like

Compiler error(s) encountered processing expression “row(“Last”).ToString”.
Option Strict On disallows implicit conversions from ‘String’ to ‘Integer’.

This error still persist even when the variables are changed to string