Provisioning Schema::try

Element that wraps procedure steps and passes any errors to the corresponding catch block. This element is part of the provisioning schema of Microsoft® Provisioning Framework (MPF).

Provisioning requests that use try-catch error handling have try and catch nodes in the procedure. Each procedure step that requires error handling is wrapped in a try node. If an error occurs when a provisioning engine executes the try node, the engine executes the corresponding catch node and passes the errorContext node to all its procedures. If the catch node successfully responds to the error, the procedure continues to execute. Otherwise, the engine initiates rollback.

The try-catch blocks can be nested to any depth. However, a try node must always be followed by a catch node.


catch, procedure, try


catch (minOccurs="0" maxOccurs="*")
execute (minOccurs="0" maxOccurs="*")
queue (minOccurs="0" maxOccurs="*")
select  (minOccurs="0" maxOccurs="*")
  (minOccurs="0" maxOccurs="*")
try (minOccurs="0" maxOccurs="*")


  <data />
	<clientContext clientTransactionId="53367B03-63D3-44ae-B8AD-C1E57E876E70" />
	<execute namespace="Error Provider" procedure="SetError">
		<desc>The username already exists in the database</desc>
		<after source="executeData" destination="data" />
	<execute namespace="Error Provider" procedure="TranslateProvisioningError">
		<after source="executeData" destination="data" />

See also

Customization, XML Schema for Procedures

Up Top of Page
© 1999-2002 Microsoft Corporation. All rights reserved.