Page 1 of 1

ConvertNodesValueToXml Infinite Loop

Posted: August 18th, 2022, 4:55 pm
by JefferyD
Given a CreateServiceNode service like below:
image.png
image.png (5.69 KiB) Viewed 870 times
image.png
image.png (5.69 KiB) Viewed 870 times
Converting to XML with ParentNodePath = "WorkData/TestValues/Output/Result/Status[1]" results in:
image.png
image.png (7.49 KiB) Viewed 870 times
image.png
image.png (7.49 KiB) Viewed 870 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 870 times
image.png
image.png (7.19 KiB) Viewed 870 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 870 times
image.png
image.png (5.69 KiB) Viewed 870 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

Re: ConvertNodesValueToXml Infinite Loop

Posted: August 19th, 2022, 8:52 am
by SteveCap
Task #10681 has be created. This post will be updated when it has been completed.

Re: ConvertNodesValueToXml Infinite Loop

Posted: August 19th, 2022, 11:43 am
by JustinVanRegenmorter
This issue has been resolved in RunTime Revision 1024.