Skip to main content

Introduction

Qobra can connect and synchronize csv files thanks to the SFTP protocol.
You push your files to Qobra’s SFTP server. Your company can have only one SFTP integration.

SSH key generation

You can write data in our SFTP server using SSH Key pair as authentication. You authenticate using your private key on your machine and we use your public key to verify the sender. When you generate an SSH key, you can add a passphrase to further secure the key. If so, you must enter the passphrase each time you use the key. If you don’t already have an SSH key, you must generate a new SSH key to use for authentication. You can generate a new SSH key on your machine. After you generate the key, keep the public part of the key to provide it to Qobra later on. Key type allowed are rsa, ed25519, sha2 and ecdsa.
  1. Open Terminal.
  2. Paste the text below, replacing the email used in the example with your qobra user email address.
    or
    When you’re prompted to “Enter a file in which to save the key”, you can press Enter to accept the default file location.
  3. At the prompt, type a secure passphrase if you want to. If you don’t want to have a passphrase just press enter.

Setup in Qobra

  1. Create the SSH key that will authenticate you when you send Qobra files via SFTP. Keep the public part of the key to provide it to Qobra later on. Be careful, Qobra only lets you use a single SSH key for all synchronized files with SFTP. Make sure that every data source that will push to our SFTP server use the same key.
  2. Fill in the integration modal with your SSH public key.
    The SFTP connection dialog of Settings > Integrations with the Qobra URI and login, the SSH public key filled in and the Validate SSH key button
  3. Push your csv files via SFTP, with the SSH key you created in step 1.

Synchronization

CSV file requirements

Qobra reads the file line by line and splits each line on the column separator of the integration, ; by default. It does not interpret quotes, so a file that breaks the rules below fails to import, or imports wrong values.

Separators

Each S3 or SFTP integration has two separators: The two separators must be different. Pick a column separator that never appears inside a value. To change them:
  1. Click Settings, then Integrations.
  2. On the integration card, click the … menu, then Edit file separators.
  3. Select the Column separator and the Separator between the values of a Multi-picklist field, then click Save.
You can change the column separator while data tables already read the integration. Qobra matches the fields of a data table to the column names of the header, so a file still split on the old separator fails its next import. Export the files with the new separator before the next import.

File

  • The file has the .csv extension, in lowercase.
  • The file keeps the same name and path: Qobra reads it from the path you entered when you added the data table.
  • The file is encoded in UTF-8, without a byte order mark (BOM). Some tools, such as the CSV UTF-8 format of Excel, add one: the name of the first column then starts with an invisible character.

Lines and columns

  • The first line is the header: the names of the columns, separated by the column separator. Give each column a different name.
  • Each following line is one record, and ends with a line break. Use Unix line endings (\n): with Windows line endings (\r\n), each value of the last column ends with an invisible carriage return.
  • Every line has as many columns as the header, empty values included. With ; as column separator, a record with no value in its last two columns ends with ;;.
  • No value contains the column separator or a line break. Quotes do not protect them: "Acme" is imported with its quotes, and a column separator between quotes still starts a new column. Remove or replace these characters when you export the file.
  • Empty lines are skipped.
A line with more or fewer columns than the header stops the import. The error names the line by the identifier of the line just before it. You can add columns to the file at any time. If you rename or remove a column that a field of the data table reads, the import fails until you restore the column.

Required columns

  • A unique identifier column: each line has its own value, which never changes.
  • A name column.

Values

An empty value imports as an empty field. Other values follow the type of the field that reads them:
  • Text: any text, such as Acme renewal.
  • Date: YYYY-MM-DD, such as 2026-01-15.
  • Number and amount: . as decimal separator and no thousands separator, such as 12000.50.
  • Percentage: with %, such as 12%, or as a fraction, such as 0.12. Without %, 12 reads as 1,200%.
  • Boolean: true or false, or 1 or 0, in any case. Any other value reads as true.
  • User: the user’s email by default. You can choose another user identifier when you add the data table.
  • Picklist: the option, such as Europe.
  • Multipicklist: the options, separated by the multipicklist separator without spaces, such as Europe,Americas with the default ,.
The currency of an amount comes from a column named after the amount column followed by _currency, such as amount_currency, holding a currency code such as EUR. Without this column, or with a code Qobra does not know, the amount takes the currency of your company.

Example

With the default separators, ; for columns and , for multipicklists:
The same file with | for columns and ; for multipicklists:

Full synchronization

Qobra reads all the records of each table at every refresh, and removes the records deleted from the source. A Qobra admin chooses how often Qobra refreshes the source, in Settings > Integrations, from the … menu of the integration card.