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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

Fixed Asset Sales Invoice Error

(0) ShareShare
ReportReport
Posted on by 360

Hi Team,

when i try to sale of Fixed asset using Sales Invoices. it throws an error "Unit of Measure must have a value in Sales Line document" it doesn't allow me to go to next field itself

Somewhere seems to be configuration issue that Unit of measure code is mandated. Could you please let me know where it is set as mandate field.

thanks

pastedimage1568854581231v1.png

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    When do you get the error? after you select the fixed asset no. or during posting?

  • Suggested answer
    Dynamics_365 Profile Picture
    100 on at

    Hi Santhanak,

     Type should be "Fixed Asset" for the sale of Fixed asset and the UOM is not required for this type

    Thanks

  • santhanak Profile Picture
    360 on at

    when i select Fixed asset - it throws an error and comes out. So basically not able to do any further step

  • santhanak Profile Picture
    360 on at

    Hi, I understand. in same environment i have cronus as well. i just tried and it doesn't throw error and was able to select Fixed Asset. But the one we had configured not able to Select FA in Sales Line.

  • Dynamics_365 Profile Picture
    100 on at

    Hi Santhanak,

    Can you post the snapshot of error while performing the action.

    Thanks,

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    I think there might be a customization which is preventing this, try to debug the code and send the screenshot of the breakpoint.

  • santhanak Profile Picture
    360 on at

    please find the error. Let me know if this helps you to give me solution.

    thanks

    Error Code

    TestField

    Error Callstack

    "Sales Line"(Table 37)."Unit of Measure Code - OnValidate"(Trigger) line 5

    "Sales Line"(Table 37)."No. - OnValidate"(Trigger) line 91

    Error Object

    Microsoft.Dynamics.Nav.Types.NavTestFieldException: Unit of Measure Code must have a value in Sales Line: Document Type=Invoice, Document No.=000015, Line No.=10000. It cannot be zero or empty.

      at Microsoft.Dynamics.Nav.Runtime.NavRecord.TestFieldNotBlank(NCLMetaField metaField) in s:

    repo

    src

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans