Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Sync Nav boolean field to CRM

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

  • Suggested answer
    Surmeet Singh Profile Picture
    Surmeet Singh 3,075 on at
    RE: Sync Nav boolean field to CRM

    Instead of True/False try using Yes/No

  • Fritz Camille Profile Picture
    Fritz Camille 580 on at
    RE: Sync Nav boolean field to CRM

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

    Exemple: =Contains(ShowOnWeb, "true")

  • Suggested answer
    Surmeet Singh Profile Picture
    Surmeet Singh 3,075 on at
    RE: Sync Nav boolean field to CRM

    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
    Fritz Camille 580 on at
    RE: Sync Nav boolean field to CRM

    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
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Sync Nav boolean field to CRM

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans