Data in: importing
Four ways data comes in
Import a file is a person with a spreadsheet: you pick what the file holds, read it through a file layout, check a preview and then import. Import routes are for a counterparty whose system posts documents at one gateway address; a field map turns their document into ours, and Import log shows every call. Inbound feeds are the case where nobody sends anything and Voyara goes to fetch it, from a folder on their server or from their host; Feed run log shows each run. Non-IATA capture holds the connection to a sub-agent who runs their own installation, and which of this book's tickets are theirs.
One set of writers behind all of them
Every import creates its records through the same code as the screen that owns them. An imported ticket is recorded the way a ticket typed on Tickets is, and an imported account is checked the way the chart checks one. So an import cannot create something the screen would refuse, and a refusal on the preview reads the same as one on the screen.
Walkthrough: importing a file
1. Open File layouts and add a layout for the import you need: the column separator, the header and totals rows to drop, the date format, the decimal point, and which column means which field. There is no default layout. 2. Open Import a file and press New. Choose the Import, the File layout and the file. For a master import, choose what happens when the record already exists. 3. Press Preview. Nothing is created yet; each row is read once and shown as Waiting or Refused, with the reason. 4. Read the Refused tab and fix the file if needed. A corrected file is a new file and can be previewed again. 5. Press Import N rows. Each row is written on its own, so one bad row does not stop the rest. 6. The run stays in the Imports list with its counts of created, changed, refused and skipped rows.
Import a file
Load a delimited file into one import target, check every row in a preview, and then create the records. The list is the history of every import run.
When to use it
When you have a spreadsheet of tickets, vouchers, accounts, parties, counter staff or passenger profiles to load at once, for example when moving onto Voyara or receiving a batch from a branch.
Steps
- Start the runPress New. Under What you are loading, choose the Import and the File layout, and pick the File.
- PreviewPress Preview. The file is read and you land on the run. Nothing is created at this point.
- Check the rowsUse the tabs Waiting, Imported, Refused and Every row. Each refused row shows the sentence saying why.
- ImportPress Import N rows. The records are created one row at a time and the run status becomes Imported.
Fields
- Import
- What the file holds: Tickets, Hotel vouchers, Car vouchers, Other service vouchers, Chart of accounts, Debtors & creditors, Counter staff or Passenger profiles. The hint under it says what one row creates. An import whose module your agency does not have is not offered.
- File layout
- The saved layout that says how to read the file. Only layouts In use are offered. The hint summarises the separator, date format, decimal point and mapped columns.
- When the record already exists
- Shown for master imports only, and it applies to the whole file: add it or change it if it is there, add only, or change only. Rows that break the choice are refused.
- Download a blank file in this layout
- Gives you an empty file with the columns in the layout's order, to fill in.
- Created, Changed, Would be refused, Waiting
- The counts on the run. After the import, Would be refused becomes Refused and Waiting becomes Skipped.
- File fingerprint
- A digest of the file's contents, shown once the run is imported. It is how a repeat of the same file is recognised.
What it posts
The import posts no journal of its own. Each row is handed to the same code as its screen: a ticket is recorded as an issued ticket, a voucher is saved, and a master import creates or changes the master record. Anything those documents post later, they post the same way as one typed by hand.
Tips
- Read the Refused tab before you press Import. A refused row is not retried at import time; fix the file and run it again.
- The preview is what is imported. Changing the layout or a master after the preview does not change what the run will do, so preview again if you changed either.
- The same file cannot be imported twice. A second run of identical contents is refused with the date and result of the first. A corrected file has a different fingerprint and imports normally.
- If two rows in one file claim the same unique value, the first row wins and the later one is refused.
- The currency scale comes from the currency, never from a column, so you cannot import an amount with the wrong number of decimals.
- Lists such as hotel guests, invoice lines or payment allocations cannot be imported from a flat file. Opening balances have their own import on Opening balances.
Related screens
File layouts
Define how a file maps onto one import: its separator, the rows to drop, the date and number formats, and which column feeds which field. Layouts are saved and reused.
When to use it
Before the first import of a new kind of file, or when a counterparty changes the columns of their export.
Steps
- Add a layoutPress New layout. Choose the Import, give it a Key and a Name.
- Describe the fileSet the Column separator, the rows to drop from the top and bottom, the Date format, the Decimal point and the Thousands separator.
- Map the columnsUnder Which column means what, choose for each column the field it fills. Leave a column as Read and discard to skip it. Required fields are marked with a star.
- SavePress Save layout. If a required field is still unmapped, the warning This layout cannot work yet names it.
Fields
- Key
- A short, stable code for the layout, unique within its import.
- Drop this many rows from the top
- Header lines to skip. Usually 1 for a header row.
- Drop this many from the bottom
- Trailer lines to skip, such as a totals line.
- Date format
- How dates are written in the file, for example dd/mm/yyyy or yyyy-mm-dd. A wrong choice makes dates refuse or read as the wrong day.
- Decimal point
- A full stop, or a comma for files that write 1.234,56.
- Thousands separator
- Leave blank if the file has none.
- In force from
- The date the layout applies from. Layouts are dated like other rules.
- Status
- In use or Retired. A retired layout is no longer offered on Import a file.
- Which column means what
- Columns are counted from 1, as in a spreadsheet. Each column can feed one field of the import, or be read and discarded.
Tips
- There is no default layout on purpose. A guessed layout would read the wrong columns and still produce rows that look valid.
- Changing the Import on a layout clears its column map, because the fields differ by import.
Related screens
Import routes
List every counterparty that may post documents at the import gateway, what format they send, and which imports each may perform.
When to use it
When a partner system is going to send you documents automatically, or when you need to switch a partner on or off.
Steps
- Add the routeAdd a route. Under The counterparty, give it a Code and Name, choose What they send, and tick Accepting documents when you are ready.
- Choose what it may importUnder What it may import, tick each import the counterparty may perform.
- Map each importOpen the route. Each switched-on import shows Not mapped until it has a field map. Open the field map, paste A sample document, and choose for each field what fills it.
- Check and savePress Preview to see What this mapping produces from the sample. Set Applies from and What changed, then Save this version.
Fields
- Code
- Letters, numbers and underscores. The counterparty sends it as config with every call, which is how the gateway finds the route.
- What they send
- The source format: XML, JSON, CSV, Excel, or one of the GDS interface records. A call in a different format is refused by name rather than read badly.
- Accepting documents
- While off, documents posted on this code are refused.
- What it may import
- The imports this route may perform: Tickets, the voucher imports, Sales invoice, Sales refund, Receipt, Payment, Journal voucher, Chart of accounts, Debtors & creditors, Counter staff and Passenger profiles.
- Repeats over
- On a field map, the repeated node that produces one line each, such as invoice lines or payment instruments. One row per record when left blank.
- Include this section when
- A condition on a path in the document. The section is only built when the test holds.
- Filled from
- How a field gets its value: From the document, A fixed value, A rule over several paths, A calculation, or If / then / else.
- Applies from
- A field map is versioned. The new version applies from this date and earlier versions are kept under Earlier versions.
What it posts
A route posts nothing by itself. Each document a counterparty sends is written by the same code as its screen: a Journal voucher posts its lines, and an invoice, refund, receipt or payment is recorded the way its own screen records it. A dry-run call writes nothing.
Tips
- The gateway checks in order: parameters, credential, route switched on, import enabled for the route, an active field map, then the format. The refusal names the first check that failed.
- A call with some bad records is not rolled back. The good records stay, and the bad ones are named in the Import log so only those need resending.
- A mapped field that produced nothing from your sample is listed above the preview. Check it before saving.
- The counterparty also needs a machine credential. Set that up under Settings, Machine access.
Related screens
Import log
Every call made at the import gateway, accepted or refused, with what each record in it became.
When to use it
When a partner says they sent something and you need to see whether it arrived, what it created, or why it was refused.
Steps
- FilterChoose a Route and an Outcome. Opening the log from a route's Its calls button filters it to that route.
- Open a callExpand a row to see each record: its number, its outcome, what it Became and, for a refusal, Why not.
Fields
- Outcome
- Imported, Partly imported, Refused, or Dry run. A dry run built the records to check them and wrote nothing.
- Records
- How many records the call carried.
Tips
- Partly imported means some records were created. Ask the counterparty to resend only the refused ones, or they will be created twice.
Related screens
Inbound feeds
Set up collection from a counterparty: a folder on their server that is polled, or their host that is fetched from when they ask. What a feed collects is read by an import route.
When to use it
When a counterparty leaves files on an SFTP or FTP server for you, or offers an endpoint you must fetch from.
Steps
- Set up the route firstA feed has no reading of its own. Create the import route and its field map on Import routes before the feed.
- Add the feedPress New feed. Give it a Code and Name, then choose What starts a run, Where the data comes from and, for a folder, the Protocol.
- Link it to the routeUnder What reads what it collects, enter the Import route code and the Import to perform. Under What this feed may write, tick what a run may create.
- Configure and switch onOpen the feed and fill in Configuration: the connection, the folder and its filing, or their host. Then Switch on. For a watched folder, Run now tests it.
Fields
- What starts a run
- Somebody presses Run, On a timer, or When the counterparty calls us.
- Where the data comes from
- A watched folder, or A request to their host.
- Protocol
- For a watched folder: SFTP, FTP, or A folder on this host.
- What this feed may write
- A feed runs unattended, so what a run may create is decided here in advance.
- Machine credentials
- Which machine credentials may start the feed, comma separated as they appear on Settings, Machine access. Empty means nobody.
- After a file has been collected
- move files it away and stops a re-import. copy leaves the original. leave does neither and re-imports the same file next run, so use it only to test a connection.
- Look every (minutes)
- How often a timed watched folder is polled.
What it posts
A feed posts nothing itself. Each file or record it collects goes through its import route, which writes it the same way as a call at the gateway.
Tips
- Two combinations are refused with a reason: a watched folder started by an outside call, and a pull from their host on a timer. Use a timer or Run for a folder, and a counterparty call or Run for a pull.
- A feed starts switched off and stays off until you switch it on.
- Configuration values are dated. Changing one adds a row from a date rather than overwriting.
- Files over the Largest file to collect size are refused by name and left where they are.
Related screens
Feed run log
Every run of every feed, and what happened to each file in it.
When to use it
When a feed seems to have collected nothing, or a counterparty asks about a file.
Steps
- FilterChoose a Feed and an Outcome.
- Open a runOpen a run to see What was in that run: each file, its size, records, how many were accepted, where it was filed and its outcome.
Fields
- Outcome
- All collected, Partly collected, Nothing waiting, or Refused. Nothing waiting is the normal state of a healthy folder.
- Offered, Collected, Refused
- Files or records found, taken, and refused in the run.
- File outcome
- Parsed, Partly parsed, Not parsed, or Left alone.
Tips
- A run refused before it opened the folder shows the reason at the top and no files.
- For records that were refused by the import route, follow up in Import log.
Related screens
Still stuck? Write to [email protected].