I'm trying to create a patient for location IDs greater than 1000. And it fails giving me the error (please see attachments). It seems that the location ID of values greater than 1000 are being converted to string. This is not observed for location IDs of lower values (< 1000).
Please note that it is not customized code. I'm creating a patient from OpenMRS from the 'Create Patient' link.
Please see the OpenMRS talk related to this on below link
Create a patient by assigning a location with ID lower than 1000. Edit this patient later by clicking on the Edit this Patient link on the Demographics tab of that particular patient, and save it.