by Sudhanshu Verma.
Due to some reasons I could not upgrade to M29 or M3
When in my external database table Gender field have value 'Male' or 'Female' and when I run db sync process does not take these value and at the time when user login in Moodle it gives error. Error tell that field Gender can not be null.
But when in external database when I convert value Male->0 and Female->1 and run db sync then these values are Moodle taking and user profile fields are property updating.
This is happening with all menu types of profile field.
I have done some changes in the auth.php's get_userinfo($username) method after that It is working.
Thankyou so much for your great support