Appian RPA Outlook Error

Hi Everyone,

I am trying to automate outlook application. But I am getting the below error continuously. 

Caused by: com.novayre.jidoka.outlook.api.exception.JidokaMsOutlookException: Invoke of: RetentionPolicyName
Source: Microsoft Outlook
Description: The operation failed.

Has anyone faced similar scenario . Please guide me if you had overcome this scenario.

Thanks

  Discussion posts and replies are publicly visible

Parents
  • I have a workaround, in case you don't have to attach files:

    - Instead of doing this (according to documentation):

    IOlMailItem newMail = new OlMailItem();
    newMail.setSubject("Subject for IJidokaOutlook mail");
    newMail.setTo("toAccount@myCompany.com");
    newMail.setCc("ccAccount@myCompany.com");
    newMail.setBody("Body for IJidokaOutlook mail");
    IOlMailItem createdMail = outlook.getOlMailManager().createMail(newMail, true);
             
    outlook.getOlMailManager().addAttachmets(createdMail, "C:\\temp\\attachment.pdf");
     
    outlook.getOlMailManager().sendMail(createdMail);

    - You do this (send your newMail without creating):
    IOlMailItem newMail = new OlMailItem();
    newMail.setSubject("Subject for IJidokaOutlook mail");
    newMail.setTo("toAccount@myCompany.com");
    newMail.setCc("ccAccount@myCompany.com");
    newMail.setBody("Body for IJidokaOutlook mail");
     
    outlook.getOlMailManager().sendMail(newMail);
Reply
  • I have a workaround, in case you don't have to attach files:

    - Instead of doing this (according to documentation):

    IOlMailItem newMail = new OlMailItem();
    newMail.setSubject("Subject for IJidokaOutlook mail");
    newMail.setTo("toAccount@myCompany.com");
    newMail.setCc("ccAccount@myCompany.com");
    newMail.setBody("Body for IJidokaOutlook mail");
    IOlMailItem createdMail = outlook.getOlMailManager().createMail(newMail, true);
             
    outlook.getOlMailManager().addAttachmets(createdMail, "C:\\temp\\attachment.pdf");
     
    outlook.getOlMailManager().sendMail(createdMail);

    - You do this (send your newMail without creating):
    IOlMailItem newMail = new OlMailItem();
    newMail.setSubject("Subject for IJidokaOutlook mail");
    newMail.setTo("toAccount@myCompany.com");
    newMail.setCc("ccAccount@myCompany.com");
    newMail.setBody("Body for IJidokaOutlook mail");
     
    outlook.getOlMailManager().sendMail(newMail);
Children
No Data