Submit a ticketCall us

Quickly Address Software Vulnerabilities
Patch Manager is an intuitive patch management software which extends the capabilities of WSUS and SCCM to not only patch Windows® servers and workstations, and Microsoft® applications, but also other 3rd-party applications which are commonly exploited by hackers. Learn More.

 

Home > Success Center > Network Performance Monitor (NPM) > 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
16:45, 8 Aug 2016

Tags

Classifications

Public