Hi everyone,
I am trying to output a flat text file at the end of my Alteryx workflow to match a specific data dictionary provided to me. This has a few fillers and the field length of each column is provided - see example below:
My plan of action here was to create a column for each of the fillers and insert whitespace and pad right on rest of the values where there are no nulls. At the end of my workflow I have a select tool that specifies the max field sizes again and then I output a fix delimited txt file.
The output here is not matching with what I expected. I have certain fields overlapping within the txt file and the order is off: Here is an example:
How can I prevent this from happening. I have attached the flat output as well.
Also - how can i add headers and trailers in this file with different separation lengths than the main data?
Thanks!
Can you show a screenshot of your Select tool to see the data types?
Yes - They are all string types with the specified lengths I want them to be. Maybe the txt file only can werite a certain number of characters in one row? The order is correct but it moves onto the second row.
Also I have the trailer and header in two different select tools and would want to include them in the flat file.
Try changing them from V_WString to String or String: Forced. That should generate the whitespace.
It is generating the whitespace but the output is going to line 2.
I have two workflows to build out the what you're asking for and attached both workflows and output file to this reply.