Click or drag to resize

BatchServicesDeleteBatch Method

Deletes a Batch given its 123-bit unique identifier (Id property). Batches may not be deleted if there are production units, or materials associated with them, or if their are any tracking history records recorded against them.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void DeleteBatch(
	Guid sessionId,
	Guid batchId
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
batchId
Type: SystemGuid
The 128-bit unique identifier of the Batch (Id property).
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
BatchNotFoundExceptionThrown if a batch with matching Id property is not found in the system.
RelatedItemExceptionThrown if the batch cannot be deleted becuase it is associated to production units or materials.
See Also