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

Community site session details

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

The following SQL error was unexpected: Cannot insert the value NULL into column ...

(0) ShareShare
ReportReport
Posted on by 305

Hi

I am trying to add a few fields in Resource Table. When I try to publish my extension, the following error is thrown in VSCode:

The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=forcesync&DependencyPublishingOption=default failed with code 422. Reason: The following SQL error was unexpected: Cannot insert the value NULL into column 'Extension', table '<id>.dbo.CRONUS UK Ltd_$Resource$<id>'; column does not allow nulls. INSERT fails. The statement has been terminated.

Please Note: 'Extension' is the name of my field here.

What is the cause for this and how can I resolve it?

Thanks

Khudeja

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: The following SQL error was unexpected: Cannot insert the value NULL into column ...

    Have you changed something on this "Extension" field (like its data type for example) from version A to version B of your extension? Have you tryed with SchemaUpdateMode:Recreate?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,707

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,228 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans