# Cannot Assign A Primary Key

**URL:** <https://community.dreamfactory.com/t/cannot-assign-a-primary-key/3968>\
**Category:** Schema & Data\
**Created:** [July 27, 2017, 11:23am UTC](https://community.dreamfactory.com/t/cannot-assign-a-primary-key/3968 "2017-07-27T11:23:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EM\_FLK](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/em_flk/32/953_2.png) [@EM\_FLK](https://community.dreamfactory.com/u/EM_FLK)\
**Post date:** [July 27, 2017, 11:23am UTC](https://community.dreamfactory.com/t/cannot-assign-a-primary-key/3968/1 "2017-07-27T11:23:49Z")

</div>

For some reason when I am on the Schema tab on the Dreamfactory directory I cannot set any of the fields as primary keys as the field is greyed out. Are there any known fixes for this.
