Removing Attributes and Facts from Your LDM in CloudConnect

These steps apply only if you are removing objects from an LDM that has already been published and is in use in a GoodData project. If you have not published this logical data model to a GoodData project, you can remove objects normally. Verify that there are no references to the removed objects.

By default, the model is not permitted to be published because the updates to the project logical data model may cause loss of project metadata objects (metrics and reports).

It is possible, however, to force the publication of the model into the project despite the presence of dependencies. See Force Publishing an LDM in CloudConnect.

Steps:

  1. Save a copy of the LDM file that you are changing into a location outside of your CloudConnect project.

  2. If possible, build a list of the objects that you are planning to remove.

  3. Log in to the GoodData project to which you are applying the changes.

  4. In the Portal menu bar, click Manage.

  5. For each object:

    1. Select the object.

    2. In the object’s detail page, locate the Attribute Statistics or Fact Statistics panel in the lower-right corner. 

    3. Click the Used link for metrics, reports and dashboards in which the object is used. For more information, see Find Where an Attribute Is Used.

    4. Update the listed metadata objects so that they contain no references to the attribute or fact. After you updated the metadata objects, CloudConnect permits you to publish the updated logical data model. As an alternative, you can retain the list of objects for later use. However, if you do not fix the objects now, the following workflow causes the referenced objects to fail to be displayed until they are fixed, which may be alarming to project users.

  6. In CloudConnect Designer, load the logical data model from which you are removing objects.

  7. Create a new dataset with no attributes or facts in it. Name it Trash.

  8. Move each attribute and fact that you want to remove from its original location into the Trash dataset.

  9. Validate your logical data model. See Validating Your Data Model in CloudConnect.

  10. Publish the modified data model to the server. See Publish Your Logical Data Model in CloudConnect.

  11. Log in to the GoodData Portal. Select your GoodData project.

  12. Verify that the objects are working properly and contain data.

  13. If you have not updated the reporting objects, do the following: 

    1. Click Manage.

    2. In the Data Sets table, click the Trash dataset.

    3. For each object listed in the Trash dataset:

      1. Click the object.
      2. In the Statistics panel, click each Used link. Remove references to fact or attribute from each metadata object displayed in the list.
      3. Check that there are no other broken reports.
  14. In the Portal menu, click Dashboards.

  15. Scan each tab of each dashboard to verify that the dashboards and their reports are rendering properly. If there are reports that do not appear in dashboards, load and verify them.