convert string to whole number using magic etl
Hello,
I am trying to convert the datatype of a column to whole number which is having a string datatype using magic ETL and getting attached error. Source for the data load is from CSV file and i am loading data using workbench. Also tried changing the datatype in workbench which also could not complete the run.
And when tried converting using Magic ETL getting attached error.
Error : Failed to convert data ' ' to type integer for column "Name of the column"
Please help.
Best Regards
Bikash
Best Answer
-
you may need to first use the replace text action. Excel will often populate a ' ' instead of a null value. Use the replace text action to search for ' ' and then replace it with null. Then you should be able to change the data type
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1
Answers
-
you may need to first use the replace text action. Excel will often populate a ' ' instead of a null value. Use the replace text action to search for ' ' and then replace it with null. Then you should be able to change the data type
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1 -
Often the approach I take for this is to use Text Formatting to "Only show numbers" then do the Set Column Type. This insures anything that could be preventing the Set Column Type is removed.
3 -
Thank you for the solution it worked.
0 -
I even used Replace Text to replace any null or empty string with '0' before connecting to Text Formatting, making my dataset clean and reasy to read
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 695 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive