I was trying to input a Buy of 5000 shares at 1.475 but input it at 147.50. According to notepad, this changed Portfolio Control from 620363 to 251613.1
(????How can de PC go down on a Buy???? I thought that in Newport the pc-update is PC(new)=PC(old) + 1/2*Buy.
I am not sure if this will work for you but I think you can simply enter a negative buy of the same (wrong) magnitude as the Error Input. This should return the Portfolio to the same position as before:
5000 shares @ $ -147.50
The PC and the share value should then return to the original values. If negative prices are prevented then you might get an Error message. Then try a Buy with a negative share quantity, or a Sell of the same magnitude.
In my program(Vortex) I can simply correct such mistakes by using a Sell of the same magnitude or using negative Buy parameters.