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 :
Small and medium business | Business Central, N...
Suggested Answer

An implicit conversion is being performed from a value of type 'Enum "Gen. Journal Account Type"' to a value of type 'Option'.

(0) ShareShare
ReportReport
Posted on by 120

Hello Experts,

We have recently upgraded Business central SaaS to latest version-16.4. After upgrade we started getting below errors:

An implicit conversion is being performed from a value of type 'Enum "Gen. Journal Account Type"' to a value of type 'Option'. This conversion can lead to unexpected runtime issues. This warning will become an error in a future release.

pastedimage1599473222145v2.png

Could you please suggest how to resolve this error?

Thanks in advance.

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    This should be a warning and not an error message afaik. it is the typical one related to conversion of option into enum within the base app.

  • Anita75 Profile Picture
    1,165 on at

    Hi All

    I'm still getting the same warning in V18..is there a way to solve this ..I do not want to suppress this warning as it might be an error in the future

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, you should simply change your "Account Type" and "Document Type"... from Option type to Enum type. This is not a breaking change.

    Thanks.

    ZHU

  • Anita75 Profile Picture
    1,165 on at

    Ok ..had a look at the code. The code comes from base app so for example I have this extension looking up purchase header

    MY_RequisitionLine extends "Requisition Line"

    {

       fields

       {

           field(62461; MY_VendorShipNo; Code[50])

           {

               CalcFormula = lookup("Purchase Header"."Vendor Shipment No."

                                                               WHERE("Document Type" = const(Order),

                                                                       "No." = field("Ref. Order No."),

                                                                       "Document Type" = field("Ref. Order Type")

    so  how do I change Document Type above or Order Type as these are not user fields I have control over

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans