I found the error when a comment pointed out to share the data model. The model had the Id property in lower case and because of the case sensitivity of the properties I was unable to get the Id of the data.