I have been having crash issues that de spawned quite a few of my villager librarians. They have all switched beds and I was working on moving them back to their place when I broke a job block. The novice villager, with one trade completed, lost its job and trades by either resetting or changing to another job block. If I set another lecturn down, it will become a librarian again but will not keep its initial trade and reset. I break the job block and I have another empty job lying around, it will claim that block and be locked with the initial trade I completed it as a librarian and stay stuck.
Librarian(name tagged)+(Enchanted book x cheap price)+this issue=ocd meltdown and digging holes for several hours.
Related issues
Comments


Thank you for your report!
We're tracking this issue in MCPE-62080, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit

I was able to reproduce this in version 1.20.40.
Steps to reproduce:
Create an isolated village / trading hall 100+ blocks away from any other village or bed or jobsite blocks.
Breed 10 villagers and make sure they all have beds and job sites to which they are linked.
Trade up existing 10 villagers to lock them into their professions.
Now breed 2 or more new villagers and have beds, but too few jobsite blocks. (e.g. 4 new villagers and 2 new jobsite blocks)
Make sure that the new jobsite blocks are not like the existing ones. If you have all librarians for first 10, create two grindstones which will be unlinked.
Try to time the 20 min grow time into adults so that the new villagers all grow into adults during nighttime while sleeping - this is key.
When the just grown and unemployed villagers awake (based on order they awake and try to take existing jobsite blocks) they may link to one of the already existing linked jobsite blocks of a traded up villager, who will relink to a different job block.
IF the traded up villager relinks to a different job type, they will switch jobs but keep their traded level. (there is an element of timing and luck involved here)
Even if you break their block and replace it with a different type, they will never switch back, they are stuck in the "new" job.
I hope this helps someone to find and fix the issue.
I get that a few times with my trading hall