⚠️ This issue is fixed starting 1.14.4 pre release 1. Please refrain from asking "when this will be fixed" if you are still on 1.14.3. If you are playing on stable release, you'll have to wait for the release of 1.14.4 to get this fix.
Possible Workaround
Try to replace your villager's working station and wait until they assign themselves to it (during daytime).
The bug
When I trade with a villager and unlock the next trades and then break the jobsite, I try to trade with him and it just quickly closes the trade menu.
How to reproduce
World download: https://mega.nz/#!CDAjUILC!sejI4wMogYGRhkaNS1Ie-9eZdjlpQJ8QRErsNVv-g7c
Open the provided world
❌ Notice the villager just in front of you has its GUI immediately closing
Explanation
Acquiring op on the provided world (open to LAN), running
/data get entity e8a17798-ef05-42c2-9258-a544fb764b29 Brain
shows the villager has no working station assigned to him. Then placing any lectern, the villager will take the job station and his trading will be fixed. Note if you remove the lectern you have just placed, the bug with his trading GUI will start over again.
Related issues
is duplicated by
Attachments
Comments


Confirmed 14.3.2 However I get this one random villagers that I have been trading with for a long time. Mastertrades won't open, they just close right away, not related to destroying the workstation at all.

I just checked all villagers we have traded with and same as ↑Kevin Nelson. Found one villager not yet a Master and can trade with him/her. Unable to trade with any of the others.

What makes the trade UI keep closing is because you maybe destroy their worksites, or the villager can't find their worksites I think. Try to place a worksites that are match to their roles. This issues is happening to me when I try to trade something with a farmer (that already has trade xp) and it suddenly close due their worksite is destroyed, so then i place it again and it works as usual.

I'm having this issue with some farmers in naturally generated villages after updating to Minecraft 1.14.3 Pre-Release 2. So far it has been in villages with two farmers and only one of the farmers is affected (alternatively, it might be that the novices were unaffected while the higher ranks were affected). I did not experience the issue in 1.14.3 or Pre-Release 1 despite trading with them often. (Single-player survival world initially generated in 1.14.2)

Thank you to Syarif Burhan to reply my report, I want to copy what I found from my report.
There are two thing. First my village is quite big and quite complex so some of villager lost cannot go back to work their job. (Look like worksites detection range is not enough.) Seconds because village is big and there are many bell (I'll assume like bell A = area A, bell B = area B). After some of villager lost from area A and go to area B, Minecraft do something to area A like "Well nobody go to work at this work site in area A, I'll find some unemployed and give a work to them." So … after I bring villager who lose back I'll find out there's someone work instead.
Seem village don't support many bell in one village.
This has probably been caused by the fix for MC-152638.

most of my villagers display this behaviour.
there have been no changes to jobsites.

I have custom Villagers on my server, and the only way to make custom villagers work pre 1.14.3 was to make them green coats which doesn't work because they cannot have work stations.

I suppose this is due to the fix of MC-152638 (and relates probably to another issue: MC-153617), concerning the Villager restock during the daytime as Villagers restock around time 9000 more or less and do not update their workstation position until that particular time of day...
Supposedly, when reloading a world from 1.13.2 to 1.14.3-pre3, Villagers for me weren't functioning correctly (loss of custom trades in custom villagers without a profession whom had found a workstation I placed nearby, and so forth); and it was only when I interacted with Villagers summoned without a profession whilst having custom trades that I came across this issue...
Thus, simply concerning the way Villagers interact with workstations which just seem to be unstable for the moment.

I am also having issues with the trade gui closing instantly after interacting with some villagers in 1.14.3 pre-release 3. The thing is it only started after I began using a horse to travel to a village a fair distance from my main base. So that makes me think the player's state might also not always be properly updated when mounting and disembarking from vehicles.

Having the same issue in PR3.
Never destroyed worksite.
Traded fine past Novice.
Happened immediately after moving the villager to the nether through a portal right next to his job site.
Moved back to overworld near my base and it is still occurring.
I had already moved him past Novice so I can't fix.

Confirmed for pre4

Ok, I have fixed the trade UI by placing down a workstation matching their job near them after the move to the overworld.

Same issue here - One particular villager instantly closes trading GUI when i right-click him. He is on the second tier of trading. The rest of the villagers (some leveled up too) seem to be working fine. It started happening after updating to 1.14.3 Pre-Release 4.
The world was created originally in 1.14.2

Confirmed, still does happen in pre4. In one of the villages I've found, there are 5 farmers and I can only interact with 2 of them, because the UI closes immediately for the other ones. They already were levelled up before and the other farmers were still on their first tier, so it may be a problem of them being on higher skill levels.

Can confirm it happening with my Fisherman in particular, he is the highest level in the Village if it matters. Poor Fisherman

Still an issue in 1.14.3 Pre 4. Started in Pre 2. This is a big issue because it is the village and pillage update and I want to work with villagers.

I have observed that sometimes, they start to work again, but I don't know what the circumstances are, and if this will eventually happen for all broken villagers.
EDIT: Adding a bed next to him didnt help, ( there were beds available even without me doing that), but wat fixed it, was picking up his workbench, and placing it closer to him. So it might be pathfinding-related, as he was never visiting his workbench. After he was fixed, he broke again when I placed the workbench back at where it originally was.

They Sort of Fixed it in 1.14.3.
@unknown, how so?

I started having this issue after updating to 1.14.3. it only affects villagers that aren't pathfinding to a workbench (but who already had a profession and I could trade with before). All the other villagers that are using workbenches are unaffected. I tried placing down more workbenches but it hasn't seemed to work so far.
Edit: I also had the same issue Jakene mentioned pre-1.14.3, where new villagers would take on a workbench already being used by another villager, and now only the newest villager to use the workbench can be traded with.

I'm also having the same issue. My village started flourishing in 1.14.2, mostly due to multiple villagers using the same workstation, even though villager rules state one villager per workstation. Now, in 1.14.3, I've noticed that I can only trade with the most recently employed villagers because those are the only ones at their workstations, as the elder villagers just wander around the village and I can't trade with them at all. They don't go back to their stations, or at least I haven't observed them long enough for them to do so

This affects 1.14.3 and I cannot trade with any villagers at all.
We got rid of our workbenches for rolling and we can no longer trade with any villagers.

[1.14.3] I cannot trade at all. I am also having the same issue as Flarp Emerald where a lot of villagers are using the same workstation and I can't do anything about it, 80% of my village are masons.

Updated to 1.14.3 today in Realms. When I attempt to trade with villagers created in 1.14 and 1.14.1, the GUI opens and closes very quickly. Before the upgrade, I had destroyed their workstations and moved them several hundred blocks away.
It does not seem to affect newly bred villagers.

I have this issue in my worlds. Any villager that is above a novice level cannot trade because the menu opens and closes quickly.

How can I repot bugs in Minecraft here?

This seems to only affect existing villagers and custom villagers, summoning a new custom villager does not fix this

I'm a little surprised that 1.14.3 was release with this game-breaker bug.

Just created new villagers in 1.14.3 with this issue occurring after several trades of all levels. Of 12 villagers just created. 4 of them have this issue. One is a novice with two or three trades, the others are Expert. All librarians.

Same issue here, menu opens and closes instantly
No Way to trade

Same issue as everyone else 😞 I think it has something to do with them when they cant claim a work station

Same issue.
I had two Cartographers and only one Cartographer Table. So I build and placed another one, but instead of one of the already existing Cartographers taking it, an Unemployed Villager took it, making three Cartographers in my village.

Appears to happen if you break their workstation. The issue resolves itself after about 10 - 15 minutes if you make the applicable work station available again.

This might be pure perception on my part, but it happened three or four times today in short order, in the 1.14.3 full release. It happened when I had already opened a trading session, but closed it without making any trades. Trying to open another session gave this same "slam shut" effect. It has happened with different kinds of villagers, both with novices and other more experienced craftsmen (craftswomen?)

Having the same issue. Thought my game was bugged and killed off some of my villagers. Hope it is resolved soon.

same issue, seems about 1/3 of the villagers can trade fine, the others immediately drop you out of the menu

It doesn't appear to be caused by breaking a workstation. Our home server has many villagers with the original spawned workstations. The trade GUI is broken with them as well.
Edited typo

I've also seen this bug pop up since 1.14.3. It's unclear what relates the villagers with the possible exception of there having been a raid in both villages that I've seen it appear in (and not in the two villages I've visited that never were raided) so I wonder if they're stuck in panic mode. Villages of all skill levels and types are affected and their workstations and beds are fine. Not all villagers are impacted, for me it's about 1/3 are affected.

I have had this happen with long-time established Master traders from the snapshots and newly converted Zombie villager traders on a snapshot server. For the latter, I've been able to fix it with fiddling with workstations, but with the long-established village of 2 dozen librarians, it seems impossible to figure out which was theirs. Two things seem to be causing this: another villager has either claimed their workstation or the villager wandered too far away from their workstation. Debugging this with a message about the reason the trade was closed would be useful (i.e., "has no workstation" or "workstation claimed by another" plus the coordinates of the workstation).

I had this problem today and I managed to actually solve it! They were a little bit far from the village so I had to use minecarts to move them back into the village. then I broke all beds in the village (most of them actually) and broke some of the profession blocks then I placed them again next to each other inside the village. The villagers occupied the new beds and profession blocks. I left them for 1 or 2 in game days and finally I am able to trade with them without the GUI closing.

I'm having this issue on 1.14.3, with a different context than what I've seen in the other comments.
I had one armor smith in the village, and one blast furnace, then I stopped seeing him around. A new armor smith appeared, presumably to take his place. Now the old armor smith is back (same trades/experience), but the trade screen is doing the flash bug. There is still only one blast furnace in the village so maybe part of the bug is from two villagers sharing the same job site?
I would be curious to see if anyone else has more buggy employed villagers than relevant job blocks.

same issue here, tough i notice its only with the villagers who recently lvled up

This happened to me too. I just created a test world in 1.14.2, made 4 villagers to go through, then after I tried the same test world with 1.14.3, one of the villagers acted like this. UI just flashed and closed when I tried to trade. This was a villager I leveled up on version 1.14.2, and when trying to interact on the never version it's like this.

same issue, only thing is, only my old villagers I can't trade with while new villagers with new jobs I can trade with. I also noticed when I had a librarian that I kept for a trade, his GUI would quickly blink but when I put a pedestal it worked normaly

Just happened to me. I had the glitch with one blacksmith but not another, and then when I tried to create a profession for one by placing down a lectern I had the same glitch.

Same with me, but only with most villagers, Apprentice rank or higher especially.

Having similar issues, I am able to trade with Clerics but none of the other villagers. I have several different types that were in this village from previous versions.

I'm also having the same issue only its with all the villagers with jobs from before update 1.14
so my master librarian ,Fletcher ,and cartographer aren't trade able with any more.

Also having this issue with a librarian that is Journeyman.
A video/world download of mine is here: https://bugs.mojang.com/browse/MC-155418

I have not destroyed or moved the workbenches
As I test I used lava to kill the villagers that had the issue
Once a new villager took their place I traded with them until they were above novice.
Now I am unable to trade with them
Added world provided by @unknown, and has found an explanation to the bug, which fixes the issue for this world.

This happened to me but in addition, one of the villagers it happened to was trading mending, so I traded with him once to lock the trade. But then his GUI wouldn't open up. Finally when it did his trade had changed and he no longer traded mending, and I couldn't change his trade because I'd traded with him already.

I just encountered this issue and suspect it's related to more than one villager using the same jobsite, (or conversely, 1.14.3 no longer allows multiple villagers to use one jobsite, as had been occurring in previous versions).
-Placed Smithing Table, unemployed villager took the profession of Toolsmith, (let's call him Tool#1).
-Tool#1 didn't have a coal trade, so I destroyed the workstation and visibly saw the toolsmith turn back into an unemployed villager.
-Placed the Smithing Table a second time. An unemployed villager took the profession. I honestly have no idea whether it was the same villager or a different one, but let's call him Tool#2.
-Tool#2 had a coal trade, so I made several trades with him and upgraded him to level 2.
-At some point Tool#1 reappeared, giving me two toolsmiths and one smithing table.
-Tool#1 will offer trades, Tool#2 will not.
-Destroyed smithing table again with both Tool#1 and Tool#2 in sight. Tool#1 immediately reverted to unemployed, Tool#2 maintained the appearance of a toolsmith. I moved Tool#2 away from former Tool#1, then once again placed the Smithing table at Tool#2's feet. I can now trade with Tool#2.
Hopefully this issue can be fixed in a 'tidy' fashion. I have a LARGE village that was suffered/prospered from the runaway population issue in earlier versions of 1.14. That village hosts many villagers who share a jobsite. There is one stone cutting table and two Masons. One brewing stands and four clerics. Two lecterns and eight Librarians. Etc. Etc. It would be a nightmare to have to sort out who needs a jobsite. Hopefully prior existing villages can somehow be grandfathered in .

I don't believe it is related to villagers using the same worksite. We have a village with one mason and one mason worksite. The trade UI flashes and disappears with him/her as well.

even the temporary workaround doesn't work for me. the jobsites just get taken by free villagers when i replace them and the original leveled up villagers still can't be traded with.
@unknown Place more worksites then until the ones without worksite get one. Having op permission to be able to read entity data can help too.

Just ran into this issue with a well developed village (1.14.4). I had several farmers leveled to master, moved a bunch of compost bins to make space for new planting, and then couldn't open the trade GUI with anyone save the newest (untraded) farmers.
I found a workaround to this problem. I moved the master farmers to a villager trading area (about 80 blocks away) and gave them their own work station (compost bin). This worked repeatedly (about 7 or 8 farmers). They retained their trades and discounts.

Hopefully 1.14.4 comes out soon. This bug broke my whole minecraft world lol.

This is a really bad advice or "solution" in how to deal with this issue. This happens first place because the functioning of villagers continue to be retarded, if not actually buggy. This happens in first place because the villagers don't tend to stay around their workblock as it was supposed to, they stray too far away, and then someone else takes a workblock that should not be available. Then proposing to solve it by placing a new workblock implies there is actually some intelligence in the villagers. I had that issue, one composter but two farmers. Built a second composter and what happens is a third, unemployed villager will take the work bloc. I took the workblock away and replaced it and got a fourth farmer. The same issue happens with beds, you place new beds to deal with a shortage of those and what happens is that new villagers breed.
The intention behind the new update is great, but the AI behind the villagers continues to be faulty, unpredictable and unmanageable. To try to avoid those problems you need to fence the village around, have internal gates, basically make it an open air prision.

The whole villager/pillager aspect of the game (the whole point of the update) seems to still be broken after several updates. We didn't seem to have these problems before Microsoft took over. The whole " put it out and resolve the issues later" culture would appear to be here to stay with all major developers.
⚠️ This is not a discussion tracker. Please refrain from making irrelevant comments.

Haha, I rest my case

The "workaround" solution doesn't "work" anyway. A new villager (that you didn't make a bed for in the first place) just comes and takes the new workstation.

I does not have this issues when I was playing the server with version 1.14.2.
Since I updated the server to 1.14.3, most of the villagers do flash the trading pages.
And when I wanted to try downgrade the server version back to 1.14.2, about 98% of villagers disappeared. (Same world. I have saved the world before stopping it. Loading back the copy, villagers are still there.)

when is this going to be fixed????
I need a saddle the only way to get one is from a Master-level leatherworker. Every time I get one above apprentice I am unable to trade with them.
This is the same for my cartographer, toolsmith and armorer
NONE OF YOUR WORK AROUNDS WORK.
As a test I have used lava to remove the villager with the issue. A new one appears. I trade with them. I was able to trade with the cartographer the last time I played but now I cannot. This time the villager is still apprentice level. Now I go up to them with something in my hand and they show a gem. THE TRADING MENU WILL NOT STAY OPEN.
A LARGE PART OF THIS GAME REVOLVES AROUND VILLAGERS. HOWEVER IF YOU TRADE WITH THEM EVENTUALLY THE BUG SHOWS ITS FACE.
IT IS TIME FOR YOU TO FIX THIS AND STOP GETTING YOUR FEELINGS HURT WHEN SOMEONE FINDS ONE OF YOUR BUGS AND REPORTS IT.
THIS IS IN ALL CAPS SO PERHAPS YOU WILL PAY ATTENTION.

these are probably duplicates because it has not been fixed and it feels like we are being ignored
This has not been fixed it has regressed in the new version!
I AM RUNNING 1.14.3
IT IS NOT RESOLVED !!!

I found that these villagers are jobless villagers thats not assigned to work bench. But they won’t become jobless or reassign themselves to another profession. I just burn them and let new villagers to assign themselves to each workstations.

As far as i can tell they are not jobless
They have an outfit and a menu that opens showing who they are
None of the workbenches have been moved
The last time I played they worked this time the menu opens and closes instantly
I only have one cleric in my village. The last time I played I was able to trade. Today I am unable to trade with the Cleric.
I already burned every single villager with a menu that would not stay open. They were replaced with new villagers. I traded with them for a while. Now I am unable to trade with some of them.
A big part of the game is to level up the villagers so you can trade for certain objects, ex saddle,. that you cannot create yourself. However every time I level up a villager to the point they have what I am looking for the trade menu will not stay open.
In software when a bug creeps back in we call it software regression. It is usually caused by a bad merge or a bug fix that was not merged into the release branch.
Seeing that they say it was fixed in Pre-Release 2 it looks like someone forgot to move it into the release version.
⚠️ This issue is fixed starting 1.14.4 pre release 1. Please refrain from asking "when this will be fixed" if you are still on 1.14.3.
If you are playing on stable release, you'll have to wait for the release of 1.14.4 to get this fix.

If lack of job-site block is the cause, then we have another bug here: Some villagers are losing their assignments to job-blocks for no good reason. In my recent village, many of my villagers have been turning untradable even though I have not disturbed any of the job-blocks in the village. Should a separate bug report be filed for that?

I haven't seem to get this issue. Does it only happen when it comes under a certain block and make it "locked"?
:info: This site is for bug tracking only, it is not meant to be a support platform nor a discussion forum. For informations about the next release, official communication channels are made via the blog posts on minecraft.net or via the Minecraft staff personal twitter accounts. Do not ask for release date, it will be publicly known whenever it is posted on these channels.

I have a similar issue but it did not involve breaking job blocks. I updated the game, spent a few day cycles building, then tried to trade with a villager while it ran to a bed to sleep. I didn't break the job block so it either had trouble reaching the block or trying to trade at night caused a similar bug. edit: breaking and replacing the blocks fixed it. I couldn't get it to happen again at night so that part was probably coincidence. I also had jobless villagers stealing ownership of the block from the original ones and had to put out more job blocks for them.
@@unknown We have to wait and see if 1.14.4 will solve your issue. If you want to test it already, you can download the latest pre-release version of the game (enable snapshots in your launcher).
⚠️ Make a backup of your world before trying it in any snapshot version (the game menu will interactively ask you for making a backup before loading your world, proceed from there).

I wanted to report that playing in 1.14.3 the issue for me was simply the lack of beds and workstations. I didn't have one for each villager. Once I gave each of them both, they all work fine now.

This bug is not fixed. I have the up to date java version, still bugged. It can be worked around by either killing the villager or resetting job site block but that nerfs his skill lvl sometimes back to novice.
@@unknown Fix version is 1.14.4 which hasn't been released yet.

This bug about villagers closing Gui's, has not been fixed in the latest snapshot 1.14.4 pre-release 6, hopefully it will be fixed soon.
@@unknown If you still experience this issue in the latest snapshot, please open a new ticket with a world attached.

Somebody claims this is "fixed". What I have discovered is that every villager whose trade screen had been blinking in 1.14.3 was deleted by the upgrade to 1.14.4. My affected village has fewer than half as many villagers as before. Among others, half a dozen masters offering painfully developed (unlocked) wondrous trades – all gone. Not only did I lose their trades, but I lost 6 whole sets of armor I had dispensed upon them to protect them from raids.
It appears that Microshaft's "solution" to the "villager-trade blinks out" bug is to catch the exception and vaporize the affected villager from existence. That may satisfy a programmer who obviously has never invested any time playing, but I think this "cure" is worse than the disease. And it gets worse: Another villager vanished right in front of my eyes shortly after becoming a master in 1.14.4.
Village play is completely and utterly broken.
I am not happy 😞
Perhaps MC-153904 is your issue?