RE: Failed to create Comm Log from Data Maintenance Batch Job - Forum - Rollbase - Progress Community

RE: Failed to create Comm Log from Data Maintenance Batch Job

 Forum

RE: Failed to create Comm Log from Data Maintenance Batch Job

This question is answered
Is anyone able to assist?
 
Regards,
http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png
 
From: Stephen Van Rooyen
Sent: Thursday, 23 March 2017 9:31 AM
To: TU.Rollbase@community.progress.com
Subject: Failed to create Comm Log from Data Maintenance Batch Job
 
Hi Guys,
 
I created a Data Maintenance Batch Job on the User object, within it I would like to create a Comm Log Record using rbv_api.createRecord().
 
When I click Run Now it works as expected, but when it runs as per the Schedule I set, I get the below Error:
Name : JavaException Message : Failed to create Comm Log p5.a454: Permission denied for both current User and Server API role
 
The Comm Log object has permissions enabled for the Server API to create records, is there something I’m missing? Or does Data Maintenance not support creating Records?
 
Regards,
http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png
 
Verified Answer
  • Hi All,
     
    I managed to get this resolved with the help of Karthikeyan Bhaskaran (kbhaskar) from Support.
    My batch job was using values from other objects to create the Comm Log record, which did not have view permissions enabled for the Server API role.
    Therefore the error message was a bit misleading, but at least its resolved now.
     
    Regards,
    http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png
     
All Replies
  • Hi Stephen,

    You should give Create permission for Server API role to create a record in communication log object with scheduled jobs. Please give Create permission for Server API role on Communication Log object.  

    Hope this helps.

    Thanks,

    Rajkumar

  • Hi Rajkumar,
     
    I have Create permissions enabled for all roles including Server API but still getting the Error.
     
    Regards,
    http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png
     
  • Hi All,
     
    I managed to get this resolved with the help of Karthikeyan Bhaskaran (kbhaskar) from Support.
    My batch job was using values from other objects to create the Comm Log record, which did not have view permissions enabled for the Server API role.
    Therefore the error message was a bit misleading, but at least its resolved now.
     
    Regards,
    http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png