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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

two options mapping kingsway ssis

(0) ShareShare
ReportReport
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

I have the same question (0)
  • balakrishna uppala Profile Picture
    570 on at

    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)

  • Suggested answer
    Adrian Begovich Profile Picture
    1,032 Moderator on at

    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
    570 on at

    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
    1,032 Moderator on at

    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)
  • Suggested answer
    balakrishna uppala Profile Picture
    570 on at

    Thanks Adrian,

    It solved the issue.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans