Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

two options mapping kingsway ssis

Posted on by 570

HI,

I am doing data migration from Excel sheet to CRM 365 using Kingsway.

I am getting 'Yes', 'No' for two options field, when i am mapping it to crm boolean field i am getting error.

Can someone let me know how to map 'Yes' 'No' to CRM boolean field.

Thanks

*This post is locked for comments

  • Suggested answer
    balakrishna uppala Profile Picture
    balakrishna uppala 570 on at
    RE: two options mapping kingsway ssis

    Thanks Adrian,

    It solved the issue.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: two options mapping kingsway ssis

    Hi bala krishna,

    That is what I am suggesting. You will need to write an expression for each conversion in your Derived Column Transformation Editor.

    (DT_BOOL)(ColumnName == "Yes" ? 1 : 0)
  • balakrishna uppala Profile Picture
    balakrishna uppala 570 on at
    RE: two options mapping kingsway ssis

    Hi Adrian,

    I tried to type cast using Data Conversion component in SSIS but i get error from import as  'Data conversion value is 4, cannot truncate...etc'.

    Are you suggesting something like this in derived column,

    [field]=="Yes"?(DT_Bool)1:(DT_Bool)0

    If i have 15 boolean fields, do i need to write for all of these?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: two options mapping kingsway ssis

    Hi bala krishna,

    You need to convert your "Yes" and "No" String values to Boolean values by using a Derived Column Transformation in SSIS.

  • balakrishna uppala Profile Picture
    balakrishna uppala 570 on at
    RE: two options mapping kingsway ssis

    Error info:

    System.Exception: Error: Failed to set field 'new_police' value to 'No' for entity 'new_abc' (field type: Boolean, value type: String). System.FormatException: String was not recognized as a valid Boolean. (SSIS Integration Toolkit for Microsoft Dynamics 365, v10.2.0.6972 - DtsDebugHost, v14.0.3002.107) (SSIS Integration Toolkit for Microsoft Dynamics 365, v10.2.0.6972 - DtsDebugHost, v14.0.3002.107)

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans