Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

JS entity get and load fail but create and save work

Avatar

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
quentinm9832912
Level 2

08-06-2020

Hi everyone,

I use  NLWS.nmsRecipient.get(id); and NLWS.nmsRecipient.load(id); in order to retrieve some data but there is always errors when i do it on nmsRecipient

QUE-370014 Erreur lors de la génération de la requête (sur un document de type 'Destinataires (nms:recipient)').

But when i make a create + save on nmsRecipient it works perfectly. 

According to another error also raised, i understand that the issue probably come from nmsRecipient schema extension but i don't understand why exactly .

 XTK-170036 Impossible d'analyser l'expression '@RepBranch-id'.

 

Does someone know how to deal with that ? 

Thank you,

Quentin, 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
Jyoti_Y
MVP

Likes

87 likes

Total Posts

123 posts

Correct Reply

55 solutions
Top badges earned
Boost 50
Shape 1
Boost 5
Give Back 5
Give Back 3
View profile

Avatar
Boost 50
MVP
Jyoti_Y
MVP

Likes

87 likes

Total Posts

123 posts

Correct Reply

55 solutions
Top badges earned
Boost 50
Shape 1
Boost 5
Give Back 5
Give Back 3
View profile
Jyoti_Y
MVP

10-06-2020

Hi,

 

Your join is not properly created.

You are getting error related to RepBranch foreign key not present in Recipient Schema.

Can you check definition of Recipient Schema( Preview tab) and verify whether @RepBranch-id column is created or not.

If not, please specify specific join condition between two tables. They are not able to join with primary key.

 

Thanks,

Jyoti

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
quentinm9832912
Level 2

24-06-2020

Hello, i come back here because i finally managed to find why load don't works. 

2 reasons : 

Firstly, we have one nms recipient schema extension.  

And the schema contains an high level <element> that contains all attributes for that schema extension. 

Wich result on the following appereance on the tool request. (white square)

quentinm9832912_0-1592984922755.png

And so this "free element" prevent the mapping tool to suceed when load is called. 

 

The second issue concern the link element "revcardinality", if you use "single" and the relation with id does no exists then the load operation crashes. 

 

I hope that could help someone one day, 

Thanks you all for your help ! 

 

Avatar

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
quentinm9832912
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
quentinm9832912
Level 2

08-06-2020

Capture.PNG

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

310 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

310 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile
_Manoj_Kumar
MVP

08-06-2020

Hello @quentinm9832912 

 

Can you please more details on the code you are using?

 

XTK-170036 Impossible d'analyser l'expression '@RepBranch-id'.

 

The above error means your xpath is not correct