Select to view content in your preferred language

Problem with Calculate Value (ModelBuilder)

1309
2
04-16-2014 04:27 AM
HaniDraidi
Frequent Contributor
I am using calculate value tool which is a �??model only tool�?�, the input is a string and the output is an Encrypted string. When the input is an integer like �??123�?� it works fine, but when the input contains letters like �??mmm�?� or �??a123a�?�, an error appears. How to make it work with letters? This is illustrated below by screenshots.

1-
[ATTACH=CONFIG]33140[/ATTACH]

2-
[ATTACH=CONFIG]33141[/ATTACH]

3-
[ATTACH=CONFIG]33142[/ATTACH]

4-
[ATTACH=CONFIG]33143[/ATTACH]
Tags (2)
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: hua17

Hello Hani,

It's kind of stupid, but you have to include quotes if your specifying a string (even in the string tool). Try using "mmm" (with quotes).

[ATTACH=CONFIG]33144[/ATTACH]

Also, your question was great! Very well explained.
0 Kudos
HaniDraidi
Frequent Contributor
Thanks a lot, I tried it and it worked.
0 Kudos