web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Object reference not set to an instance of an object.

(0) ShareShare
ReportReport
Posted on by 15

Hi everybody,
i'm facing the following error while publishing an app in VS Code:
The request for path /***/dev/apps?SchemaUpdateMode=forcesync&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: Object reference not set to an instance of an object.

The error comes up when i use Enum variable, for example:
EnumVar := EnumVar::Value1;

Do you have any suggestion?

Thanks

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    AL language version you're using? Environment version where you're deploying?

  • Riccardo_ Profile Picture
    15 on at

    IT and 14.0.34251

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    I mean version of the AL language extension you're using. 5.x? Is the project created with the correct target (3.0)?

  • Riccardo_ Profile Picture
    15 on at

    Sorry, is 3.2

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Please check that you're using the currently available AL language extension published on the VS Code marketplace. This is working correctly.

  • RTWColumbus Profile Picture
    10 on at

    Did you get any other suggestions re this - I have the same issue with runtime="3.2", @stefano .. you cant update the runtime as that is what they clients system is running on otherwise you get an error when installing "The runtime version of the extension package is currently set to '6.6'. The runtime version must be set to '3.2' or earlier in the app.json file in order to install the extension package on this server"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,937 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,031 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 700 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans