TypedAccessorGenerator build fail with included document

Hi,

Our project is using a12 2025.06-ext2 (kernel 30.3.0).
We have a document SplitTimeBookingEntry_DM that includes the document TimeBookingEntry_DM. Both documents have only one root group.

However, when I run the Gradle task runTypedAccessorGenerator, it throws the following exception:

Exception in thread “main” java.lang.IllegalArgumentException: included dm TimeBookingEntry_DM doesn’t seem to have a unique root group or was not explicitly passed to the generator

I’m not sure whether we are missing some configuration or if this is an A12 bug. Please help us.

Thank you.

hi @anh-round-summit,

since your project stick to document models that contains includes, did you carefully read the following section of Kernel Documentation:

and pass the paths to all directly and indirectly included DMs via the --additional-models parameter.
Documentation: Kernel - Generating Accessor Classses for Document Models with Includes

if this will not work for you, please share your current implementation for the code accessor generator.

Thank you @markus-agile-fog,

You were correct. We were missing the --additional-models configuration. After adding it, the TypedAccessorGenerator completed successfully.