引起原因:com.microsoft.azure.cosmosdb.DocumentClientException:消息:{“错误":[“请求的资源在服务器上不再可用."]} [英] Caused by: com.microsoft.azure.cosmosdb.DocumentClientException: Message: {“Errors”:[“The requested resource is no longer available at the server.“]}

查看:215
本文介绍了引起原因:com.microsoft.azure.cosmosdb.DocumentClientException:消息:{“错误":[“请求的资源在服务器上不再可用."]}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java应用程序处理文件并将信息插入到collectionA,同时还将插入状态更新为collectionB(在插入collectionA之前已预先填充该状态,并保存文件中每一行的元数据).我们有 删除并重新创建两个集合,然后重新运行文件使用过程.将信息插入到collectionA的请求是基于事件中心接收到的消息,由触发功能产生的,预先填充的collectionB将发布一条消息 插入到collectionB上的每个消息的事件中心.

I have a java application processing a file and inserting the information to collectionA also updating the status of insertions to collectionB(which was pre-populated before inserting to collectionA and holding the metadata for each row from file). We have deleted and recreated both collections and reran the file consumption process.  Requests to insert the information to collectionA are originated from trigger function based on a message received in event hub, pre-populating collectionB will post a message to event hub for every message inserted on collectionB.

我们可以看到具有高级别信息的文件中的每一行都预先填充了collectionB,但是无法将其插入到collectionA中,并且所有插入到collectionA的请求均因错误而失败-由:com.microsoft.azure.cosmosdb.DocumentClientException: 消息:{错误":[请求的资源在服务器上不再可用."]

We can see the collectionB is pre-populated for each row from file with high level info, but it was unable to insert into the collectionA and all the requests came to insert to collectionA were failed with error -- Caused by: com.microsoft.azure.cosmosdb.DocumentClientException: Message: {"Errors":["The requested resource is no longer available at the server."]}

您能否阐明如何避免此错误.

Can you throw some light on how to avoid this error.

推荐答案

您好,Rtirumal,

Hi Rtirumal,

您看过以下文件吗?

Azure Cosmos DB服务器端编程:存储过程,数据库触发器,和UDF

我认为您将要考虑实施 数据库触发器.

I think you are going to want to look at implementing Database Triggers.

请查看信息,如果还有其他问题,请告知我们.此致〜Mike

Please review the information and let us know if you have additional questions. Regards, ~Mike


这篇关于引起原因:com.microsoft.azure.cosmosdb.DocumentClientException:消息:{“错误":[“请求的资源在服务器上不再可用."]}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆