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

I have the same question (0)
  • 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

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 > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,197

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,673

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans