Semantics of optional in the context of Transient Attributes in CoreData

What difference does it make if a transient attribute in core data is set to optional or non optional.

Normally when you set an entity to being optional, it allows the entity owning that attribute to be stored with that attribute set to null. But in the case of transient attributes they aren't actually stored. So does setting a transient property to optional do anything?

Do you need to set a transient attribute to optional if it is calculated using an optional non-transient property?

Any insight is appreciated.


If I don't set the transient attribute to optional I get the following error: Core Data Save Error (NSValidationErrorKey, Cocoa error 1570) which according to the following SO Q/A is an error you get when you try and store an entity with non-optional attributes set to Null.

If I set the attribute to optional this error does not occur. So it seems as though you need to set transient attributes to optional to let core data know that you don't need/want to store a value for the transient attribute


  • How to get weights in tf.layers.dense?
  • How do I keep track of related windows in X11?
  • org.hibernate.QueryException: Criteria objects cannot be created directly on components
  • How to add a user in a different Active Directory Domain in C#?
  • Can I Modify Hibernate/JPA Attribute Dynamically?
  • how to make NSManagedObjectContext dirty (hasChanges = YES) Manually
  • CSS Grid, position absolute an element in a css grid item: IMPOSSIBLE
  • how to get data attributes of dynamically generated element
  • How can I get the full list of running processes on a Mac from a python app
  • Doctrine/Symfony entity generator and generating entity from one table
  • Why cepheus don't send int without quotes to orion?
  • GAE: Way to get reference to an HttpSession from its ID?
  • Java color detection
  • ListItem.Attributes.Add not working
  • Force show.bind execution
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • OOP Javascript - Is “get property” method necessary?
  • Keep this build forever option - Jenkins
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • How to change the font size of a single index for UISegmentedControl?
  • Converting a WriteableBitmap image ToArray in UWP
  • Scrapy recursive link crawler
  • Is there any way to access browser form field suggestions from JavaScript?
  • HTML download movie download link
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Hazelcast - OperationTimeoutException
  • How to make Safari send if-modified-since header?
  • Rearranging Cells in UITableView Bug & Saving Changes
  • How to pass list parameters for each object using Spring MVC?
  • Linker errors when using intrinsic function via function pointer
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • LevelDB C iterator
  • Linking SubReports Without LinkChild/LinkMaster
  • JaxB to read class hierarchy
  • How can i traverse a binary tree from right to left in java?