"Object reference not set to an instance of an object" Error in Business Central - AL.
Here are the things you should know before answering me: - After some research I got some sources mentioning errors in the code similar to a null reference or similar issue that is causing the problem, but after digging deeply, I'm sure the issue isn't in the code because once I tried to publish without any modifications (literally no modifications) and the error still appeared. - This error started to appear recently after working just fine for months on the same extensions, particularly after the v26.1 update from BC. - The error occurred in 2 extensions in 2 different companies. - For the first time I solved it by incrementing the version in the app.json file by 1. A new app file is created and working just fine. But the error appeared after a while. the second solution I was able to find is to delete the app file which obligate the compiler to create a new app file and the error is resolved, again temporary. - If I try to publish on another Sandbox that I'm currently on it works, but I do believe it's going to crash soon if I kept publishing on it. - The first time I encountered this issue was in 11/6/25 8:00 am (GMT +3). I think it's from Microsoft and not a per-tenant issue. Hope someone can help me with this one. Thanks.