Error while reloading Scenes YAML

Dear friends,

I have created a lot of scenes directly in yaml with more than 60,000 lines. Recently I have started getting an error when I reload the yaml configuration through the developer tool. A screenshot of the error is attached. It says “Failed to call service scene/reload. connection lost”.

HA install - On intel i7 PC dedicated to home assistant
Core Version - 2024.3.0
Supervisor - 24.02.1
Operating system - 12.0

Does an error in the logs give more detail?

Thanks for your response @tom_l .

I have restored the HA instance to an earlier backup and its working fine for now. I have yet to paste all the codes for scenes and hope the problem does not come up again.

Now I do not have access to the old logs. If the problem comes up again, I wall share with you.

Do you suggest any do’s or dont’s regarding rebuilding the scene codes?

Make a backup before you start playing with it again.