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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Sync Nav boolean field to CRM

(0) ShareShare
ReportReport
Posted on by 580

Hi all,

I have a sync problem between a Nav boolean field and the CRM. I use the fonction

If(condition,trueValue,falseValue) in the connector mapping.

I get a validation Error: Assignment of Int32 to Bolean may result in an either a loss of precision or an OverflowException at runtime.

Assigning a string value to a non-string value may result in a formatExcwption at runtime if the string is not a compatible format.

This is what I use: =if(Assembly BOM, 1, 0). I tried it with "True" "False" and I get the same errors.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,278 Super User 2026 Season 1 on at

    If you are using Assembly BOM from item card, then please remember it is not a normal field it is a flowfield and so you have to CALCFIELDS on navision to get the value.

  • Fritz Camille Profile Picture
    580 on at

    I've tried it with other field other than Assembly BOM, and I get the same error.

    I have a Two option box in my CRM. My field in Nav is a bloean.

    I put in the connector the following statement:

    =if(EqualTo(License, "No"),0,1)

    I then get a Validation error: Assigment of an Int32 to Boolean may result in loss of precision or an overflowexeption.

  • Suggested answer
    Surmeet Singh Profile Picture
    3,075 on at

    Hi Fritz,

    It looks like the issue is of field type. You can verify the field datatype in the webservice and as well map that nav field to some text field in CRM and see what data is coming from NAV.

  • Fritz Camille Profile Picture
    580 on at

    I used the Contains (Text, texttofind) : Boolean function, but that also did not work.

    Exemple: =Contains(ShowOnWeb, "true")

  • Suggested answer
    Surmeet Singh Profile Picture
    3,075 on at

    Instead of True/False try using Yes/No

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans