Using the correct invoice action was not completing the process as expected when trying to release the corrected document. This has now been fixed. The system creates the corrected document which can be released and and also the credit note is created for the original document which are both closed.