Submit a ticketCall us

AnnouncementsFace your biggest database issues head-on

Our new eCourse helps you navigate SQL Server performance blocks by teaching you how to recognize and deal with the three DBA Disruptors: Performance Hog, Blame Shifter, and Query Blocker. Register today to learn how to defend your environment and fend off menacing disruptions.

Register for your free eCourse.

Home > Success Center > Network Performance Monitor (NPM) > NPM - Knowledgebase Articles > Cannot insert the value NULL into column 'FileId', table 'NetPerfMon.dbo.MapStudioFiles

Cannot insert the value NULL into column 'FileId', table 'NetPerfMon.dbo.MapStudioFiles

UPDATED August 9, 2016

Overview

The following error appears when creating a new map in Network Atlas:

2016-07-14 13:09:03,254 [59] ERROR SolarWinds.InformationService.Core.InformationService - (null) Exception caught in method Invoke
System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'FileId', table 'NetPerfMon.dbo.MapStudioFiles'; column does not allow nulls. INSERT fails.
The statement has been terminated.
at SolarWinds.InformationService.Verb.VerbExecutor.Invoke(Object hostInstance, Object[] parameters)
at SolarWinds.InformationService.Verb.VerbExecutorContext.Invoke()
at SolarWinds.InformationService.Core.InformationService.InvokeInternal[T](String entity, String verb, Action`1 setupParameters, Func`2 extractReturnValue)
at SolarWinds.InformationService.Core.InformationService.Invoke(String entity, String verb, XmlElement[] parameters)
ClientConnectionId:1d696148-183f-4837-858f-a0ed7f65271c

Environment

  • All NPM versions
  • Network Atlas 1.14.0.42 on any system

Cause 

There is a missing constraint on the table.

Resolution

Run the following SQL commands:

ALTER TABLE [dbo].[MapStudioFiles] ADD CONSTRAINT [DF_MapMakerFiles_FileId] DEFAULT (newid()) FOR [FileId]

ALTER TABLE [dbo].[MapStudioFiles] ADD CONSTRAINT [PK_MapMakerFiles] PRIMARY KEY CLUSTERED ([FileId] ASC)

 

Last modified

Tags

Classifications

Public