Republish every node programatically?
# help-with-umbraco
r
We’ve got a weird upgrade bug where post upgrade of 12 to 13 we have to manually publish a node before it is available in the Content Delivery API We’re under some pressure time wise so I was going to write some code to republish all the content nodes in the site. There are 3 sites in the solution. Is it the ContentService that I need in Umbraco 13? Assume I need to hook into the publish event?
r
That sounds a little bit like the items aren't in the DeliveryApiContextIndex... can you go to Settings > Examine Management tab > DeliveryApiContextIndex and rebuild it, see if that helps first?
r
I’ll give that a go Rick, thank you.
p
@Rich G Is it only the DeliveryApi where the content is missing? I've stumbled across [a similar issue](https://discord.com/channels/869656431308189746/1282671469284823153/1288446787153166418) and it is due to the fact that there is no entry in the
umbracoDocumentVersion
table unless I publish via the UI as doing it programatically doesn't seem to fix the issue.
r
Hey Simon That’s the only place we found it, we ended up using usync to resync the data which seemed to enable us to retrieve the data in the API again. Never got to the bottom of it
4 Views