Fixed Width File
- Geometry, Geography, and Binary data types are not supported for Fixed Width Files.
Parameter | Value |
headerRowsToIgnore | the number of records from the top of the file to ignore before the data starts (includes column header) |
footerRowsToIgnore | the number of records from the bottom of the file to ignore |
path | The path to the source file to load. To upload a local file, you must first insert a Parameter in the Info tab of the connection (ex: filepath). Then, you would reference that same value in this location (Ex: @Filepath). This will then trigger a File Upload option to import your file. |
encoding | the encoding of the file, defaults to UTF8 if not specified, but also supports UTF8_BOM, ASCII, and UTF16 |
maxBufferSizer | the maximum buffer size |
Auth Type | This field defines the authentication type for your data sync. Cinchy supports "Access Key" and "IAM" role.
When selecting "Access Key", you must provide the key and key secret.
When selecting "IAM role", a new field will appear for you to paste in the role's Amazon Resource Name (ARN). You also must ensure that:
Note: This field was added in Cinchy v5.6 |
In the column definitions, add the
length="number"
attribute to denote the width of the column.
<FixedWidthDataSource
headerRowsToIgnore="1"
footerRowsToIgnore="0"
path="C:\Users\Cinchy\Sample.csv"
encoding="UTF8"
maxBufferSize="10">
<Schema>
<Column name="Name" dataType="Text" maxLength="10" length="10" trimWhitespace="true" />
<Column name="Description" dataType="Text" maxLength="50" length="50" trimWhitespace="true" />
</Schema>
<Filter/>
</FixedWidthDataSource>
You can use trimwhitespace to clean up a fixed width file, the trimming will occur after parsing the columns.
Last modified 3mo ago