home |   products |   partners |   news |   forum |   contacts |
HummingbirdTools.com

Useful third-party tools for Hummingbird DM / RM / Workflow / Portal

 Home  > Products > XML-based import for Hummingbird DM > Online Help
Home    XML-based import for Hummingbird DM - Online Help

Download demo-version NOW!
Prev Next
Welcome
Main features
SQL queries
Global and local variables
Working with documents (create/update/search/remove)
Working with folders (creating/removing/updating searching for folders/adding and removing documents)
Updating numerous documents with one operation
Using references to items
Processing errors
User interface
User interface overview
Defining global variables
Specifying logon parameters for Hummingbird DM
Program settings
XML scheme
XML scheme description
Pseudo scheme
Elements
ACCESSRIGHTS
ACTIONS
ADD_ITEM
CONTENT
CREATE_ATTACHMENT
CREATE_VERSION
DOCUMENT
FIELD
FOLDER
GROUP
HBXMLIMPORT
PROFILE
PUBLISH_VERSION
QUERY
REMOVE_ITEM
SEARCH
SECURITY
USER
VARIABLE
F.A.Q.
Examples
Requirements
Demo version limitations
Licensing, prices, technical support

Processing errors

 

You have wide capabilities concerning processing specific situations and errors during import.

 

All top level elements have the onerror attribute with the following possible values: skip (by default) or break.

If the attribute onerror="skip" is set for a element and an error occurs while this element is being processed, the corresponding message will be added to the log, the program will interrupt processing the element and start processing the next element in the XML file.

If the attribute onerror="break" is set for a element and an error occurs while this element is being processed, the corresponding message will be added to the log, the program will interrupt processing the element and the current XML file and start processing the next XML file.

 

The following events are considered as errors:

  • XML errors

  • errors that occur while calling DM API (for example, not all required fields were specified in the FIELD element of the PROFILE element)

  • errors in SQL queries

  • errors explicitly initiated by the import logic (see below)

 

The DOCUMENT and FOLDER elements have the ifexists attribute (used only when a new document is created, i.e. action="create") whose value allows you to interpret the event when documents with certain attributes exist in the library in different ways, including interpreting it as an error. You can search using the SEARCH element. If one or several results have been returned as the result of the query, you can implement different logic with the help of the ifexists attribute.

For example, if there is an order with the same number in the library already, you can consider is as an error (ifexists="error") and you can either interrupt importing the XML file (if onerror="break") or continue importing other documents from this XML file just leaving a message in the log (if onerror="skip").

If it is not an error when a document with the specified parameter exists, you can just skip processing the current element (ifexists="skip"), or update the attributes of the found document(s) (ifexists="apply"), or do nothing, but save the ID of the found document to be able to refer to it later (ifexists="use").

See the more detailed description of the ifexists attribute for more information.

Contact Us · Legal · Privacy · Site Map © HummingbirdTools.com All Rights Reserved.