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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 161 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans