Data type issues
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello, I have a formula tool calculating some new columns. I have an error message as the data type is not compatible. (see screenshot attached).
From 'target price' down the Data type box is faded out so i cannot click into it and change the type.
I believe the 'discretionary discount' is the error as the penultimate formula it is output as V_WString data.
The formula:
Target price = double
Discretionary discount % = double (I checked at the join tool just before).
It all checks out to be double but is pulling the V_WString for that column and won't let me change it.
Can anyone please guide me? Any help will be really appreciated!!
Solved! Go to Solution.
- Labels:
- Connectors
- Datasets
- Tips and Tricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @pangersandmash if you use the function ToNumber around the field Discretionary discount in your last formula it will convert the data type within that function and should remove the error. Note using that function will not permanently change the data type in the workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @JosephSerpis Thank you for coming back to me on this. I forgot to mention i actually tried that. screen shot attached. still no luck 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @pangersandmash you need to use that function in your last formula Full Price GBP on the Discretionary discount field. The reason it's doesn't work in your screenshot is that conversion is happening at that formula and it returns to a string field in the formula below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Genius- thanks so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Having a similar issue that I can't make sense of. Can't join data due to the type. V string on the left, double on the right.
I have tried-
'to number' (see screenshot)
Select tool and change data type : it goes red with error
Changing the double to string with 'tostring'.
Can you please help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @pangersandmash that approach won't work as after the formula tool that field remains a string field. The conversion within the formula tool only work in that specific function where you use them and does not permanently change the datatype of that field. You need to use a Select tool before the join and change the datatype and then it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
it didn't like that either 😞 ^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If the join tool has the same error message as before I would suggest you put a select tool on the other input and ensure the datatype is not a string.
