Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RecordID problems

Bobbins
8 - Asteroid

Morning All,

Workflow attached. In short, I want to change some of the RecordID values. If i make it a string, I get 0 instead of what i want whether i use text or numerical value. If i choose Int32 for the record ID, i get told that == is invalid even though I am not using one.

What am i missing?

Thank you

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

You would need to use formula like this.

 

atcodedog05_0-1643794979782.png

 

Hope this helps : )

 

binuacs
21 - Polaris

@Bobbins if you change the Record_ID to int then you need to give the expression like below, if it is string then follow what @atcodedog05 mentioned above

 

binuacs_0-1643795522995.png

 

Bobbins
8 - Asteroid

Thanks, but this gives me the other problem which I have been able to avoid by using the string, which is the sort doesnt sort correctly when it just has a number to work with. (ie it goes 1, 10,12) which means its sorting by the first digit rather then seeing them as a whole number.

 

As attached

binuacs
21 - Polaris

@Bobbins select the dictionary order from the sort tool

binuacs_0-1643795860748.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

You would have to do something like this. Edit: you can use what @binuacs is suggesting I didn't know about that.

 

atcodedog05_0-1643795859703.png

 

Hope this helps : )

 

Bobbins
8 - Asteroid

@binuacs Thanks, it appears I was trying to use "Then RecordID="200"" rather then just saying "then "200""

atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

Note you can mark multiple posts as solutions so if multiple solutions helped you can mark them as solution.

 

Hope this helps : )

Bobbins
8 - Asteroid

@binuacs Never spotted that Dictionary order before"! Thank you.

atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

Then RecordID="200" is a comparison then returns true(0) and false(-1) hence you were not getting the right output.

 

Hope this helps : )

Labels
Top Solution Authors