Skip to content

OData V2 generator produces User.java: too many parameters with complete SuccessFactors $metadata #1309

Open

Description

@k-udupa

Ask the Question

Hi team,

We are using the SAP Cloud SDK OData V2 generator to generate typed Java classes from SAP SuccessFactors OData V2 metadata.

After updating our EDMX using the complete $metadata response provided by our SuccessFactors tenant, generation succeeds, but compilation of the generated sources fails with:

[ERROR] .../target/vdm/.../User.java:[50,1] too many parameters

Environment:

Java 21
Spring Boot 3.5.x
SAP Cloud SDK 5.30.0
com.sap.cloud.sdk.datamodel:odata-generator-maven-plugin
OData V2 metadata from SAP SuccessFactors

Our generator configuration is approximately:

<plugin>
    <groupId>com.sap.cloud.sdk.datamodel</groupId>
    <artifactId>odata-generator-maven-plugin</artifactId>
    <version>${sapCloudSdkVersion}</version>

    <configuration>
        <inputDirectory>${project.build.directory}/schema</inputDirectory>
        <outputDirectory>${project.build.directory}/vdm</outputDirectory>
        <packageName>ndb.ipaas.protocol.sf</packageName>
        <defaultBasePath>odata/v2/</defaultBasePath>
        <compileScope>COMPILE</compileScope>
        <serviceMethodsPerEntitySet>true</serviceMethodsPerEntitySet>
    </configuration>
</plugin>

The SuccessFactors User entity in the complete metadata is very large. In our metadata it contains approximately:

146 regular properties
156 navigation properties
approximately 302 members in total

The generated User.java therefore appears to exceed the Java/JVM method parameter limit in one of the generated methods/constructors.

As a workaround, we reduced the User metadata to only the properties and navigation properties required by our integrations. After reducing the entity, the generated code compiles successfully.

We specifically need navigation such as:
User
 ├─ empInfo
 └─ userOfONB2ProcessNav
      └─ ONB2Process
           └─ toEquipmentActivity
                └─ ONB2EquipmentActivity
After trimming the metadata, these generated typed navigation properties work correctly.

Questions:

Is this a known limitation of the SAP Cloud SDK OData V2 generator when an entity such as SuccessFactors User contains a very large number of properties/navigation properties?

Is there a generator configuration that prevents generation of the large constructor/method causing the too many parameters compilation error?

Is there a recommended approach for SuccessFactors metadata specifically, where entities such as User can expose a very large number of navigation properties?

We can provide the relevant EDMX section if required.

Thanks.

Activity

  1. added
    question
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy