Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Overwrite existing file - uploadLivelinkDocument
Greg_Ackerson
For some reason, about 5,000 of the documents we've uploaded with a custom app came in with a zero size, and the only way I've found to remove them so they can be re-imported is to use the LL front end and delete them one at a time. Needless to say we'd like to avoid that. Every time I try to re-import them with llService.uploadLivelinkDocument, I get:An Item With The Name Already Exists: Status code:0
Find more posts tagged with
Comments
Todd_Pinel
You could create a little app that you could feed objectId's to that would use the LAPI DeleteObject method.To get the objectId's I usually do a database query with the pertinent criteria.We've seen this happen sometimes when creating documents and an error occurs. This is because adding a document is a two step process programmatically. Step 1 creates the Livelink Object and then step 2 creates the documents version.Since this operation is not transactional in nature sometimes when an error interrupts the process only the first step gets completed leaving a document object with no corresponding version.This can be confirmed with a database query. Lookup one of the 0 byte document objectId's in your dtree table and then see if there is a corresponding entry in the dversdata table.