Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot insert the value NULL into column

We are using Bitbucket 5.16.11 on Windows Server with SQL Server Database, we migrated the server from a different location and everything seems to be working fine but we get these error on the logs:

2020-04-23 14:52:06,901 ERROR [AtlassianEvent::thread-2] xxxx@xxxxx.com KTBNCRx892x3993x0 xx.xx.xx.xx "POST /scm/max/max.git/git-receive-pack HTTP/1.1" c.a.s.i.e.AsyncBatchingInvokersTransformer There was an exception thrown trying to dispatch event 'com.atlassian.stash.internal.event.AnalyticsRepositoryPushEvent[source=com.atlassian.stash.internal.hook.SystemPostRepositoryHook@2b9bfea7]' for the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener.onRepositoryPushEvent(com.atlassian.bitbucket.event.repository.RepositoryPushEvent), listener=com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener@6b52dd83} (monitored)'
java.lang.RuntimeException: There was a SQL exception thrown by the Active Objects library:
Database:
- name:Microsoft SQL Server
- version:14.00.3223
- minor version:0
- major version:14
Driver:
- name:Microsoft JDBC Driver 6.0 for SQL Server
- version:6.0.7507.100

com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.. Listener: com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener event: com.atlassian.stash.internal.event.AnalyticsRepositoryPushEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke..
... frames omitted
Caused by: com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library:
Database:
- name:Microsoft SQL Server
- version:14.00.3223
- minor version:0
- major version:14
Driver:
- name:Microsoft JDBC Driver 6.0 for SQL Server
- version:6.0.7507.100

com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.
... frames omitted
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.
... frames omitted

Checked the  SET NOCOUNT  and it's OFF for the database, any ideas on how to solve this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,927 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you