1 of 1 people found this helpful
Nothing seems wrong with the code block itself. What we can't see is what data you are feeding through this piece of code.
We only have a small fraction of the puzzle here.
You could add some debugging information into your code to see how it behaves, or attach the debugger in realtime: Debug an ACE Calculation and the Different Types of Debug
Did you find the reason why values are not being written?