Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error CS8103 Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

(0) ShareShare
ReportReport
Posted on by 12

We are retrieving the  WarehouseInventoryStatusesOnHand entity data from Operations using the Console Application(C#)  by using the below url   https://abcdefg****.sandbox.operations.dynamics.com/data/$metadata   

The purpose of this integration is to get the live inventory stocks from AX into CRM.

We have added the required OdataClient.tt files  then  OdataClient.cs get generated.

Also we have added the ClientConiguration.cs and OAuthHelper.cs classes  as suggested in the blogs  and GITHUB.

github.com/.../ServiceSamples

https://community.dynamics.com/365/financeandoperations/b/365operationswithsukrut/archive/2017/12/03/integration-with-dynamics-365-for-operations-using-odata-proxy-generator

But while building the solution below error is coming.

Error CS8103 Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

 

I'm using the Visual Studio 2015 and .Net Framework 4.6.1

Can anyone suggest how to handle this issue or give solution/approach on the same.

*This post is locked for comments

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans