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 :
Finance | Project Operations, Human Resources, ...
Answered

Check field with data type int64

(0) ShareShare
ReportReport
Posted on by

Hi guys,

If I want to compare a field with data type int64, is empty or not, what should I use ?

For example there is one table : CustLedgerAccounts. this contain field SummaryLedgerDimension which is int64. I need to create a while select statement that involve this field to be empty.

Something like this, but this is error :

while select forupdate custLedegerAccounts where custLedegerAccounts.SummaryLedgerDimension == ""

&& custLedegerAccounts .AccountCode == TableGroupAll::Table

Thank,

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi VoltesDev,

    You can use custLedegerAccounts.SummaryLedgerDimension == 0 or !custLedegerAccounts.SummaryLedgerDimension

  • Blue Wang Profile Picture
    on at

    Hi VoltesDev,

    Int64 default value is 0.

    docs.microsoft.com/.../integers

  • VoltesDev Profile Picture
    on at

    Hi all,

    just curios, if I'm using sysTableBrowser, those field are empty, not 0. Is it the same ?

    Thanks

  • Blue Wang Profile Picture
    on at

    Hi Volted,

    Are you checking it is empty in SSMS?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi VoltesDev,

    It's just appearance set up for the field. You can check the value on SQL side and for integers (including int64) it's 0.

  • VoltesDev Profile Picture
    on at

    Hi Blue,

    No, it's still in Visual Studio. I'm creating a batch job using SysOperationFramework. Just want to make sure, my query is correct.

    Noted from Sergei, in SysTableBrowser is a display only.

    Thanks.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    SysTableBrowser doesn't always show what is in the database. It can also show a value from related table instead of int64 (RefRecId). So it's always good to check the actual values directly from the database. "Empty" value for all numeric fields is always zero.

  • Blue Wang Profile Picture
    on at

    Hi Voltes,

    Nikolaos has already explained, do you have any other questions?

  • VoltesDev Profile Picture
    on at

    Hi,

    it's cool. thank you all

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    LedgerDimenion fields are integer throughout the system , you can not compare string with integer thats the reason you are getting this error. Compare it with zero.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 672 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 534 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans