Partitions in SSAS with no data

If you get the error below when processing a cube in SSAS. You might have partitions in the cube, that doesn’t have corresponding data in the underlying relational tables.

Errors in the OLAP storage engine: The restrictions imposed on partition slice where violated.‏

A solution could be to just delete the affected partitions from the cube.