Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

CSV output from Alteryx data type selection

tk12
7 - Meteor

Hello there, 

 

I'm trying to generate CSV file out of Alteryx which is connected to SQL server. The problem is with account number and it has 16 digits when I Alteryx spit out the CSV it has some scientific notation, and if I change it into FRACTION data type it works. But I don't want to change it manually and want data as is. I have tried different data type in Alteryx from String, integer but no luck.

Account number 
1234567891234567
9812354567819287
4512398109273456

 

CSV output: 

Account number 
4.42868E+15
4.42868E+15
4.42868E+15
4.42868E+15

 

Can someone please advise what should I do?

 

Appreciate your help! 

 

Thank you

Mehul

2 REPLIES 2
ggruccio
ACE Emeritus
ACE Emeritus

Hi @tk12 

 

I've tried a very simple text input of your data and written to .csv  The underlying data appears to be writing correctly.  Here I've opened the csv below in Notepad and in Alteryx....

ggruccio_1-1613675523718.png

ggruccio_0-1613675473811.png

ggruccio_2-1613675583855.png

ggruccio_3-1613675609881.png

 

 

Seems to be an Excel setting where I open it and it displays in scientific notation.  Although if you look at the actual value in the window for the cell it is dropping the final digit and converting to zero.  Even changing the format in the field drops the final digit.... not sure how to correct...but maybe some setting in Excel - (assuming it is Excel you are trying to open it in?)...actually I see you are writing to SQL server...may be some setting there?

 

ggruccio_4-1613675673323.png

 

 

 

 

tk12
7 - Meteor

Hi @ggruccio 

 

Thanks for the quick response. Actually the input source is SQL, and output should be .CSV, when I try to open it in notepad it's working fine as you pointed out below. I want to automate this process, like hand over the Alteryx WF to end users and they can create CSV out of it based on the ASOFDATE. 

 

In SELECT tool I have tried few different data type but it doesn't seem to work. I mean if there is something CSV can't handle we are out of option and have to manually update the datatype, so be it. But was curious if something that can be accomplished from Alteryx itself. 

 

Thank you! 

Labels
Top Solution Authors