Hi,
In my job, I am exporting documents using IDfExportOperation. Files filename contains special characters like à é èéê exist in the docbase. While exporting these files by the job in unix server files names are not coming properly and it is impossible to identify which file corresponds to which document object in the docbase. In windows it happens successfully but in the Unix this problem occurs.
IDfFile destFile = clientx.getFile( destDir + name.replace(" ", "_") ); //check if the file has been exported (exists) to avoid another export //Create an IDfSysObject representing the object in the collection String id = col.getString("r_object_id"); IDfId idObj = clientx.getId(id); IDfSysObject myObj = (IDfSysObject) session.getObject(idObj); // add the IDfSysObject to the operation IDfExportNode node = (IDfExportNode)operation.add(myObj); executeOperation( operation );//The following method has been taken from dfc help example sectionpublic void executeOperation( IDfOperation operation ) throws DfException { DfLogger.info(this, " Function METHOD : executeOperation() STARTED", null, null); //see the operation monitor sample operation.setOperationMonitor( new Progress() ); // Execute the operation boolean executeFlag = operation.execute(); // Check if any errors occured during the execution of the operation if(executeFlag == false) { // Get the list of errors IDfList errorList = operation.getErrors(); String message = ""; IDfOperationError error = null; // Iterate through the errors and concatenate the error messages for(int i = 0 ; i < errorList.getCount() ; i++) { error = (IDfOperationError) errorList.get(i); message += error.getMessage(); } System.out.println("Errors:"+message); //System.out.println( message ); DfLogger.info(this, " Function METHOD executeOperation() : Errors :"+message, null, null); } DfLogger.info(this, " Function METHOD : executeOperation() ENDED", null, null); }
Please advise.
Thanks,
Arindam