I'm facing a problem on changing data type of a field from TEXT to Picklist. To avoid any loss of data I took an export of data of the related records on the target org and have updated the field with the valid picklist values only. However when I'm deploying I'm getting this error:
objects/[ObjectAPIName].object FieldAPIName.RecordTypeName) -- Error: Picklist value: [PicklistValue] in picklist: FieldAPIName not found
I created a new picklist field and then it got deployed successfully but as this field is already present on higher orgs correct approach would be changing data type of the existing field.
Can someone point out how do i avoid this error?
Note: I've checked repeatedly the object file(xml) and it is perfect. The field is present with modified data type and picklist values and it is also present on the recordtypes as well.