Maximo Open Forum

 View Only
  • 1.  ADD Action not allowed on object Error

    Posted 01-28-2022 00:53
    Hi All,

    We have implemented a button on purchase contracts app to generate PR with java code to execute on press of the button.
    A User having read only access to the purchase contracts app is getting error on execution of button event as Action ADD is not allowed on object PR even though user is having write access to PR .
    It is observed that when user is provided with Save access to purchase contracts app, then he is able to generate PRs.
    We have checked that the default siteid is populated to the user and have also tried unchecking edit mode enabled on PR app .

    Can anyone please let me know if they have seen such scenario before ?We are looking to resolve the error without granting Write access to the user.


    #Customizations
    #Security

    ------------------------------
    Meghana Siriveli
    ------------------------------


  • 2.  RE: ADD Action not allowed on object Error

    Posted 01-31-2022 16:41
    Hi Meghana,

    Please post your code so that we can understand if there is something wrong in it.
    Also, I think you might have called save on purchase contract MBO. Looking at the code will give us better understanding.

    ------------------------------
    Biplab Choudhury
    Tata Consultancy Services
    ------------------------------



  • 3.  RE: ADD Action not allowed on object Error

    Posted 02-01-2022 15:29
    Hi Meghana,

    Yeah I agree with Biplab. code will give us a better understanding. There is also 1 more thing that I can think of is you maybe opening the PR MBOSET using a relationship with purchase contract MBO. If yes, try getting the MBOSET using MXServer.getMXServer().getMboSet()  or maybe when calling add() pass 2L as the parameter. 


    ------------------------------
    Abhay Bhatnagar
    NV Energy
    ------------------------------



  • 4.  RE: ADD Action not allowed on object Error

    Posted 01-17-2024 10:29

    Hi Meghana,

    Correct me if I'm wrong but the table is Contracts and the button pulls data from the PR table.  Something to this nature I assume and also assuming the user is attempting to process a Purchase Requisition through an application where they only have read only access.  Have you tried allowing the user to have write access on the Purchase Contract object but create a sigoption for their security group?

    Adam



    ------------------------------
    A.S. Bearden, GDIT
    'ADAM'
    ------------------------------



  • 5.  RE: ADD Action not allowed on object Error

    Posted 01-19-2024 11:25

    I wonder if I jinxed myself.   Not long after I tried helping with the condition reply our office recieved a help call with the same error, "The action is not allowed on object ASSET..." 

    What I noticed is the site administrator duplicated the issue as the user is unable to change the status of their Purchase Requisition.  I replied prior saying to try a condition on the PR object for this user but I'm now having the same issue on our test instances.  Are you able to duplicate this?  Have you had any resolve?

    Adam



    ------------------------------
    A.S. Bearden, GDIT
    'ADAM'
    ------------------------------