Link to home
Start Free TrialLog in
Avatar of PtboGiser
PtboGiserFlag for Canada

asked on

Unable to modify one record in table

Wihthin one table have not been able to modify a record all other seems to be fine what would "lock" this one? It was orginally populated with a value of 122 then switched manually using  a GIS program(Manifold) to be County of Hastings. This one record won't change.

Its just a normal nvachar(100) column type i want to put the name into and not the ID.
Why would all other records allow a change but not this one?
Capture.PNG
Avatar of Bradley Fox
Bradley Fox
Flag of United States of America image

What is the error you get in Query Analyzer when you issue the update statement?

UPDATE sometable SET somecolumn = 'NewValue' WHERE primarykey = 1234

Open in new window

Avatar of PtboGiser

ASKER

update dbo.Segment_Outside_FDM
Set dbo.Segment_Outside_FDM.[Left_Bell_Twp_Name] = 'County'
Where dbo.Segment_Outside_FDM.ID = 13


error
Msg 6522, Level 16, State 1, Procedure Segment_Outside_FDM_upd, Line 1
A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry":
System.ArgumentException: 24144: This operation cannot be completed because the instance is not valid. Use MakeValid to convert the instance to a valid instance. Note that MakeValid may cause the points of a geometry instance to shift slightly.
System.ArgumentException:
   at Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid()
   at Microsoft.SqlServer.Types.SqlGeometry.STEquals(SqlGeometry other)
.
The statement has been terminated.
ASKER CERTIFIED SOLUTION
Avatar of Bradley Fox
Bradley Fox
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great Thanks for the links. problem solved