Answers.Body: <p>This was a bug in Craft CMS 5 and was fixed in <a href="https://github.com/craftcms/cms/releases/tag/5.0.3" rel="nofollow noreferrer">release 5.0.3</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-11T11:07:30.020Z
Answers.LastActivityDate: 2024-04-11T11:07:30.020Z
Answers.UserDisplayName: Matthias
Body: <p>When running the <code>php craft up</code> command as one of the last steps for the upgrade I get the following error.</p>
  <pre><code>*** applying m230511_215903_content_refactor
  Exception: A field layout element has a duplicate UUID. Reinstall Craft CMS ^4.4.14 and run `utils/fix-field-layout-uids` before upgrading to Craft CMS 5.
  </code></pre>
  <p>When I go back to version 4 and run the suggested command I get the following message.
  <code>Done. No duplicate UUIDs were found.</code></p>
  <p>It seems like I am stuck and unable to upgrade.</p>
  <p>Did anyone else encounter this issue?</p>
  
Tags: <craft4><upgrades><craft5>
Title: Upgrade from 4 to 5 error
ThreadText: # Upgrade from 4 to 5 error
  
  (Asked by: username_0 on 2024-04-08)
  
  When running the `php craft up` command as one of the last steps for the upgrade I get the following error.
  
  ```
  *** applying m230511_215903_content_refactor
  Exception: A field layout element has a duplicate UUID. Reinstall Craft CMS ^4.4.14 and run `utils/fix-field-layout-uids` before upgrading to Craft CMS 5.
  
  ```
  
  When I go back to version 4 and run the suggested command I get the following message.
  `Done. No duplicate UUIDs were found.`
  
  It seems like I am stuck and unable to upgrade.
  
  Did anyone else encounter this issue?
  
  **Tags:** craft4, upgrades, craft5
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-04-11. Score: 2 | Accepted answer
  
  This was a bug in Craft CMS 5 and was fixed in [release 5.0.3](https://github.com/craftcms/cms/releases/tag/5.0.3).
  
  
  ---
  
  