"Object reference not set to an instance of an object" Error in Business Central - AL.

Someone Not Smart 0 Reputation points
2025-06-12T11:16:15.0366667+00:00

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.

Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.Publishing: The process of preparing, producing, and releasing content for distribution or sale.
712 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.