---
title: isFault
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmanagedobject/isfault
---

# isFault

A Boolean value that indicates whether the managed object is a fault.

## Declaration

```swift
var isFault: Bool { get }
```

## Discussion

Discussion true if the receiver is a fault, otherwise false. Knowing whether an object is a fault is useful in many situations when computations are optional. It can also be used to avoid growing the object graph unnecessarily (which may improve performance as it can avoid time-consuming fetches from data stores). If this property is false, then the receiver’s data must be in memory. However, if this property is  true, it does not mean that the data is not in memory. The data may be in memory, or it may not, depending on many factors influencing caching. If the receiver is a fault, accessing this property does not cause it to fire.

## See Also

### Getting State Information

- [managedObjectContext](coredata/nsmanagedobject/managedobjectcontext.md)
- [hasChanges](coredata/nsmanagedobject/haschanges.md)
- [isInserted](coredata/nsmanagedobject/isinserted.md)
- [isUpdated](coredata/nsmanagedobject/isupdated.md)
- [isDeleted](coredata/nsmanagedobject/isdeleted.md)
- [faultingState](coredata/nsmanagedobject/faultingstate.md)
- [hasFault(forRelationshipNamed:)](coredata/nsmanagedobject/hasfault(forrelationshipnamed:).md)
- [hasPersistentChangedValues](coredata/nsmanagedobject/haspersistentchangedvalues.md)
