170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 1:36pm
1
I just do not get it! Why am i getting this error
**
devicePrice = “95000-150000”
**
**
arr_devicePrices = devicePrice.Split({“-”}, StringSplitOptions.None)
**
Everything is okay in the immediate panel but i am getting errors when i run the file
Do you have extra space chars in the expression in the assign in your screenshot? It looks like this:
devicePrice.Split({" - "}, StringSplitOptions.None)
jack.chan
(Jack Chan)
November 18, 2023, 1:56pm
3
remove the two spaces here
it works in immediate panel because you dont have spaces, but in your workflow you have spaces
170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 2:31pm
4
It was removed already. I just wanted to add two spaces to try after getting errors again and again.
So normally there is no space
rikulsilva
(Henrique Lima da Silva)
November 18, 2023, 2:48pm
5
Try use
devicePrice.Split(“-“c)
170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 3:18pm
6
can i get both of them anyway ???
for example ;
minPrice = 95000
maxPrice = 150000
170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 3:26pm
8
I have tried like this but i got the same error.
Also here is how i see in the queue
rikulsilva
(Henrique Lima da Silva)
November 18, 2023, 3:39pm
9
Try without StringSplitOptions
arr_devicePrices=devicePrice.Split(“-“c)
Hi @170290064 ,
Could you maybe clean up your variables and arguments and check whether duplicate names are used for variables or arguments ? The Split is checked at our end and it does work.
If the Splitting part is happening in a Separate workflow, could you maybe share the screenshot of the whole workflow or if possible the workflow itself ?
170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 3:50pm
11
Okay but after that how can i get them in different variables ???
170290064
(Eyüp Hasan Akbaba)
November 18, 2023, 3:54pm
12
It works perfectly fine if device type is television but interestingly i am getting error if its a computer or phone
Anil_G
(Anil Gorthi)
November 18, 2023, 6:38pm
13
@170290064
Please check the values properly…looks like it is a data issue
Cheers
system
(system)
Closed
November 25, 2023, 11:26pm
14
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.