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

Failed to create Comm Log from Data Maintenance Batch Job

 Forum

Failed to create Comm Log from Data Maintenance Batch Job

This question is answered
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 ,

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

    Thanks

    Jaya

  • 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
     
  • 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

  • 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