Assign Activity Error: Missing operand after 's' operator

I’ve run this process daily for a few weeks with no errors but this morning I ran it and get an error on an assign (see below). Not sure what it means or how to fix it.

Hi,

Can you share content of CurrntRow(“Defendants”)?

Regards,

Hi @atarantino

Looks like your currentrow(“Defendants”).ToString has a literal(') in it and that is why it is failing

cheers

This was the issue. Is there a different way i can write my code to allow for (') ?

1 Like

@atarantino

Try usring currentrow("Defendants").ToString.Replace("'","''")

That might escape the single quote

Basically replace single quote with two single quotes

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.