Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ObjectNotFoundException Class

Definition

Namespace:
Microsoft.Xrm.Sdk.Data.Exceptions
Assembly:
Microsoft.Xrm.Sdk.Data.dll
Package:
Microsoft.CrmSdk.Data v9.0.2.60

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The exception that is thrown when a record does not exist.

public ref class ObjectNotFoundException sealed : Microsoft::Xrm::Sdk::SdkExceptionBase
[System.Serializable]
public sealed class ObjectNotFoundException : Microsoft.Xrm.Sdk.SdkExceptionBase
[<System.Serializable>]
type ObjectNotFoundException = class
 inherit SdkExceptionBase
Public NotInheritable Class ObjectNotFoundException
Inherits SdkExceptionBase
Inheritance
ObjectNotFoundException
Attributes

Remarks

For example, this exception should be thrown when the Retrieve SDK message specifies an EntityReference that does not exist in the data store.

Constructors

Name Description
ObjectNotFoundException(EntityReference)

Initializes a new instance of the ObjectNotFoundException class with the specified entity reference.

Fields

Name Description
ObjectDoesNotExistErrorCode

Applies to