community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
#SANTALYTICS

The highly anticipated Alteryx Community tradition is back! We hope you'll join us!

Learn More
SOLVED

Reuse Import Spec

Asteroid

Experts - 

 

I created an "Import Spec" so to say for a fixed width flat file that I need to reuse in the same workflow in a different tool.  Is this possible?

 

Thanks!

Comet

When you create your flat file in the import tool, you can "export" the settings as a .flat file, and then in another tool use the "use field settings from file" and import the file you exported.

 

The first time you create the file click "export" and then the next time you can use that file as an "use field settings from file".

 

exportflat.PNG

 

You can also just create the contents of a .flat file from scratch -- here are the contents of the .flat file corresponding to the settings above:

 

<flatfile version="1">
<file eoltype="crlf" allowShortLines="t" allowLongLines="f" trimWhiteSpace="t" />
<fields>
<field name="Field_1" type="V_String" length="17" />
<field name="Field_2" type="V_String" length="11" />
<field name="Field_3" type="V_String" length="11" />
<field name="Field_4" type="V_String" length="40" />
</fields>
</flatfile>

 

If you want to view the settings that you used in the original input tool, you can just click on the "xml" option.

 

inputxml.PNG

 

 

Labels