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

Posted by stephen.vanrooyen on 27-Mar-2017 03:54

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
 

Posted by stephen.vanrooyen on 18-Apr-2017 07:06

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

Posted by Rajkumar Mateti on 27-Mar-2017 04:02

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

Posted by stephen.vanrooyen on 27-Mar-2017 04:12

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
 

Posted by stephen.vanrooyen on 18-Apr-2017 07:06

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
 

This thread is closed