variablestokenizealtovamap-force

Altova Mapforce - How to use results from Tokenize at the same time in a database call?


At the moment I have this string format: "2134-123". Basically I need to split that string into both values, but I also need to use those at the same time to get information from a database table.

I have used tokenize with - as a delimiter, but that gives me a sequence. I've tried to use item-at two times with position 1 and 2, but the second value is always NULL. I know the sequence is correct, because when I use output to test, it says for example: "One or several additional values were skipped. The value "90105" was mapped. First skipped value(s): "4010"."

enter image description here

I need to map those two values to a database to get some output, how should I do this? Thanks.


Solution

  • Found help on the Mapforce forum, only difference with their explanation is that mine only worked after putting the input of the tokenize through a .txt file as passthrough. No idea why, otherwise it would be null.

    https://www.altova.com/Forum/framehelper.aspx?g=posts&t=1100005107&find=unread