+

Search Tips   |   Advanced Search

Error recovery

If errors occur during the processing of an XML script, the XML result file contains an error message. After fixing the cause of the error, we have two options to continue. Choose one of the following two options:

  1. Run the entire XML script once again.
  2. Remove all resources before the point where the error occurred from the XML script and run only the rest of the XML script.

If the error occurs during the validation of the XML script, and no resources have actually been processed so far, we can simply run the entire script again. We can verify this by reviewing the progress reporting comments in the XML response.

If the error occurs after some resources have actually been processed, the best option depends on several circumstances:

To make error recovery easier, use scripts that can be run again partially or completely without the possibility of duplicating resources. To do that, specify an object ID or another identifying attribute on every resource in the script and use only update actions. This way resources are simply overwritten with the same configuration if they have already been created. For more information about how to specify attributes, see the topic about Mandatory and optional attributes.

Parent topic: XML configuration reference

References: