If you fail your Core, you may retake it as many times as you need within three years.
If you fail a portfolio you can retake it once within the three years available to you.
If you fail either portfolio twice, you will need to reapply for your accreditation. This means you will need to take both the Core and Portfolio assignments again. You can reapply after 12 months has elapsed since the submission of your last portfolio paper.