Skip to content

Preparing the file#

Before integrating a file it helps to know how Empowerment Center reads it: which formats it supports, where it looks for the header, how it names the columns and how it decides the type of each one. With that, a well-prepared file is integrated the first time.

Supported formats#

Format Extensions How it is read
Excel .xlsx, .xlsm, .xls Each sheet is a table. The header is the first row with values, unless you choose another one with Header and range….
Delimited text .csv, .txt A single table, with the first line as the header.
dBase or FoxPro .dbf One table. The memo fields are in another file (.dbt or .fpt), which is uploaded together with the .dbf.
Access .mdb, .accdb Each user table is a table (queries are not). It brings its primary key and its relationships, which the wizard proposes.

Completely empty rows are skipped.

Options of a CSV#

When you choose a .csv or .txt file, the Delimited text options appear. By default, ECenter deduces them from the file:

Option Values
Separator Automatic, Semicolon, Comma, Tab or Vertical bar.
Encoding Automatic, UTF-8 or Windows (ANSI). A CSV saved with Excel in Spanish is usually Windows (ANSI).
Decimal separator Automatic, Comma or Period.

The field separator and the decimal separator cannot be the same. If accented characters look wrong in the sample, upload the file again with another encoding.

A DBF with memo fields#

The memo fields of a DBF (long texts) are not in the .dbf, but in a separate file with the same name: .dbt in dBase and .fpt in FoxPro. When you choose a .dbf, Memo file (.dbt, .fpt) appears: upload it with it. If you do not upload it, the table is integrated without those texts and the wizard warns you: “El campo memo NOTAS no se ha leído: suba su fichero .dbt junto al .dbf” (the memo field NOTAS has not been read: upload its .dbt file together with the .dbf; this message comes from the server and is shown in Spanish). The binary fields of the DBF (images, objects) are not read.

The header and the tables of an Excel sheet#

ECenter takes as the header of each sheet its first row with values. If the sheet starts with a title, a date or blank rows, that first row is not the right one. Nor does it work if a sheet has two tables, one below the other or one beside the other.

In the Tables step of the wizard, Header and range… next to a sheet lets you say where each table is:

  1. Click Header and range… next to the sheet. Its first rows open, with the number of each row and the letter of each column, as in Excel.
  2. Type the Header row: the row with the names of the columns.
  3. If the table does not reach the end of the sheet, type the Last row. Empty, it goes to the end.
  4. Type the First column (a letter, such as A or C) and, if not all of them, the Last column. Empty, all of them from the first one are included.
  5. For another table in the same sheet, click Add another table and repeat the steps. Remove table n removes one.
  6. Click Apply. ECenter reads the sheet again with those ranges.

The view colors the header and the data of each table. Below it, a summary states what was chosen (“Header in row 3, …”) and, if something is not valid, what is missing: “The last row must be after the header”, “The first column must be an Excel column (A, B… XFD)”.

Each range is one more table of the file: “file - sheet”, “file - sheet (2)”… Whole sheet (the proposal) reads the whole sheet again, with the first row with values as the header.

“Header and range…” of a sheet with a title in row 1 and the header in row 3“Header and range…” of a sheet with a title in row 1 and the header in row 3
“Header and range…” of a sheet with a title in row 1 and the header in row 3

Note

An empty header does not prevent the table from being read: its columns are called F1, F2…, by their position. Give them a name later in the Configure step. Ranges only exist in Excel: a CSV, a DBF or an Access table are read whole.

The names of the columns#

Each column gets a name for the database from its header, and the header as it is is saved as the original name, which is the one shown in the wizard and the one proposed as the name of its dimension. The name for the database:

  • only contains letters without accents, digits and _ (“ñ” becomes “n” and the other signs become _);
  • does not start with a digit or with _;
  • has at most 30 characters;
  • gets _2, _3… if it is repeated, and a _ at the end if it is a reserved word of the database language.

Upper or lower case depends on the database engine. You do not need to touch these names; the panel of each integrated table shows them in Columns.

When a table is refreshed, the columns of the new file are matched with those of the table by this name. Keep the same headers in the files of each load (see Refreshing data).

The types of the columns#

ECenter looks at all the values of each column to propose its type:

If the values are… Proposed type
Texts Text, with a generous size (10, 20, 50, 100, 255… characters).
Whole numbers Integer.
Numbers with decimals Decimal (up to 6 decimal places).
Dates Date if they are all at midnight; if not, Date and time.
Yes or no (logical) Integer, with 1 and 0.
Mixed, or the column empty Text.

In a CSV all the values arrive as text: a column is numeric or of dates only if all its values are. A code with leading zeros, such as 08001, stays as text, so as not to lose the zeros.

Choosing another type#

In the Configure step of the wizard, each dimension has its Type, which can be changed: Text, Integer, Decimal, Date or Date and time. Changing it reads that table of the file again (“Changing the type of …”).

Before you change it, the list says how many values are not converted to each type (“Decimal (1 is left empty)”). If you choose a type with values that are not converted, it says below which ones: “1 value is not a number and is loaded empty: row 5 (“n/d”).”. Those values are loaded empty; correct the file if you do not want to lose them.

When converting a text:

  • a number is read with the decimal comma (in a CSV, with its decimal separator) and, if not, with the period;
  • a date is read in the form YYYY-MM-DD or DD/MM/YYYY;
  • a number is not converted into a date.

Limits#

Limit Default value
File size 100 MB
Rows per table 5,000,000
Columns per table 1000
Excel 97-2003 (.xls) 30 MB and 65,536 rows per sheet; for more, save it as .xlsx
Time an upload is kept without being integrated or loaded 24 hours

The administrator can change them. A table that exceeds the allowed rows or columns is not loaded and the wizard says so next to it (“Tiene más de 1000 columnas”, it has more than 1000 columns); the other tables of the file are.

See also#