Create Project from Template fails on custom subobjects
search cancel

Create Project from Template fails on custom subobjects

book

Article ID: 369039

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Unable to create projects from Template, an error in thrown in app-ca.log:

ERROR 2024-05-21 11:51:55,062 [https-jsse-nio2-8443-exec-1] niku.xql2 (clarity:admin_test:132811949__C319F1A2-F23B-4A90-87E4-B5B7F6C5925E:projmgr.projectNewPost) (758ea749-3060-40c2-823b-3ecb4d05d108) Exception CopyProjectTasks.copyTemplateSubObjects()
com.niku.union.odf.exception.ODFValidationException: ODF-0104: Not authorized to create test_audit instances.
    at com.niku.odf.object.Utils.execService(Utils.java:239)
    at com.niku.odf.object.Utils.execService(Utils.java:297)
    at com.niku.odf.object.ODFObjectImpl.insert(ODFObjectImpl.java:3188)
    at com.niku.odf.object.ODFObjectImpl.insertWrapper(ODFObjectImpl.java:3267)
    at com.niku.odf.object.ODFAbstractObjectImpl.update(ODFAbstractObjectImpl.java:5422)
    at com.niku.odf.object.ObjectInstanceImpl.update(ObjectInstanceImpl.java:2936)
    at com.niku.odf.object.copyengine.CopyEngine.copySameType(CopyEngine.java:729)

The user has admin rights.

Cause

Missing permissions to custom subobjects added to the Template

Resolution

  • Make sure all the Object - Create rights are added to this user
  • Admin rights do not grant rights to separate custom objects
  • Example object permissions for a custom subobject
  • We need Create to be added, however you can also add them all if this makes sense for your company