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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

CRM 2015 - Getting error "SQL timeout expired." when try to create StringAttributeMetadata using IOrganizationService

(1) ShareShare
ReportReport
Posted on by 45

Hi Team,

I am getting error when try to execute method of IOrganizationService.
My sample code in below url:

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/org-service/metadata-attributemetadata

// Create the request.

CreateAttributeRequest createAttributeRequest = new CreateAttributeRequest { EntityName = Contact.EntityLogicalName, Attribute = anAttribute };

// Execute the request.

_serviceProxy.Execute(createAttributeRequest);

Getting error on above line. Error code: -2147204783 (Error: "SQL timeout expired.")

Thanks..

I have the same question (0)
  • Suggested answer
    MehranBre Profile Picture
    732 on at

    hi,

    How many seconds do you receive this error?

    Best Regards.

  • JigneshCRM001 Profile Picture
    45 on at

    after 30 or 35 seconds.

  • Suggested answer
    JigneshCRM001 Profile Picture
    45 on at

    Now issue resolved by adding a regedit entry(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\OLEDBTimeout) in crm onpremises server. Reference:

    support.microsoft.com/.../a-time-out-occurs-when-you-import-large-customization-files-into-microsoft-dynamics-crm-0825ac95-774d-0f58-0ddc-2f0e8507ad36

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans