Submit a ticketCall us

Announcing NCM 7.7
With NCM 7.7, you can examine the rules that make up an access control list for a Cisco ASA device. Then you can apply filters to display only rules that meet the specified criteria, order the rules by line number or by the hit count, and much more.
See new features and improvements.

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