> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RejectedDataSetRecord Object (IRejectedDataSetRecord Inteface)

This object represents a record which failed to be written to the data set. The possible reasons include: non-unique primary key, some of the required fields not filled in, etc. Use the **ErrorMessage** property to retrieve details for each record.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **AsBusinessUnitRecord** | [**BusinessUnitRecord**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/businessunitrecord.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Returns the record as a business unit record. NULL if this record is not from the business unit database. Relevant only for invoice projects. |
| **AsDataSetTableRecord** | [**DataSetTableRecord**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/datasettablerecord.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Returns the record as a generic data set record. |
| **AsVendorRecord** | [**VendorRecord**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/vendorrecord.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Returns the record as a vendor record. NULL if this record is not from the vendor database. Relevant only for invoice projects. |
| **ErrorMessage** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | The error message which explains why this record failed to be written to the data set when the [**Commit**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/datasettablerecords-commit.md) method of [**DataSetTableRecords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/datasettablerecords.md), [**VendorRecords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/vendorrecords.md), or [**BusinessUnitRecords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/businessunitrecords.md) objects was called. |
| **RecordType** | [**InvoicesDatasetType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/invoicesdatasettype.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | The type of the record in the invoice-related data sets (vendor or business unit). Relevant only for invoice projects. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/RejectedDataSetRecord.gif?s=b4fc3e29e98ca3645e0fe64ea0421cbe)

## Output parameter

This object is the output parameter of the [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) method of the [**RejectedDataSetRecords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/rejecteddatasetrecords.md) object.

## See also

[**RejectedDataSetRecords**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/rejecteddatasetrecords.md)

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
