Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error in generating OptionSets.cs Microsoft Dynamics CRM 365

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

After the migrating from Dynamics Crm 2011 on-premise to CRM 365 on-premise (culture ru-RU) I need to generate new OptionSets.cs.

If I use XrmToolBox EarlyBoundGenerator I get an error : Error in format of Transliteration file C:\Users\systemuser\AppData\Roaming\MscrmTools\XrmToolBox\Plugins\CrmSvcUtil Ref\alphabets\1049.json and no *.cs file is created/

Also I tryed to use GetOptionSets.bat file with code: 

CrmSvcUtil.exe ^
/codewriterfilter:"Microsoft.Crm.Sdk.Samples.FilteringService, GeneratePicklistEnums" ^
/codecustomization:"Microsoft.Crm.Sdk.Samples.CodeCustomizationService, GeneratePicklistEnums" ^
/namingservice:"Microsoft.Crm.Sdk.Samples.NamingService, GeneratePicklistEnums" ^
/url:server/.../Organization.svc ^
/out:OptionSets.cs ^
/u:User ^
/p:**********^
/d:domain ^
/il:true ^
/serviceContextName:OptionSets

With GetOptionSets.bat I get:

1. An error: "Microsoft.Xrm.Tooling.CrmConnectControl Error:2 : Error Message: Failed to Encrypt Configuration File! "

2. my OptionSets.cs with wrong results: 

" [System.Runtime.Serialization.DataContractAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "8.2.1.8676")]
public enum account_statuscode
{
[System.Runtime.Serialization.EnumMemberAttribute()]
UnknownLabel1 = 1,
[System.Runtime.Serialization.EnumMemberAttribute()]
UnknownLabel2 = 2,
} " 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in generating OptionSets.cs Microsoft Dynamics CRM 365

    I resolved it.

    To make working XrmToolBox EarlyBoundGenerator right, you need to delete string with " "(with space) in 1049.json.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans