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

I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,029 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,226 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,201

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans