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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

(0) ShareShare
ReportReport
Posted on by

Dear NAV Guru,

Help please...

I have recently created a custom table with custom page and realise the document no I used is wrong type (type text instead of code), so i changed the field type.

Now, i can't open the page anymore. error message is "Unable to compare operands of type NavInteger with NavCode". Page must close.

I have searched all the cal code used within the table and properties of the page and cannot find any comparison of the field I have changed with an integer field.

When I try to run debugger, the error message came before I can debug. Any idea what's wrong or how to debug?

Regards,

Susy

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Restarting of NAV Service will also resolve the issue.

  • MBrodie1979 Profile Picture
    20 on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Mine turned out to be a dodgy record in the table. I had a NAVCode to NAVType error. I only had the error on one line in the page. Once i deleted it then all was fine. 

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Finally managed to resolve the issue.

    I deleted the table reference from the Page, save it, and re-add it back.

  • Community Member Profile Picture
    on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Hi Suresh/Tharanga,

    Thank you for your suggestions. I have tried your solutions above and I still encounter the same issue.

    Regards,

    Susy

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Agreed with Suresh. Compiling objects will resolve the issue. (First compile the table and then page). If that does not resolve the error, export those two objects and fob and then reimport it.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,193 Super User 2025 Season 2 on at
    RE: Unable to open custom page with custom table (Unable to compare operands of type NavInteger with NavCode)

    Please compile the two objects and also run from the tools synchronization.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans