Alteryx Designer Desktop Discussions

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

How to write = sign coming from database column out to excel file.

dalchand
6 - Meteoroid

Hi, I have very simple workflow read some values from text input(eventually database) and writing to database. 

 

dalchand_0-1679430849149.png

 

When I open the excel output generated from this workflow I see following error.

we found a problem with some content in 'xxxx.xlsx' Do you want us to try to recover as much as we can?

dalchand_1-1679431001639.png

 

And when I click on yes, It just changes the field3 values like below.

dalchand_2-1679431050659.png

 

Badly need your help guys. This happened in production after upgrading from 2019.3.5 to 2022.1.1

 

9 REPLIES 9
Yoshiro_Fujimori
15 - Aurora

Hi @dalchand ,

When a cell starts with "=", Excel takes it a formula, and validates its format.

Your Field3 is not a valid format as Excel formula, which causes the error.

If you want to keep the string as it is, you may want to add a quote (') at the head of the string, as the attached workflow.

 

See also:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Writing-Formulas-to-Excel/ta-p/1233...

 

Good luck.

dalchand
6 - Meteoroid

Thank you for quick response.

few things to consider here. It was working as it is in 2019.3.5 but since we upgraded to 2022.1.1 it stopped working. 

Also when I apply suggested solution It shows me quotes in the start of values in field3

 

dalchand_0-1679434654399.png

 

Yoshiro_Fujimori
15 - Aurora

Though I don't know about your Excel environment, 

as long as Excel outputs the error, it is more likely that the change of behavior of was caused by Excel (not Alteryx).

And (same as Alteryx) Excel behaves differently by its version.

 

So it may be safer that you save the data as text (.csv) and import it from Excel (instead of opening the file).

 

The solution 1 of this post may help you.

https://stackoverflow.com/questions/53410490/i-am-getting-an-error-as-name-while-opening-csv-file-in...

 

Also Excel allows you to define the data type during the import process.

 

Good luck.

dalchand
6 - Meteoroid

These files goes to our business team and it's really difficult for us to manipulate data or change the file type. I am meeting our Alteryx rep tomorrow. 

Thank you so much for suggesting the solution.

sparksun
11 - Bolide

You may use table and render tools to solve it

sparksun_0-1679459912671.pngsparksun_1-1679459936719.png

 

 

dalchand
6 - Meteoroid

Render tools gives me PDF. I need excel as output file

Yoshiro_Fujimori
15 - Aurora

@dalchand ,

You can select the file format on Render tool.

Yoshiro_Fujimori_0-1679527353229.png

 

Output .xlsx

Yoshiro_Fujimori_1-1679527244595.png

 

sparksun
11 - Bolide

It seems you are not familar with Render tool, actually you can choose various file types in Render configuration, including excel.

dalchand
6 - Meteoroid

Really Appreciate Yoshiro_Fujimori and sparksun. This solved my problem.

Labels