Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Reuse Import Spec

Bonediggler
9 - Comet

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!

1 REPLY 1
adamorse
9 - 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