Locations – ReferenceAdding Locations

Adding Locations

Reference for the Add Locations drawer: the Single Location form, address or coordinates modes, the 21-column bulk upload template, Location Type codes and upload results.

The Add Locations drawer has two tabs: Single Location and Bulk Upload. For the steps, see Add Locations. The Trade Partner a Location belongs to must already exist (see Add Trade Partners); your own company is always available.

Single Location form

FieldReq.TypeValues and validationDefault
Trade PartnerYesChoiceYour own company or any Trade Partner you have addedYour own company
NameYesTextAny textEmpty
External IdentifierNoTextYour identifier for the LocationEmpty
Location TypeNoChoiceCorporate Office, Warehouse / Distribution Center, Processing Plant, Farm, Pond, Cage, Feed Mill, Hatchery, Vessel, Transshipment Vessel, LandingEmpty (Select location type)
Address or coordinatesYesAddress and coordinatesAn address (Address line 1, Country and Postal code are required), or, when there is no address, both Latitude and LongitudeEmpty

Address or coordinates

The section has two modes, switched with Use Search and Use Manual.

ModeFields
Use SearchA search box; when the address is found, choosing a result fills in the address fields, Latitude, Longitude and the map waypoint
Use ManualAddress line 1, Address line 2, City, State, Country, Postal code, Latitude, Longitude. The form opens in this mode. Coordinates are not filled in from the address you type.

In Use Manual mode, the first click on the map drops a waypoint, which you can drag to adjust the coordinates. After a search has filled in the address and coordinates, you can drag the waypoint to adjust the coordinates. The map zooms with the Command key (or Ctrl key) and scroll.

The Add Location button is greyed out while the form is empty. When the Location is created, its drawer opens on the Details tab (see Location details) and the new row appears in the list.

Bulk Upload

The Bulk Upload tab has two steps: step 1, Excel Template (downloads the template); step 2, a file box (click it or drag a file onto it) and an Upload button. Accepted file types are .xlsx and .xls.

Template layout

The template has 21 columns. Row 1 holds the headings and row 2 holds the field codes. Both rows must stay. Each row describes one Location.

ColumnKeyReq.Values
Trade Partner Number/IDloc_trade_partner_idConditionalRequired if an identifier was assigned to the Trade Partner; use that Trade Partner Identifier
Company Nameloc_company_nameYesName of the Trade Partner the Location belongs to
PGLNloc_pglnNoValid PGLN of the partner
Location Number/IDloc_external_idNoYour identifier for the Location
Location Nameloc_nameYesLocation name
Address 1loc_address_1ConditionalRequired unless Geocoordinates is provided
Address 2loc_address_2NoAdditional address line
Cityloc_cityNoCity
State/Provinceloc_state_provinceNoState or province
Countryloc_countryConditionalRequired unless Geocoordinates is provided
Postal Codeloc_postal_codeConditionalRequired unless Geocoordinates is provided
Geocoordinatesloc_geocoordinatesConditionalRequired when there is no address. latitude,longitude, with both values. When an address is provided, Wholechain attempts to find the coordinates; if none can be found for the address, the Location is saved with 0, 0.
Contact Nameloc_contact_nameNoContact person
Phone Numberloc_phone_numberNoContact phone
Phone Extensionloc_phone_extensionNoContact phone extension
Emailloc_emailNoContact email
GLNloc_glnNoValid GLN
DUNSloc_dunsNoValid DUNS number
License Numberloc_license_numberNoLicense number
Location Typeloc_location_typeNoA type code (see below). A label such as Processing Plant is rejected.
Polygonloc_polygonNoLocation boundary in GeoJSON format

Location Type codes

In the single form, choose the label. In the spreadsheet, enter the code, not the label.

Label in the formCode in the spreadsheet
Corporate OfficeCorporateOffice
Warehouse / Distribution CenterWarehouseDC
Processing PlantProcessingPlant
FarmFarm
PondPond
CageCage
Feed MillFeedMill
HatcheryHatchery
VesselVessel
Transshipment VesselTransshipmentVessel
LandingLanding

Results of an upload

OutcomeWhat you see
All rows acceptedThe new Locations appear in the list and the count updates. No confirmation count is shown.
Row matches an existing recordThe record is updated. If the record was created with an identifier and the file leaves the identifier blank, a new record is created instead, because a blank identifier counts as a value.
One or more rows rejectedAn error banner appears with Download issues file. Rows without errors can already have been added.
Rejected Location TypeThe issues file's Errors column reads "Location Type must be one of: CorporateOffice, WarehouseDC, ProcessingPlant, Farm, Pond, Cage, FeedMill, Hatchery, Vessel, TransshipmentVessel, Landing."

For the full list of messages, see Messages; for the rules that apply to uploads, see Rules and restrictions.