ConvertNodesValueToXml Infinite Loop

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
JefferyD
Posts: 178
Joined: August 31st, 2021, 11:37 am
Contact:

ConvertNodesValueToXml Infinite Loop

Unread post by JefferyD »

Given a CreateServiceNode service like below:
image.png
image.png (5.69 KiB) Viewed 912 times
image.png
image.png (5.69 KiB) Viewed 912 times
Converting to XML with ParentNodePath = "WorkData/TestValues/Output/Result/Status[1]" results in:
image.png
image.png (7.49 KiB) Viewed 912 times
image.png
image.png (7.49 KiB) Viewed 912 times
This suggests that the first "Status" node was removed, converted, and appended back at the end.

Converting the same node to XML but with ParentNodePath = "WorkData/TestValues/Output/Result/Status" seems to infinite loop as it switches between the 2 "Status" nodes.

Testing with ParentNodePath = "WorkData/TestValues/Output/Result/Status[not(*)]" seems to corroborate this as it actually finishes and results in:
image.png
image.png (7.19 KiB) Viewed 912 times
image.png
image.png (7.19 KiB) Viewed 912 times

Note: ParentNodePath = "WorkData/TestValues/Output/Result/Test" does not infinitely loop, likely due to there being only 1 "Test" node.


Summary
image.png
image.png (5.69 KiB) Viewed 912 times
image.png
image.png (5.69 KiB) Viewed 912 times
Given the above service and ConvertNodesValueToXml with ParentNodePath equal to:
  • WorkData/TestValues/Output/Result/Status[1]
    • Converts 1 "Status" node and moves it to the end
  • WorkData/TestValues/Output/Result/Status
    • Infinite loops
  • WorkData/TestValues/Output/Result/Status[not(*)]
    • Works as only nodes with no children already are converted
  • WorkData/TestValues/Output/Result/Test
    • Works presumable because only one "Test" node exists
word count: 228

Tags:
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: ConvertNodesValueToXml Infinite Loop

Unread post by SteveCap »

Task #10681 has be created. This post will be updated when it has been completed.
word count: 15
JustinVanRegenmorter
Posts: 576
Joined: August 26th, 2021, 9:56 am
Contact:

Re: ConvertNodesValueToXml Infinite Loop

Unread post by JustinVanRegenmorter »

This issue has been resolved in RunTime Revision 1024.
word count: 9
Post Reply