Skip to main content
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 30

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.

  • John_3843 Profile Picture
    5 on at
    RE: Error: Unable to compare operands of type 'NavInteger' with 'Boolean'.

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

  • Lars Lohndorf-Larsen Profile Picture
    on at
    RE: Error: Unable to compare operands of type 'NavInteger' with 'Boolean'.

    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?

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans