Assign : String cannot be of zero length. Parameter name: oldValue


#1

Hi
i used “item.Replace(Summe,”").Replace(“�”,"").Replace(GLkonto,"").Replace(LS,"").Trim" to replace the unwanted string. i am getting below error. kindly suggest


#2

Hi @Manvitha,

I think one of your parameter which you are passing is empty here.

Check value of Summe, GLKonto and LS.

Actual syntax of string replace is string.replace(oldvalue, newvalue)


#3

in every parameter values are assigned. iam getting correct output with all the values. but at last iam getting this error


#4

make sure final output should not be empty after replacing the values


#5

final value is not empty… its printing the output but still showing error. can u pls correct the expression if iam wrong for the below screenshot


#6

Hello,

What’s value in second replace that shows an error?

Cheers,
Pankaj


#7

that is suymbol


#8

please attach your workflow
What symbol is it question mark(?) or something else?


#9

� SUMME GL-KONTO LS GS
� 76FRT FRTEC 2.341,01 8.990,17

this is how the table will be… from here i need GS value alone in a variable…
i am replacing summe, GLkonto and the special symbol values to empty and trimming spaces…
by using this expression
item.Replace(Summe,"").Replace(“�”,"").Replace(GLkonto,"").Replace(LS,"").Trim

kindly suggest me with correct expression


#10

its question mark surrounded with rhombus…