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...
Unanswered

Error: Unable to compare operands of type 'NavInteger' with 'Boolean'.

(0) ShareShare
ReportReport
Posted on by

Hi i'm still new to BC and i'm running into this error while executing the Send Method of the HttpClient ( Same error occurs when using the Get Method directly ). I have no idea why i'm getting the error since i can't see the line of code in said methods that's causing it. Also the same URI + Authorization works perfectly fine in Postman or the REST Client extension.

[img]us.v-cdn.net/.../img]
the Authorization is stored in HttpClient.DefaultRequestHeaders() if you're wondering.

I have the same question (0)
  • Lars Lohndorf-Larsen Profile Picture
    on at

    Hello,

    Are you sure it's the Get or Send line that is causing it / can you share the code? Of course please obscure any URIs etc.

    First suggestion is that you are retrieving Media or BLOB fields, can that be right?

  • John_3843 Profile Picture
    5 on at

    Did you fix the error? Same issue here. I've a HttpRequestMessage with the authorisation in the url. The GET (get's the status) works fine but the PUT (upload a file) returns an error 'Unable to compare operands of type NavInteger with Boolean.'

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans