Failed to create Comm Log from Data Maintenance Batch Job

Posted by stephen.vanrooyen on 23-Mar-2017 02:32

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:04

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 jlakshmi on 05-Apr-2017 02:47

Hi ,

Can you share the screenshot of all  the permissions you have given to Comm Log Object for the Server API ?

Thanks

Jaya

Posted by stephen.vanrooyen on 11-Apr-2017 21:29

Hi Jaya,
 
Here is the screenshot of my permissions as requested.
 
As you can see I have enable all permissions for the Server API role.
 
 
Regards,
http://www.aigs.co.za/templates/email_signatures/2016/stephen_van_rooyen.png
 

Posted by jlakshmi on 12-Apr-2017 03:37

Hi,

What  Rollbase version you are using ? Can you share the app.xml  and also share the steps for reproducing this issue ?

Otherwise , you can reach out to support .

Thanks,

Jaya

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

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