<blockquote>
  <p>There's only one entry named Transforming Work.</p>
</blockquote>

<p>That might be true, but you’re telling Craft to store the entry with an URI</p>

<pre><code>fort-collins/weekly/buddhist-meditation-classes/_entry
</code></pre>

<p>Change your entry URI format back to something that’s going to be unique for each entry, probably you’ll want to replace the hardcoded string <code>_entry</code> with the dynamic variable <code>{slug}</code> again, or better, do what is actually described in that Stack Exchange answer you linked to and don’t use the default Entry routing at all (disable “Entries in this section have their own URLs”) and rebuild the route with a custom one (see the Craft docs on <a href="https://craftcms.com/docs/routing#dynamic-routes" rel="nofollow noreferrer">Dynamic Routes</a>).</p>

CC BY-SA 3.0
2016-12-19T01:43:05.380Z
Thank you, Carl. I was getting confused by `news/{slug}` → `news/_entry` in that other answer. What I need is very simple, not much more than a template called `archive.html` that contains  `{% set params = { section: 'events', status: 'live,expired', limit: '1000',  order: 'startDate desc' } %}  {% for entry in craft.entries(params) %}<p>{{ entry }}<p>{% endfor %}`.  So thank you very much for getting me back on track.
kr37
CC BY-SA 3.0
2016-12-18T08:03:08.623Z
2016-12-18T08:03:08.623Z
carlcs
<p>This question is identical to <a href="https://craftcms.stackexchange.com/questions/9162/resaving-blog-entries-keeps-failing">Resaving blog entries keeps failing</a> except that I'm not finding any [error] or [warning] in my log entries. </p>

<p>I have changed my entry URL format for the section named Events from</p>

<pre><code>{mainCategory.last().uri}/{slug}
</code></pre>

<p>to</p>

<pre><code>{mainCategory.last().uri}/_entry
</code></pre>

<p>as described here: <a href="https://craftcms.stackexchange.com/questions/8226/is-it-possible-to-view-expired-entrys-on-the-front-end">Is it possible to view 'Expired' entrys on the front end?</a> and when I hit save on the section page, then it immediately gives the failed task: Resaving Events entries. Any thoughts?</p>

<p>UPDATE</p>

<p>OK, I did find this error:
2016/12/18 02:26:41 [error] [application] Encountered an error running task 422 (ResaveElements), step 2 of 197: Encountered the following validation errors when trying to save entry element "Transforming Work" with the ID "19":
 - URI "fort-collins/weekly/buddhist-meditation-classes/_entry" has already been taken.</p>

<p>I'm not sure quite what it means. There's only one entry named Transforming Work.</p>

CC BY-SA 3.0
2016-11-06T04:22:18.997Z
I'd recommend going through this: https://craftcms.com/support/stuck-tasks
Brad Bell
CC BY-SA 3.0
2016-11-10T02:48:39.227Z
I've gone through that pretty thoroughly. No sign of relevant PHP errors or other errors or warnings in the various logs. Any further suggestions?
kr37
CC BY-SA 3.0
2016-12-15T16:17:45.067Z
Would it be effective to make the change in PHPMyAdmin? I find {mainCategory.last().uri}/{slug} in only one entry in this table: craft_sections_i18n.  But I'm figuring that Craft does some processing when saving, such that making the change manually in that one spot wouldn't actually change anything?
kr37
CC BY-SA 3.0
2016-12-15T23:48:22.797Z
Correct.  If it immediately fails, it's not likely an environmental limitation.  Reproduce, then check `craft/storage/runtime/logs` for `[error]` and you should see what's tripping it up.
Brad Bell
<sections>
Resaving Events Entries failed
# Resaving Events Entries failed

(Asked by: username_0 on 2016-11-06)

This question is identical to Resaving blog entries keeps failing except that I'm not finding any [error] or [warning] in my log entries. 
I have changed my entry URL format for the section named Events from
{mainCategory.last().uri}/{slug}

to
{mainCategory.last().uri}/_entry

as described here: Is it possible to view 'Expired' entrys on the front end? and when I hit save on the section page, then it immediately gives the failed task: Resaving Events entries. Any thoughts?
UPDATE
OK, I did find this error:
2016/12/18 02:26:41 [error] [application] Encountered an error running task 422 (ResaveElements), step 2 of 197: Encountered the following validation errors when trying to save entry element "Transforming Work" with the ID "19":
 - URI "fort-collins/weekly/buddhist-meditation-classes/_entry" has already been taken.
I'm not sure quite what it means. There's only one entry named Transforming Work.

**Tags:** sections

> **Comments:**
> **username_1**: I'd recommend going through this: https://craftcms.com/support/stuck-tasks  
> **username_0**: I've gone through that pretty thoroughly. No sign of relevant PHP errors or other errors or warnings in the various logs. Any further suggestions?  
> **username_0**: Would it be effective to make the change in PHPMyAdmin? I find {mainCategory.last().uri}/{slug} in only one entry in this table: craft_sections_i18n.  But I'm figuring that Craft does some processing when saving, such that making the change manually in that one spot wouldn't actually change anything?  
> **username_1**: Correct.  If it immediately fails, it's not likely an environmental limitation.  Reproduce, then check `craft/storage/runtime/logs` for `[error]` and you should see what's tripping it up.  

---

## 1 answers

### Answer by username_2 on 2016-12-18. Score: 1 | Accepted answer

There's only one entry named Transforming Work.

That might be true, but you’re telling Craft to store the entry with an URI
fort-collins/weekly/buddhist-meditation-classes/_entry

Change your entry URI format back to something that’s going to be unique for each entry, probably you’ll want to replace the hardcoded string _entry with the dynamic variable {slug} again, or better, do what is actually described in that Stack Exchange answer you linked to and don’t use the default Entry routing at all (disable “Entries in this section have their own URLs”) and rebuild the route with a custom one (see the Craft docs on Dynamic Routes).

> **Comments:**
> **username_0**: Thank you, Carl. I was getting confused by `news/{slug}` → `news/_entry` in that other answer. What I need is very simple, not much more than a template called `archive.html` that contains  `{% set params = { section: 'events', status: 'live,expired', limit: '1000',  order: 'startDate desc' } %}  {% for entry in craft.entries(params) %}<p>{{ entry }}<p>{% endfor %}`.  So thank you very much for getting me back on track.  

---

