Skip to main content
Table of contents


Remove invalid WorldwideOrganisation draft CorporateInformationPages

A CorporateInformationPage is a Whitehall document that is attached to Organisation and WorldwideOrganisation models. For Organisations, it is accessed as the organisations /about page.

For WorldwideOrganisations, this document is presented directly on the organisation's home page. As there is not a distinct page to visit directly, Whitehall can send a CorporateInformationPage to the Publishing API with the same base_path as the associated WorldwideOrganisation.

This can cause invalid drafts to be present in Publishing API, and may throw:

GdsApi::HTTPUnprocessableEntity (Admin::WorldwideOfficesController)

Whilst these invalid drafts are present users are unable to make any further edits.

A rake task exists in Publishing API that will clear the invalid drafts.

$ bundle exec 'data_hygiene:remove_invalid_worldorg_drafts'

Jenkins - integration

This page was last reviewed on 6 August 2020. It needs to be reviewed again on 6 February 2021 by the page owner #govuk-2ndline .
This page was set to be reviewed before 6 February 2021 by the page owner #govuk-2ndline. This might mean the content is out of date.