18
Points
Questions
2
Answers
3
-
- 1646 views
- 3 answers
- 0 votes
-
- 2009 views
- 3 answers
- 0 votes
-
Hi
We also got a same error. Usually this object modified error comes when setting value to change or item. Please try with below code
IItem item = (IItem) session.getObject(ItemConstants.CLASS_PARTS_CLASS, itemStr);
for (int i = 0; i < 3; i++) {
try{
item.setFieldProperty(1234,”test”);
break;
} catch (APIException e) {
if (Integer.parseInt(e.getErrorCode().toString()) == 531) {
item.refresh();
LOG.info(“Retrying attempt : ” + i + 1);
} else {
break;
}
} catch (Exception e) {
LOG.info(“Unable to delete usesr in Agile” + e);
break;
}
}- 2286 views
- 2 answers
- 0 votes