Files

Frends templates for files. File templates allow to perform common file and directory operations.
This template parses your local Excel files and imports them to your Microsoft SQL database table.
Using this template, you can insert any kind of data from your Excel files to the Microsoft SQL table.
This template assumes that the following prerequisites are in place:
This template will locate Excel files in the local folder provided in the process variable. Each file is then parsed to a DataSet. DataSet table contents are transformed to a JSON string and inserted to the Microsoft SQL table. The local Excel files are not manipulated in any way by this template.
Excel files should not include headers - only the data to be inserted is required. The Excel file should be structured in the same way as the database or vice versa.
Process variables include the path name to the local folder, the Microsoft SQL table name and the connection string for Microsoft SQL.
Example database table and Excel structure
CREATE TABLE CustomerFeedback (
[Date] DATE,
[CustomerName] VARCHAR(255),
[Product] VARCHAR(255),
[Rating] FLOAT,
[Comments] TEXT,
[FollowUpRequired] VARCHAR(3)
);
11.7.2024 Daniel Matthews Cafe Corto 5 So delicious! no
11.7.2024 Kate Thompson Blueberry muffin 4.5 Yummy! Just a bit dry. no
12.7.2024 Matthew Daniels Hot cocoa 2 Too hot and bitter. yes
Each task is followed by an error check. If an error occurs when handling a file, that file's data won't be uploaded and the next file will be taken for handling. Any errors encountered will be noted at the end of the process.
If transient errors are expected, retries can be enabled from the tasks. Transient errors are not handled.
InFilePath | Local folder location with the Excel-files to be transmitted to Microsoft SQL database. |
MicrosoftSqlConnectionString 🗝 | The connection string for Microsoft SQL database. |
TableName | The table name in Microsoft SQL database. |