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

Announcements

News and Announcements icon
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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 595 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 364 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 331 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans
Liquid error: parsing "/blogs/post/?postid=%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))," - Too many )'s.