It looks like chicnumber
is configured as "Integer 16" in the Core Data model. But you're assigning a value of 2013037
, which requires more than 16 bits. When you do this, the value is corrupted and you end up with an incorrect value.
Use a larger integer type in the data model. This sample value would fit in a 32 bit integer. Whether you need 64 bits depends on what other values you might get for chicnumber
.