Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Input Data Error with Excel file

Toshi92
8 - Asteroid

Hi, all.

 

I have one issue about excel file input.

 

I often use excel sheets with meaningless headers, so I have to cut these headers before calculation.

So I need to not checked "First Raw Contains Data" on the configuration of Input Data tool.

 

In this case, I use input data tool as usual, but some values are strangely converted, like below.

 

ExcelError.PNG

 

Now I select "Microsoft Excel Legacy" input, therefore I have no issue.

But I think it is just compromise, isn't it?

 

I want to know why this happened, and want to select regular input style(pattern 1 on the picture), if possible.

 

Please help me

3 REPLIES 3
Toshi92
8 - Asteroid

Sorry, this attached file is the newest.

jrgo
14 - Magnetar

@Toshi92,

 

I recall finding a post a while back about that explained why this happens, but I failed to find it. However, (if memory serves me right) it was how the programming language Alteryx is built on handles values. I know this isn't an explanation to WHY it happens and, unfortunately, I have no idea.

 

That said, the reason why all fields come in as strings is because of the first row that you configured to read as data. Since it contained a non-numeric value, it had to attribute the field as a string so that it does not NULL out the value. I updated your workflow and used a Dynamic Rename tool to use the first row as your column headers (common practice after removing those header rows) and then converted that field back to double in your Select tool. The number does go back to normal.

 

Regarding your last question if using the legacy driver is a compromise, I would say yes it is. Reason is because Alteryx no longer includes this legacy driver and only shows up if you the Microsoft Access Jet Driver so you may have issues with sharing or publishing (server) if the driver is unavailable.

 

Hope this helps!

 

Jimmy

Toshi92
8 - Asteroid

Thanks, jigo!

 

I would assumed that truncation error would be shown if I change the field type from string to double.

But there is no error on your sample.

 

I think I can use the Pattern 1 in peace!

 

That's very nice of you.

 

 

Toshi

 

Labels