我正在尝试更新我的驱动器项目中的元数据。如果我直接在我的文档库(1 行、多行等)中创建列,那没关系,但是当我的列与术语库(托管元数据)链接时,我有这个错误:
GRAVE: Throwable detail: com.microsoft.graph.http.GraphServiceException: Error code: itemNotFound
Error message: The resource could not be found.
GET https://graph.microsoft.com/v1.0/me/drives/[mydrive]/items/017QC4KJLG35SQJ5NC6VALGDTRG7LFJ6IM
SdkVersion : graph-java/v5.5.0
404 : Not Found
[...]
这是我的代码:
FieldValueSetRequest updateRequest = client.sites(siteId).lists(listId).items(listItemId).fields().buildRequest();
logger.debug(updateRequest);
FieldValueSet fieldValueSet = new FieldValueSet();
for(Map.Entry<String, String> element: elements.entrySet()) {
String key = element.getKey();
String value = element.getValue();
logger.debug(key+ "=" + value);
fieldValueSet.additionalDataManager().put(key, new JsonPrimitive(value));
}
updateRequest.patch(fieldValueSet);