Application Error Appears When Upgrading a Report

When upgrading a report, the following error appears if the report contains data items in the page layout that are not in a data container:
RSV-SRV-0040 An application error has occurred. Please contact your Administrator.

This error occurs when IBM® Cognos® BI cannot determine the query reference for a data item. Such data items are identified by a small, red circle with a white x icon that appears in the lower left corner.

To correct the error, drag the data items into a container. If the container is a list, we recommend that you drag the data items into the list page header or footer, or the overall header or footer. If you want to see the first row of the item on each page or in the overall report, drag the item to the list page header or overall header. If you want to see the item's last row on each page or in the overall report, drag the item to the list page footer or overall footer.

Tip: If a header or footer does not exist, create it.