Parameter Value get lost half way?

If you’re writing and trying to read those values in the same script I recommend using a Transaction.End node to make sure that the writing is completely finished before trying to read those values:

PS: You would probably also benefit from some documenting, as in what/why you’re doing all this, since it took some time to figure out what was doing what and why.