Skip to content

plugin: Ignore Import Errors

Nick Mathison edited this page Apr 12, 2017 · 1 revision

Ignore Import Errors

With the version 13 release of the Datapower plugin, we have implemented easy support for ignoring import errors on the Import (Basic), Import (Definition), and Import (Deployment Policy Object) steps. Outside of the plugin, some of these errors may have gone unnoticed and we needed to capture this same functionality within the plugin. Using the hidden Import Error Regex property, you can now specify a short regex string to match the Import Error against on import failure. If it successfully matches, the plugin step will complete successfully.

Configuration

  1. Within UCD, drag the Import (Basic), Import (Definition), or Import (Deployment Policy Object) step from the step palette into the process editor.
  2. Open the step's configuration properties and click the Show Hidden Properties' check box to display the Import Error Regex' property.
  3. Specify the Import Error regex string you want to consider a success in the Import Error Regex property.

import-basic-regex

Plugin Step Logs

We can see the impact of this property towards the bottom of the Import step's output log. In the picture below, you can see the exact Import Error(s) that were received by the Datapower plugin. Below that, for convenience, the regex is reprinted for easy comparison. If they do match, the plugin step will complete successfully. If you do not know the exact Import Error to account for, run the Import (X) step once manually and create a regex string based on the Import Error received. In the example below, you can see that the Import Error(s) is "No access to file" and I've supplied the regex "No .* file". Because my supplied regex matches the actual Import Error, the plugin step completes successfully. In the logs, there is a small difference in text between whether no errors were received or the regex was required for a successful completion. datapower-import-logs