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!