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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans