Summary: In a trading hall setup, where villagers in individual 1x2 (and possibly 1x1) cells have bonded to a workbench adjacent to them, they will sometimes un-bond from the workbench. Being trapped in their cell next to the workbench, they will stop unlocking their trades off their previously-bonded workbench. Other nearby unemployed villagers can also then bond to the workbench.
Also see the YouTube video I made about this: https://youtu.be/Qpw5ub2TR_A
To Reproduce: (I hope you can reproduce. I've heard several people report this from my trading hall tutorial and have reproduced it myself.)
Place a villager in a 2x1 cell surrounded by solid blocks, with 1-wide by 2-tall opening with a workbench on the bottom half of the opening and a trapdoor, slab, or nothing on top of the workbench. I've tried this with a lot of variations and they all enable the bug. [See screenshots of the villager holding cells and the second villager in a minecart nearby who has picked up the workstation after the first un-bonded from it].
Make sure they have bonded to the workbench. This bug should manifest whether you advance their profession past Novice and they have refreshed their trades a few times, or whether they have never been traded with.
Place an unemployed villager outside the cell, but still able to path-find to the workbench the initial villager has bonded to. The villager can also be in a minecart. This second villager is not required, but helps illustrate the issue.
Keep advancing through several days of Minecraft time using villager-related times of day. [Time Set 0, Time Set 2000, Time Set 6000, Time Set 9000, Time Set Night] The un-bonding can happen after a few days or even up to 20 days, in my experience.
Observe that eventually the villager in the cell will un-bond from its workbench, and the new unemployed villager will suddenly become the profession type associated with that workbench. This other villager will also walk over and work at that workbench, which the original villager in the cell will be unable to work at it or unlock their trades. If the villager in the cell was still a Novice, they will become unemployed. [See attached video file]
If the first villager was a Novice, kill the the second villager that has bonding to its old workbench. Watch the first villager try to re-bond to the workstation, and you may observer the "flickering" issue as it tries to pick up its workstation again. [See second video file attachment]
Implications: This bug may break any sort of traditional organized trading hall setup. Even an open room full of workbenches and wandering villagers could result in all of them eventually un-bonding and failing to unlock trades.
Reference: Please see the video file I've attached to this report. This bug has been observed by me, and also reported by several people in the trading hall setup from this tutorial: https://www.youtube.com/watch?v=Lk3yLDCDdRA Note that after 1.14.0, the hall was modified to place a slab or trapdoor over the workbench instead of between the villager and workbench, to allow open path-finding that the villagers now require. See also the screenshots.
Related issues
is duplicated by
Attachments
Comments


I've had this happen in my larger village. Villagers seem to get unbonded with the whole village including the meeting spot, the job site, and sometimes the bed. and just lay there. a couple of them hang out where the old the old meeting spot use to be until I moved it to a more secure spot. The only way I found to rebond them was to move them near it with a boat and when everyone was working, to let them work. (not sure if that will help troubleshoot)

I just reproduced it again using a slightly different holding cell for the initial villager, and I didn't trade with this villager at all after it bonded to the adjacent lectern. I added the second free villager, placed and broke a blast funace workbench for it a couple times and it went unemployed again. Then I put this second villager in a minecart nearby and advanced the times of day. At a certain point, when I advanced from time 0 to time 2000, they swapped the workbench, so the one in the trading hall cell lost its bond and the second villager claimed the lectern workbench instead.
[media]I'm really not sure if the minecart is necessary, or even giving it a profession briefly before breaking its workbench right away, but bringing additional villagers in on minecarts is how most trading halls are assembled. If this issue arises from the villager in the trading hall cell somehow feeling like it momentarily lost its pathfinding to its workbench, such that it has to give up its bond, it is really strange that this is happening in a 1x2 space next to the workbench. The villager in the holding cell is standing on pressure plates, as per my trading hall setup, but I don't see how that would matter either.

Here's a video of me reproducing this issue. A villager bonded to an adjacent lectern is in a 1x2 cell as one would need for a trading hall to allow villagers to pathfind to a workbench. He is just standing on grass. Another unemployed villager is wandering nearby. I advanced the time of day between 0, 2000, 6000, 9000 and 13000 over and over. Eventually the first villager un-bonds from the lectern and the second villager then claims the lectern.
It can happen after cycling the times 2x, or after cycling through the times 20x, seemingly in a random fashion. I'm not sure if it's related to exactly where the villager is standing in relation to its lectern, or what. It can happen whether the villager is a Novice or higher in their profession. The villager often seems to not pick up its workstation after losing it, even if the second villager is killed, but sometimes it does re-bond. :/
I'll probably be doing a tutorial about this soon for YouTube in case this feature stays in the final release, but wanted to include this clip.
[media]
Last comment, hopefully. I've found that if the villager has a 2x2 space to walk around in next to the adjacent workbench, then I haven't been able to reproduce this bug. Any smaller the space, and the villager can un-bond from its workbench and then have a hard time re-bonding to it unless I break and re-place the workbench in the same space.

I can also confirm in 1.14.1. While monitoring the villager, I've noticed it also forgetting its bed and meeting point despite them never being broken. It seems the larger the space, as indicated in the bug report, the lower the chance of POI amnesia.

Can definitely confirm 1.14.2 prerelease 1 and 2. This had caused major issues with my trading hall and makes villager trading nearly impossible as you can no longer trade after a little while. Please get this fixed asap as it breaks a major mechanic.

Here's another YouTuber's video about this: https://www.youtube.com/watch?v=TXei5-fAxZ0&t=3s

Guys atm, the only way to get the villager right next to the workstation to assign it, is if it's at least 1 block away from it, also keep in mind, if you have multiple setups - like a trading hall for example - you can block their path finding with carpet. I have done this for my trading hall and it works perfectly. If they dont restock for some reason, you can just break the workstation and replace it and wait for the right time for them to work and they should restock again.
here is a few pictures of it

[media]
[media]
[media]
[media]
[media]
[media]

dojofemy, what version are you using for this? 1.14.2? I wasn't able to get them to re-bond by breaking and replacing the workstations, but I'm wondering if it's because I didn't leave blocks free on either side of the workstations. Out of curiosity, what are the buttons for in your build? Your build looks sort of like a combination of WeirdWilliam's and Cortezerino's!

This issue seems to have been fixed in the 1.14.3 pre-release 1 and was actually redundant with some other bug reports on this topic. Thanks guys!

I'm getting this bug again in 1.14.4
[media]

I am getting this issue in Bedrock, but without a trading hall. I have 3 leveled-up farmers, I have not touched their work blocks, but they have been shoved aside by jobless villagers who then became farmers. Now my leveled farmers are not renewing their trades.