Adding value to Structure breaks everything related to it

Hey guys, hope you’re doing great.

So, just faced a very inconvenient bug right now, and gonna do my best to try to explain it.

I created this structure called Quest Rewards Structure. On it, I had two fields:

  1. int Gold
  2. int XP

Ok, created my entire Quest System. It was working perfectly and using this structure a lot. Suddenly, I felt the need to enhance it by adding another field to the structure called Items, which is an array of another structure. I tapped save, and after the first time I ran the game locally, it compiled and threw me a huge error message saying that several blueprints were facing issues.

When I saw it, I thought it would be something related to this change I’ve made. And yes, I was right.

Absolutely ALL THE VARIABLES that were somehow implementing that structure just VANISHED or GOT UNLINKED. Yes! Look:

And this is just 5% of the damage this bug caused me.

Also, another problem I’m having is that I can’t create variables in a Blueprint that had a variable somehow related to this structure. It simply doesn’t allow me to add. Sometimes after restarting the Engine, on the first attempt to create a variable in a broken Blueprint, it creates another MyBlueprint tab and, sometimes, appends the create variable prompt, which doesn’t allow me to create a variable with a name that was previously used, even this not being shown in the variables list anymore:

The logs (just from a single Blueprint):

I have no idea how to fix it or how to rollback. Unfortunately, my last commit is very far from the current
state and wouldn’t help me that much.

At this point, this post is a mere bug report rather than a solution request, but if you have anything that could help me fix this, please, do it.

Finally, sorry for not providing better details regarding this issue. It’s very unpredictable and I just can’t diagnose with precision what’s going on.

Ok. I was hopeless, but hopefully, I managed to fix it, and it was quicker than I thought.

The @xeoncat’s answer on the thread “Variable referencing Structure is gone and I can’t compile” solved my problem, but I think this topic is still relevant since this is definitely a bug (I really don’t expect this to be the expected behavior, lol.)

I thought this has been fixed. But if it is the same problem, then the modified structure is inside another, it’s this one that should be bugging. My solution was going to the larger structure, delete the field with the modified structure and make it again, save it, and compile all the blueprints that are throwing the error.
I don’t know if this happens in a clean project, if it does, it’s probably a good idea to submit bug report

@xeoncat By “clean project” you mean… a fresh one? We can consider mine’s almost vanilla, and it happened anyway. I’m 100% sure this is prone to a bug report. Please, Unreal, don’t leave this post to fall into oblivion. And once again xeoncat, THANK YOU SO MUCH for saving hours of my work! Cheers!