Hello,
I'm trying to add a news item to a channel by using Java LAPI.
here is my method:
LLValue newsType = new LLValue().setAssoc();
LLValue createInfo = new LLValue().setAssocNotSet();
//set values of newsType
LLValue request = new LLValue().setAssoc();
request.add("Story", news.getStory());
request.add("DateEffective", news.getEffectiveDate());
request.add("DateExpiration", news.getExpirationDate());
request.add("Headline", news.getHeadline());
request.add("IMG_ID", 0);
request.add("Comment", "-");
newsType.add("Request", request);
try {
System.out.println("Beginning to add News...");
status = documents.CreateObjectEx(parentVolumeID,
parentObjectID,
documents.OBJECTTYPE,
documents.NEWSSUBTYPE,
news.getName(),
newsType,
createInfo
);
if (status != 0) {
//error occurred
throw new Exception(this.getLivelinkErrorMessage());
}
}
catch (Exception e) {
System.out.println("Exception occured...");
//forward Exception
throw e;
}
I get an error message from Livelink: "Error Creating node , Status: 101103".
What does it mean? I can't find any error (the rights on the channel are ok and the name of the news item is unique.)
Thanks for your help!
I'm trying to add a news item to a channel by using Java LAPI.
here is my method:
LLValue newsType = new LLValue().setAssoc();
LLValue createInfo = new LLValue().setAssocNotSet();
//set values of newsType
LLValue request = new LLValue().setAssoc();
request.add("Story", news.getStory());
request.add("DateEffective", news.getEffectiveDate());
request.add("DateExpiration", news.getExpirationDate());
request.add("Headline", news.getHeadline());
request.add("IMG_ID", 0);
request.add("Comment", "-");
newsType.add("Request", request);
try {
System.out.println("Beginning to add News...");
status = documents.CreateObjectEx(parentVolumeID,
parentObjectID,
documents.OBJECTTYPE,
documents.NEWSSUBTYPE,
news.getName(),
newsType,
createInfo
);
if (status != 0) {
//error occurred
throw new Exception(this.getLivelinkErrorMessage());
}
}
catch (Exception e) {
System.out.println("Exception occured...");
//forward Exception
throw e;
}
I get an error message from Livelink: "Error Creating node , Status: 101103".
What does it mean? I can't find any error (the rights on the channel are ok and the name of the news item is unique.)
Thanks for your help!