Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Errors when I try to use both @PlanningListVariable and @PlanningVariable in one project #1120

Closed
seallijian opened this issue Oct 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@seallijian
Copy link

Describe the bug

When I try to use both @PlanningListVariable and @PlanningVariable in one project, I got error below.
Caused by: java.lang.IllegalArgumentException: The config (ValueSelectorConfig(null)) has no configured variableName for entityClass (class com.tmtblback.dto.LessonDto) and because there are multiple variableNames ([room, studentGroups, timeslot]), it cannot be deduced automatically.

@seallijian seallijian added the bug Something isn't working label Oct 1, 2024
@seallijian seallijian changed the title Bug: Errors when I try to use both Bug: Errors when I try to use both @PlanningListVariable and @PlanningVariable in one project Oct 1, 2024
@Christopher-Chianelli Christopher-Chianelli transferred this issue from TimefoldAI/timefold-quickstarts Oct 1, 2024
@Christopher-Chianelli
Copy link
Contributor

Duplicate of #683 ; Currently, using PlanningListVariable with PlanningVariable is not supported.

@triceo
Copy link
Contributor

triceo commented Oct 1, 2024

As this is a duplicate, I will close this one.
Thank you for reporting anyway, @seallijian!

@triceo triceo closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants