Conversion task not triggered after REST upload

オフライン
I am uploading files using the REST API. However, after a successful upload, the conversion task that is associated with the specified file type is not being triggered. If I upload the same file using the client, the task is triggered. Has anyone done this before? Is there something I should be setting in the commit request to trigger the conversion task? I tried including '@aras.serverEvents':'1' in the request body, but it did not make any difference. Thanks, Mark
Parents
  • Hi Chris, The following are the request bodies I have used when invoking the vault.CommitTransaction method. Both succeed in creating the file in the vault, but neither triggers the conversion task. The first request associates the newly uploaded file with a Document. The second simply creates the File in the vault. # JSON data for vault.CommitTransaction request body # Creates Document with Document File pointing to uploaded file data = { '@odata.context': host + '/Server/odata/$metadata#Document/$entity', '@odata.type': '#Document', 'id': docId, 'item_number': 'DOC-02', 'Document File': [{ 'id': docFileId, 'related_id': { 'id': fileId, 'filename': filename } }] } # JSON data for vault.CommitTransaction request body # Creates a File in the vault info = { 'file_version': '1', 'related_id': VAULT_ID } located = [info] data = { '@odata.context': host + '/Server/odata/$metadata#File/$entity', '@odata.type': '#File', 'id': fileId, 'filename': filename, 'file_size': str(size), 'Located': located } If I upload the same file using "Administration > File Handling > Files > New File...", the conversion task is triggered. Thanks, Mark  
Reply
  • Hi Chris, The following are the request bodies I have used when invoking the vault.CommitTransaction method. Both succeed in creating the file in the vault, but neither triggers the conversion task. The first request associates the newly uploaded file with a Document. The second simply creates the File in the vault. # JSON data for vault.CommitTransaction request body # Creates Document with Document File pointing to uploaded file data = { '@odata.context': host + '/Server/odata/$metadata#Document/$entity', '@odata.type': '#Document', 'id': docId, 'item_number': 'DOC-02', 'Document File': [{ 'id': docFileId, 'related_id': { 'id': fileId, 'filename': filename } }] } # JSON data for vault.CommitTransaction request body # Creates a File in the vault info = { 'file_version': '1', 'related_id': VAULT_ID } located = [info] data = { '@odata.context': host + '/Server/odata/$metadata#File/$entity', '@odata.type': '#File', 'id': fileId, 'filename': filename, 'file_size': str(size), 'Located': located } If I upload the same file using "Administration > File Handling > Files > New File...", the conversion task is triggered. Thanks, Mark  
Children
No Data