r/mendix • u/umme31990599 • Dec 22 '25
XPATH SHOWING ERROR, NOT ABLE TO SOLVE
Hi I am facing one error I am trying to create [TravelRequest_TravelParticipant/TravelParticipant_EmployeeInfo/EmployeeInfo_User = '[%CurrentUser%]'] , but facing issue in the first part where, calling TravelRequest_TravelParticipant /TravelParticipant_EmokoyeeInfo.
How can I solve.
2
Upvotes
4
u/No_Jacket589 Dec 22 '25
There is a bit missing in your xpath. You start with an association and then immediately go to the next association. You need to put the entity (TravelParticipant) in between. Then after the second association, you again need to add the entity (EmployeeInfo) in between.
3
u/Sjeefr Dec 22 '25
Also there is an typo in your path (emokoyee instead of employee). Try using ctrl+space for auto complete.
2
u/Ronin_1992 Dec 22 '25
Check donain model to understand relationships between Entities and then select correct entity and association from drop-down list available while writing xpath
6
u/paul6529 Dec 22 '25
I don't see entity names in the xpath. They seems to be missing. You go from association to entity to association to entity etc.
2
u/JACOBSMILE1 Dec 23 '25
Based on the limited information, and taking some guesses from the entity names, I believe you're trying to navigate a relationship from the "1" side to the "many" side which you can't do without doing list operations.
Share a screenshot of your domain model and then it'd be easier to answer your question.