Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Restricting the field length in CRM

Posted on by

Hi,

For example  In my CRM, I changed the field length of Country from 100 to 50.

Now in CRM, I will be able to enter only 50 letters in that field.

Now, through Scribe or SSIS if I import a 100 character word, would that country accept that or will it give error?

Please advise.

Thanks

*This post is locked for comments

  • Verified answer
    Wouter Madou Profile Picture
    Wouter Madou 3,392 on at
    RE: Restricting the field length in CRM

    [quote][/quote]

    Hi Wouter,

    If I set the option to truncate and  from the crm UI it accepts only 50 and thought Scribe if there is a 100 character field would it accept?

    Thanks

    You will not get an error since Scribe will truncate the field. In your step order flow (if you would use multiple steps) this is also not considered as a failure.
    So yes, it will accept the first 50 characters and drop the other 50.
    Of course I am under the impression you are utilizing the Scribe CRM adapter for your integration which you should be using. 

    Note: Do not create an odbc connection to do direct updates in a crm sql db :) . (Well, you can do what you want of course, but I would strongly suggest not to do so. )

  • Verified answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Restricting the field length in CRM

    Yes CRM SQL table updating is unsupported, but when you are inserting record using SSIS / Scribe all data is inserted using CRM service or you can say using CRM business logic.

    In CRM business logic attribute field is 50, thats why it will throw error.

  • RE: Restricting the field length in CRM

    Hi Wouter,

    If I set the option to truncate and  from the crm UI it accepts only 50 and thought Scribe if there is a 100 character field would it accept?

    Thanks

  • RE: Restricting the field length in CRM

    Hi Mahadeo,

    Correct me if I am wrong.

    Since editing the CRM Sql table is unsupported, I am assuming still the the field length for Country would  be 100 but when entering it from CRM UI it gives error.

    It is some what confusing to understand the CRM sql concepts.

  • Suggested answer
    Wouter Madou Profile Picture
    Wouter Madou 3,392 on at
    RE: Restricting the field length in CRM

    Hi,

    That depends on your DTS in Scribe.

    If you use the adapter and set the options to truncate, you will not receive an error.

    On the other hand you can set your mapping field to LEFT(Sxx,50) you will not see an error.

    (Same as the truncate option, but limited to one field here.)

    In the event you just do a straight forward mapping, you will receive an error.

    Regards,

    Wouter

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Restricting the field length in CRM

    You will get error if character word is more than 50.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans