Using the /fill command to replace specific area of blocks works and in the same time it doesn't. I imput the same cordinates to fill a specific area with lava and while it sometimes works, in other atemps it doesn't work!
example:
i imput /fill -461 67 1201 -417 67 1245 lava 0 replace air and
/fill -461 67 1201 -417 67 1245 air 0 replace lava and they suposetly both work
however after i put it in a command block i recieve the "cannot fill blocks outside the world" error and after i try to do the command again in the chat i get the same result, after another try it magically starts working again for an unknown reason!
Video proof:
https://drive.google.com/file/d/1wHUw95KSMQdQSlG-hLhhbp75k0U3DYRQ/view?usp=share_link
Thank you for your report!
However, this report is actually a duplicate of MCPE-154009.
Basically, what's going on is that the area covered by the command is outside of your simulation distance when you try to execute it near the command blocks. When you get closer, the command can be properly executed because it is inside the range.
If you have any additional comments or information you'd like to add, please head over to the parent ticket I linked above.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki