Getting Exception - ErrorCode ERRCA0017 :SubStatus ES0007 :There is a temporary failure. Please retry later. (The request failed because the server is in throttled state)

I have used Azure managed Cache (Basic tier) in my Web App deployed on cloud service.
Now I am getting exception. ErrorCode<ERRCA0017>:SubStatus<ES0007>:There is a temporary failure. Please retry later. (The request failed because the server is in throttled state) on Production environment.
I know, this exception is occurred when memory usage reached more than 95%. 
I want to handle this issue in code so please provide the right solution.
My Clients are facing it... so please help me .
Its very urgent.
Server Error in '/' Application.
ErrorCode<ERRCA0017>:SubStatus<ES0007>:There is a temporary failure. Please retry later. (The request failed because the server is in throttled state)
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0007>:There
is a temporary failure. Please retry later. (The request failed because the server is in throttled state)
Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace
below.
Stack Trace: 
[DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0007>:There is a temporary failure. Please retry later. (The request failed because the server is in throttled state)]
   Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus errStatus, Guid trackingId, Exception responseException, Byte[][] payload, EndpointID destination) +551
   Microsoft.ApplicationServer.Caching.SocketClientProtocol.ExecuteApi(IVelocityRequestPacket request, IMonitoringListener listener) +287
   Microsoft.ApplicationServer.Caching.SocketClientProtocol.Upsert(VelocityPacketType type, String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[]
tags, String region, IMonitoringListener listener) +357
   Microsoft.ApplicationServer.Caching.SocketClientProtocol.Put(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener
listener) +74
   Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener
listener) +288
   Microsoft.ApplicationServer.Caching.<>c__DisplayClass2f.<Put>b__2e() +146
   Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, TimeSpan timeout) +263
   Microsoft.Web.DistributedCache.<>c__DisplayClass31`1.<PerformCacheOperation>b__30() +19
   Microsoft.Web.DistributedCache.DataCacheRetryWrapper.PerformCacheOperation(Action action) +208
   Microsoft.Web.DistributedCache.DataCacheForwarderBase.PerformCacheOperation(Func`1 func) +134
   Microsoft.Web.DistributedCache.DataCacheForwarderBase.Put(String key, Object value, TimeSpan timeout) +148
   Microsoft.Web.DistributedCache.BlobBasedSessionStoreProvider.SetAndReleaseItemExclusive(HttpContextBase context, String id, SessionStateStoreData item, Object lockId, Boolean newItem)
+177
   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +1021
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
Thanks
hema

You should add retry logic in case of retriable exceptions. If the retries fail as well you should reset the DataCacheFactory as suggested in this link.
http://blogs.msdn.com/b/cie/archive/2014/04/29/cache-retry-fails-what-next.aspx
Thanks,
Pallav

Similar Messages

  • AppFabric - Windows Sever - ErrorCode ERRCA0017 :SubStatus ES0006 :There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable)

    Hi All,
    I have created a simple console application which will get the Cache from the cache server.
    However i am getting the below error. my cache server is up and running. could any one help ?
    ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following
    conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the
    serialized object size sent from the client.)
    Below is the code
    static  DataCacheFactory _cacheFactory = Initialize();
    static void Main(string[] args)
    var cache = _cacheFactory.GetCache("Given the Cache name"); // getting an error here
    var Key = "mykey";
    var obj = cache[Key];
    if (obj == null)
    obj = "Sample";
    cache.Add(Key, obj);
    Console.WriteLine("Object added");
    else
    Console.WriteLine("Object was already in cache");
    Console.ReadLine();
    static DataCacheFactory Initialize()
    var Config = new DataCacheFactoryConfiguration();
    var Servers = new List<DataCacheServerEndpoint>();
    Servers.Add(new DataCacheServerEndpoint("Given the cache host name", 22233));
    Config.Servers = Servers;
    var temp = new DataCacheFactory(Config);
    return temp;
    Navaneeth

    Config.SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None);
    After setting the above property it worked!
    Navaneeth

  • ErrorCode ERRCA0017 :SubStatus ES0001 :There is a temporary failure. Please retry later. Every Hour

    Hi, 
    I am facing this error every hour. It does not happen randomly but it triggers every hour precisely. 
    I have half a dozen services connecting to the cache and all of them would get this error at the same time every hour. 
    The cache is working properly expect this "downtime" every hour. 
    Any idea?
    Thanks

    You should add retry logic in case of retriable exceptions. If the retries fail as well you should reset the DataCacheFactory as suggested in this link.
    http://blogs.msdn.com/b/cie/archive/2014/04/29/cache-retry-fails-what-next.aspx
    Thanks,
    Pallav

  • HT3275 I am getting a message that the backup failed because the "sparsebundle is already in use."  My husband and I both have MacBooks that back up to one time machine.  It is also our wifi router.  I do not understand this message

    I am getting the message that "the backup disk image '/volumes//data/ ---'s MacBook pro.sparsebundle" is already in use.  ---"s is my administrator designation.  I don't know what this means or what I should do.  My husband and I both use the same time machine with our MacBooks.  It is our router for our home network although for the most part our computers are separate.  We share an email site, and some files.  I am concerned that we are not backed up securely

    Most common message in history of the TC.. something has failed to unmount.. Lion and esp. Mountain Lion are affected.
    Simple way.. reboot the TC to lose the connections..
    Might take a network reboot.
    That means restart the whole network from off.. start in order, modem.. router/TC.. clients. 2min gap between them.
    But from 5.6 utility you can disconnnect all users.
    Read C12 here. http://pondini.org/TM/Troubleshooting.html

  • Azure Cache ErrorCode ERRCA0017 :SubStatus ES0006

    Hello everyone.
    Im trying to access MS Azure Cache service and pretty often I get this error:
    Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server: net.tcp://remoto.cache.windows.net: line 23233.       at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus errStatus, Guid trackingId, Exception responseException, Byte[][] payload, EndpointID destination)       at Microsoft.ApplicationServer.Caching.SocketClientProtocol.Get(String key, ref DataCacheItemVersion version, ref TimeSpan timeout, ref ErrStatus err, String region, IMonitoringListener listener)       at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, ref DataCacheItemVersion version, String region, IMonitoringListener listener)       at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass53.<Get>b__52()       at Infrastructure.Azure.Cache.AzureCacheServiceClient.<>c__DisplayClass6`1.<Get>b__5() in AzureCacheServiceClient.cs: line 88       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction(Func`1 func)
    It happens when Im trying to access some object in cache like this:
    public T Get<T>(string key)
    return retryPolicy.ExecuteAction(() =>(T) (_cache.Get(key)));
    Here is my initialization code:
    var cacheFactory = new DataCacheFactory();_cache = cacheFactory.GetDefaultCache();
    var retryStrategy = new FixedInterval(15, TimeSpan.FromSeconds(2));
    _retryPolicy = new RetryPolicy<CustomCacheTransientErrorDetectionStrategy>(retryStrategy);
    And app.config:
    <configSections>
    <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />     
    <section name="cacheDiagnostics" type="Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsConfigurationSection, Microsoft.ApplicationServer.Caching.AzureCommon" allowLocation="true" allowDefinition="Everywhere" />
    </configSections>
    <dataCacheClients>
    <dataCacheClient channelOpenTimeout="1000" requestTimeout="45000" name="default">
    <autoDiscover isEnabled="true" identifier="[some.host.name]" />
    <securityProperties mode="Message" sslEnabled="true">
    <messageSecurity authorizationInfo="***" />
    </securityProperties>
    </dataCacheClient>
    </dataCacheClients>
    It happend at least three times already while the Azure Health Status (https://azure.microsoft.com/en-us/status/) said everything was fine at that time.
    As the exception message says - there are some 'temporary' failures on MS side still maybe I'm doing smth wrong in my code?

    Hi,
    This issue might be happed due to hitting the Windows Azure Cache limitation, where you can not add more than 8MB data at a time. The simple workaround for this issue is to split the object into smaller chunks, i.e  you can  serialize the object
    into smaller byte arrays and pass the arrays to cache as multiple objects.  I recommend you could refer to this blog:
    http://blogs.msdn.com/b/pkc/archive/2011/12/21/datacacheexception-errorcode-lt-errca0017-gt-substatus-lt-es0006-gt.aspx
    Any questions, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode ERRCA0017 :SubStatus ES0002 :

    Hello everyone!
    For a long time I've been using the shared cache feature without any trouble with a Windows Azure Website (using session cache).
    The last couple of days, I've been receiving a slew of errors: 
    Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0002>:
    It continues by saying this:
    There is a temporary failure. Please retry later. (The request did not find the primary.). 
    I really don't understand why this is happening now. It was working fine. And all my configuration settings in my web.config are correct.
    The URL is right, and my key is right.  What could be wrong?
    Thanks!
    -Eric
    Eric

    Hi,
    Did you update your azure SDK? Or encounter this issue without doing anything? From my research, I found an article,
    Please have a look at it:
    http://blogs.msdn.com/b/akshar/archive/2011/05/01/azure-appfabric-caching-errorcode-lt-errca0017-gt-substatus-lt-es0006-gt-what-to-do.aspx 
    Hope this helps
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My Mac pro tower has an "ATI Radion hd 2600 XT" video card, and it stopped getting signal to my tv, are there common problems known? How can I troubleshoot this problem when the signal isn't reaching the screen?

    My Mac pro tower has an "ATI Radion hd 2600 XT" video card, and it stopped getting signal to my tv, are there common problems known? How can I troubleshoot this problem when the signal isn't reaching the screen?

    http://discussions.info.apple.com/thread.jspa?messageID=12248238&#12248238
    http://discussions.apple.com/thread.jspa?threadID=2649035&tstart=0

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • 'System.Exception: The request failed with HTTP Status 404

    Hi
    BPC version we are using is : 5.0.502
    When we  Publish all reports using the steps below:
    a. Log into BPC Web
    b. Click on Available Interfaces> Select BPC for Administration
    c. Under Web Admin Task Click Publish Reports
    d. Select all of the reports and click the green check mark to publish the
    reports.
    I am getting following message 'System.Exception: The request failed with HTTP Status 404: Not Found. Below are the event log relation to this error.
    Event Type:     Error
    Event Source:     OutlookSoft log
    Event Category:     None
    Event ID:     0
    Date:          12/8/2008
    Time:          11:26:42 AM
    User:          N/A
    Computer:     BPCAPP
    Description:
    ==============[System Error Tracing]==============
    [System  Name] : OSoftCPM
    [Message Type] : ErrorMessage
    [Job Name]     : AuditMgrService/SetAuditReportFiles
    [DateTime]     : 12/8/2008 11:26:42 AM
    [UserId]       : MMPlanning
    [Exception]
        DetailMsg  : {The request failed with HTTP status 404: Not Found.}
    ==============[System Error Tracing  End ]==============
    We tried ' Publish all reports' as the resolution of error 'object variable or with block variable not set' on modifying an application as per sap note Note 1131320
    If anyone knows the resolution for the above issue, please help me.
    Thanks in advance
    Sajeev Abraham

    Hi,
    This forum is for BI Integrated planning an BW/SEM BPS. For BPC related questions please post this message in the forum for Enterprise Performance Management (Enterprise Performance Management (SAP EPM)).
    Best regards,
    Gerd Schoeffl,
    SAP NetWeaver RIG BI

  • How do I get rid of "Your connection failed because the communication device is unavailable"? Pops up 4 times every time I boot my MBP.

    How do I get rid of "Your connection failed because the communication device is unavailable." ?  Pops up 4 or 5 times every time I log on to my MBP.

    Hi there
    Do you happen to use a USB modem or something like that? This could be the cause.
    You could try creating a new network location to see if that fixes it (if not you can just reverse it)
    1. Go to  Menu -> System Preferences
    2. Then go to Network on the 3rd row
    3. Make sure the padlock is unlocked (bottom left) with your admin password
    4. Choose 'Automatic' next to 'Location' at the top.
    5. Choose 'Edit Locations'
    6. Then click the + button, and create a new one called home/test/somethingorother
    7. Click Done -> Save and wait a few seconds
    8. You may have to reconnect to your Wi Fi network etc.
    If you have a USB modem, the above steps will most likely remove its config from the Network preferences. As I said, its reversable (just change location back to automatic)
    Have fun

  • Exception Message=Unable to connect to the VMM database because the database is in an inconsistent state.

    Hello,
    I have a problem with SCVMM 2012 R2, it always gives error when tries to "Run the dynamic optimizer" process. The process starts automatically every 30mins. When I analyzed report.txt file I found error message:Exception Message=Unable
    to connect to the VMM database because the database is in an inconsistent state.Contact an experienced SQL administrator whenever this error occurs. In some cases, it may be necessary to restore the VMM database. If the problem persists, contact
    Microsoft Help and Support.
    NOTE: If I start the process manually, it completes without any errors.
    Any help would be appreciated

    I'm led to believe this is a bug in UR5 and I think it was a bug in VMM 2012 SP1 RTM.
    Our TAM says this will be fixed in UR6. We had to turn off Dynamic optimizer or we could have rolled back to UR4 but there were other bugs in UR4 which hurt us more.

  • Access Exchange Service From SharePoint 2013 Custom Web part getting The request failed with HTTP status 401: Unauthorized.

    I want to Fill a drop down with Outlook Meeting of Current log-in user in SharePoint 2013 web part for default credentials I am using the following code
     ExchangeServiceBinding binding = new ExchangeServiceBinding();
                ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
                binding.RequestServerVersionValue = new RequestServerVersion();
                binding.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP2;
                binding.PreAuthenticate = true;
                binding.UseDefaultCredentials = true;
                binding.Credentials = CredentialCache.DefaultCredentials ; 
                string server = "https://*********/ews/Exchange.asmx";
                binding.Url = server;
    I Am Getting the Error "The request failed with HTTP status 401: Unauthorized."
    but when I Replace  the line  
    binding.Credentials = CredentialCache.DefaultCredentials ; 
    with 
     binding.Credentials = new NetworkCredential(userName, password, domain);
    Its run fine.  Is there any way I could able to use default credential.
      

    Hi,
    As this question is more relate to Exchange development, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Best regards
    Patrick Liang
    TechNet Community Support

  • Safari - Facebook: "There was a temporary error, please try again. Click to send again."

    Hi all,
    I have a macbook 15 (Late 2008) with 10.6.8 running + Safari 5.1.10 and I have experienced two problems with the Facebook chat:
    1. Often (but I would say almost always) the chat window is cut below and I cannot visualize the box where to type my messages.
    2. Today I have installed the FacebookVideoCalling_v1.6 to perform video calling, and what I am not able to send messages, but I always got the error: "There was a temporary error, please try again. Click to send again." Nevertheless, by following the suggestion to try later, does not solve the situation.
    Does anyone experienced the same problem?
    If it can be useful, I have some additional info. This the Java version I have:
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-10M4609)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
    And here is what I got under the menu "Developers"  (the screenshot is in italian, but I guess it is easy to understand it. Some translation: Svluppo = Develop, Mostra = Show, Abilita = Enable, Disabilita = Disable)
    Any hint? Thanks!

    Hi Damian,
    You can follow the article: Creative Cloud Help | Download Error in Apps tab of Creative Cloud Desktop Application which will help you to get your issue fixed.
    Let us know if it still gives you any issues.
    Thanks,
    Ratandeep Arora

  • I have an old iPhone 3 gs. with ios 3.1.3. how can i update it to at least an ios 5 because it will not let me get games on the app store because the ios is so low.

    I have an old iPhone 3 gs. with ios 3.1.3. how can i update it to at least an ios 5 because it will not let me get games on the app store because the ios is so low.

    Update it from iTunes on a computer as described at the bottom of this article; there isn't a Software Update option in General on iOS versions prior to 5.0. It can only be updated directly to the newest iOS release supported by the device’s hardware, which is iOS 6.1.6 for an iPhone 3GS.
    (108471)

  • Record center - submit file soap call throwing The request failed with http status 401: Unauthorized" exception

    Hi, I am trying to implement custom hold order / send to in sharepoint 2010 to send files in to holds / record center.
    I am at the last step where I am trying submit the metadata using soap call- submit file
    [SoapDocumentMethod("http://schemas.microsoft.com/sharepoint/soap/recordsrepository/SubmitFile", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/recordsrepository/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/recordsrepository/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
    public string SubmitFile([XmlElement(DataType = "base64Binary")] byte[] fileToSubmit, [XmlArrayItem(IsNullable = false)] Microsoft.SharePoint.RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName)
    return (string)base.Invoke("SubmitFile", new object[] { fileToSubmit, properties, recordRouting, sourceUrl, userName })[0];
    I am getting an error "The request failed with http status 401: Unauthorized".
    Actual file was transferred successfully but while transferring the properties (metadata) I am getting this exception.
    ganesh

    Hi ganesh,
    Please try to disable the loop back check, compare the result:
    In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
    Right-click Lsa, point to New, and then click DWORD Value.
    Type DisableLoopbackCheck, and then press ENTER.
    Right-click DisableLoopbackCheck, and then click Modify.
    In the Value data box, type 1, and then click OK.
    Quit Registry Editor, and then restart your computer.
    In addition, please check if these links are useful:
    http://www.sharepointpills.com/2011/10/send-sharepoint-2010-document-to.html
    http://www.codeproject.com/Articles/497729/UploadingplusDocumentsplusProgramaticallyplustoplu
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for