web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Validation error selling Fixed Assets

(0) ShareShare
ReportReport
Posted on by 20

Please help, I cant get past this validation error:

Annotation-2019_2D00_11_2D00_25-131451.png

ERROR DETAILS

Error Text: Unit of Measure Code must have a value in Sales Line: Document Type=Invoice, Document No.=102234, Line No.=10000. It cannot be zero or empty.
Error Code: TestField

ERROR CALLSTACK

37(Table 37).OnValidate(Trigger) line 12 - Base Application by Microsoft
37(Table 37).OnValidate(Trigger) line 95 - Base Application by Microsoft

ERROR OBJECT

Microsoft.Dynamics.Nav.Types.NavTestFieldException: Unit of Measure Code must have a value in Sales Line: Document Type=Invoice, Document No.=102234, Line No.=10000. It cannot be zero or empty.
at Microsoft.Dynamics.Nav.Runtime.NavRecord.TestFieldNotBlank(NCLMetaField metaField) in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavRecord.cs:line 2601
at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Unit_of_Measure_Code_a45_OnValidate_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavMethodScope.cs:line 456
at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Unit_of_Measure_Code_a45_OnValidate()
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List`1 beforeHandlers, List`1 afterHandlers) in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavRecord.cs:line 697
at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput) in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavRecord.cs:line 2958
at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Noa46_a45_OnValidate_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavMethodScope.cs:line 456
at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Noa46_a45_OnValidate()
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List`1 beforeHandlers, List`1 afterHandlers) in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavRecord.cs:line 697
at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput) in s:
repo
src
Platform
Server
Prod.Ncl
Runtime
NavRecord.cs:line 2958
at Microsoft.Dynamics.Nav.Service.NsDataAccess.Validate(Int32 fieldId) in s:
repo
src
Platform
Server
Prod.Service
NsDataAccess.cs:line 542
at Microsoft.Dynamics.Nav.Service.NSField.ValidateField(NavSession session) in s:
repo
src
Platform
Server
Prod.Service
NSField.cs:line 277
at Microsoft.Dynamics.Nav.Service.NSField.Validate(NavSession session) in s:
repo
src
Platform
Server
Prod.Service
NSField.cs:line 99
at SyncInvokeValidateField(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.RunInTransactionCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, MethodBase syncMethod, Object[] inputs, Object[]& outputs) in s:
repo
src
Platform
Server
Prod.Service
ServiceOperationInvoker.cs:line 348
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.<>c__DisplayClass28_1.<Combine>b__1(NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs) in s:
repo
src
Platform
Server
Prod.Service
ServiceOperationInvoker.cs:line 729
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.TransientErrorRetryCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, MethodBase syncMethod, Object[] inputs, Object[]& outputs) in s:
repo
src
Platform
Server
Prod.Service
ServiceOperationInvoker.cs:line 369
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.<>c__DisplayClass28_1.<Combine>b__1(NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs) in s:
repo
src
Platform
Server
Prod.Service
ServiceOperationInvoker.cs:line 729
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, MethodBase syncMethod, Object[] inputs, Object[]& outputs) in s:
repo
src
Platform
Server
Prod.Service
ServiceOperationInvoker.cs:line 314

  • Verified answer
    Dirk Profile Picture
    Microsoft Employee on at

    I have not seen this yet.
    I suggest you disable all extensions and try again ... to see if this is related to an extension.
    If it still happens please create a service request for BC support at Microsoft

  • Eduardo Acuna Profile Picture
    20 on at

    Thank you Dirk!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 633 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 419 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 236 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans