0

trigger can not be deployed

I have developed triggers for default field value setting. the trigger run perfectly in IDEA. but I have difficult to deploy to Veeva sandbox and received the error message that static variables in Recordtrigger class must be final.

 

can anyone help?

 

Thanks

 

James 

3 comments

  • Avatar
    Kevin N

    Hi James,

    This is expected behavior. Vault checks for various restrictions when code is uploaded for deployment and will fail deployment when non-allowed code is included. The Vault Java SDK debugger does not enforce these restrictions.

    You can find more information at https://developer.veevavault.com/sdk/#restrictions. 

    While developing Vault Java SDK code, you must keep these restrictions in mind and validate your code frequently. Code that does not respect these restrictions will not be able to deploy into vault and will need to be fixed prior to being used.

     

    Thanks,
    Kevin

  • Avatar
    James Huang

    Thanks Kevin

  • Avatar
    James Huang

    By the way, this means that it is not possible to user a trigger to auto set up a ID field sequentially. for example, if I created a organization 1, 2, 3 and would like to have the Org ID field populated automatically by 1, 2, 3, this is not possible to use before trigger. Any other suggestions?

    Thanks

    James

Please sign in to leave a comment.