Skip to content
Documentation

BulkHandlerResultCountMismatchException Class

Indicates that a bulk handler yielded fewer results than the number of items submitted to it.

public sealed class BulkHandlerResultCountMismatchException : HAKOM.ErrorHandling.Core.Net.Api.HakomException

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 BulkHandlerResultCountMismatchException

Every IBulkHandler<TResult> and IBulkHandler<TBody,TResult> implementation must yield exactly one IBulkResponse<T> per input item. When a handler returns fewer results, the remaining items are assigned this exception, resulting in a per-item HTTP 500 response.

To avoid this error, ensure that the handler iterates over every input item and yields a result - success or failure - for each one before completing.

This exception is identified by error code HK01002.

BulkHandlerResultCountMismatchException.EquivalentHttpStatusCode Property

Section titled “BulkHandlerResultCountMismatchException.EquivalentHttpStatusCode Property”

This exception represents a contract violation by the handler implementation and is always reported as a server-side error (HTTP 500 Internal Server Error).

protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }

System.Net.HttpStatusCode

© 2026 Volue.Version v0.6.38017 November 2026