Skip to main content

Importing plugs from Excel

List the marina's plugs by uploading an Excel sheet: map the columns to the plug fields and link each plug to its berth. To be done once, before importing readings.

Before you can import readings and invoice consumption, BlueShell must know which plugs exist and which berth each one is connected to. This “census” is done once by uploading an Excel sheet of the plugs. You get there from Organization → Port structure → Plugs and Services, Import sockets button (page Import sockets from Excel). To create or correct a single plug, see Pedestals and plugs: creating them and keeping them in order.

Do this step only once (and afterwards only when you add new plugs). If you run the import again, existing plugs are updated, not duplicated.

No file yet? Press Download the sockets file: it contains the plugs already in the marina, each with its Socket code, or three example rows if there are none yet. Correct it, add the new plugs leaving the code empty, and upload it again: the columns map themselves.

1. Upload the file

Drag the sheet into the Drop the Excel file here (or click to choose) box (accepted formats: .xlsx / .xls). Press Upload & map columns. You will see a preview of the first rows of the file to help with the mapping.

2. Map the columns

For each socket field choose an Excel column or set a default for all rows. The fields:

Field

What it is for

Socket name

the name of the plug

Utility type

Energy, Water, Toilet, Shower or Access gate (default: Energy)

Number

the number of the plug

Meter max

the maximum value of the meter before it restarts from zero (rollover)

External id

an external identification code (optional)

Then you set where to connect the plug:

  • Socket code column — the code of the plug you are updating (the one in the file downloaded from BlueShell); leave it empty for new plugs.

  • Berth column (posto barca) — connects the plug to a berth (needed so that consumption can find it). If the berth of a row is not found, the plug is created anyway, without a berth, and the row is marked Berth not found: without a berth the plug is not found by the import by berth.

  • Column/zone column and Default column/zone name — the pedestal/zone the plug belongs to. If you leave them empty, one pedestal per pier is created (e.g. “Molo C”). Missing pedestals/zones are created automatically.

3. Preview and import

Press Preview to see the summary: how many plugs are New, how many will be Updated and how many are Invalid (with the note saying why). When everything is fine, press Import: the valid plugs are created or updated and the missing pedestals/zones are created.

When it finishes you see the summary, for example: “Sockets imported — created: 120, updated: 0, skipped: 0, invalid: 2.”

How plugs are recognized (so as not to duplicate them)

Every row with a Socket code updates that plug, and an empty cell leaves the value as it is. A row without a code is a new plug, unless the marina already has one of the same utility on that berth or with the same External id: in that case it is updated. Running the import again does not duplicate plugs. A row is rejected if the code does not exist, if it appears twice in the file, if it changes the utility of a plug that already has readings, or if the External id is shared by several plugs.


Did this answer your question?