diff --git a/lib/Drupal/configuration/Config/Configuration.php b/lib/Drupal/configuration/Config/Configuration.php
index 2934536..bd8643f 100644
--- a/lib/Drupal/configuration/Config/Configuration.php
+++ b/lib/Drupal/configuration/Config/Configuration.php
@@ -49,7 +49,6 @@ abstract class Configuration {
    */
   const moduleInstalled = 0x0102;
 
-
   /**
    * The identifier that identifies to the component, usually the machine name.
    */
@@ -219,6 +218,15 @@ abstract class Configuration {
     }
 
     $this->storage->load(NULL, $source);
+
+    // Check if thereis a context defined, then we are iterating.
+    if (isset($this->context)) {
+      // Check that this configuration is supported by Configuration Management
+      if (!ConfigurationManagement::validApiVersion($this->storage->getApiVersion())) {
+        $this->broken = TRUE;
+        return $this;
+      }
+    }
     $this->setData($this->storage->getData());
     $this->setDependencies($this->storage->getDependencies());
     $this->setOptionalConfigurations($this->storage->getOptionalConfigurations());
@@ -318,10 +326,15 @@ abstract class Configuration {
    */
   public function import(ConfigIteratorSettings &$settings) {
     $this->loadFromStorage();
-    $this->saveToActiveStore($settings);
+    if ($this->isBroken()) {
+      $settings->addInfo('fail', $this->getUniqueId());
+    }
+    else {
+      $this->saveToActiveStore($settings);
 
-    if ($settings->getSetting('start_tracking')) {
-      $this->startTracking();
+      if ($settings->getSetting('start_tracking')) {
+        $this->startTracking();
+      }
     }
   }
 
@@ -339,6 +352,7 @@ abstract class Configuration {
 
     // Save the configuration into a file.
     $this->storage
+            ->setApiVersion(ConfigurationManagement::api)
             ->setData($this->data)
             ->setKeysToExport($this->getKeysToExport())
             ->setDependencies(drupal_map_assoc(array_keys($this->getDependencies())))
@@ -363,6 +377,13 @@ abstract class Configuration {
   abstract protected function prepareBuild();
 
   /**
+   * Return TRUE if something went wrong with the load of the configuration.
+   */
+  public function isBroken() {
+    return $this->broken;
+  }
+
+  /**
    * Build the configuration object based on the component name and
    * in the identifier.
    *
@@ -397,6 +418,7 @@ abstract class Configuration {
       return $this;
     }
     $this->storage
+        ->setApiVersion(ConfigurationManagement::api)
         ->setData($this->data)
         ->setKeysToExport($this->getKeysToExport())
         ->setDependencies(drupal_map_assoc(array_keys($this->getDependencies())))
@@ -744,6 +766,7 @@ abstract class Configuration {
   public function raw() {
     // Save the configuration into a file.
     $file_content = $this->storage
+                      ->setApiVersion(ConfigurationManagement::api)
                       ->setData($this->data)
                       ->setKeysToExport($this->getKeysToExport())
                       ->setDependencies(drupal_map_assoc(array_keys($this->getDependencies())))
diff --git a/lib/Drupal/configuration/Config/ConfigurationManagement.php b/lib/Drupal/configuration/Config/ConfigurationManagement.php
index b25bdb4..f0d0226 100644
--- a/lib/Drupal/configuration/Config/ConfigurationManagement.php
+++ b/lib/Drupal/configuration/Config/ConfigurationManagement.php
@@ -15,6 +15,11 @@ use Drupal\configuration\Storage\Storage;
 class ConfigurationManagement {
 
   /**
+   * Constant used to indicate the api version of Configuration Management.
+   */
+  const api = '2.0.0';
+
+  /**
    * The stream to use while importing and exporting configurations.
    *
    * @var string
@@ -22,6 +27,20 @@ class ConfigurationManagement {
   static protected $stream = 'config://';
 
   /**
+   * Returns TRUE if the minimun
+   *
+   * @param $minimum
+   *   The version of the api of the current configuration.
+   *
+   * @return  boolean
+   *   Rerturns TRUE if the current version of Configuration Management
+   *   installed can handle the configuration.
+   */
+  static public function validApiVersion($config_version) {
+    return (version_compare($config_version, ConfigurationManagement::api) >= 0);
+  }
+
+  /**
    * Returns the current stream used to import and export configurations.
    * Default value is config://
    *
@@ -256,6 +275,7 @@ class ConfigurationManagement {
         ),
         'info' => array(
           'imported' => array(),
+          'fail' => array(),
         )
       )
     );
diff --git a/lib/Drupal/configuration/Storage/Storage.php b/lib/Drupal/configuration/Storage/Storage.php
index 01b7f2a..cca9ea0 100644
--- a/lib/Drupal/configuration/Storage/Storage.php
+++ b/lib/Drupal/configuration/Storage/Storage.php
@@ -18,6 +18,8 @@ class Storage {
 
   protected $required_modules;
 
+  protected $api_version;
+
   protected $filename;
 
   protected $loaded;
@@ -73,6 +75,7 @@ class Storage {
     $this->dependencies = array();
     $this->optional_configurations = array();
     $this->data = NULL;
+    $this->api_version = '0.0.0';
   }
 
   public function export($var, $prefix = '') { }
@@ -159,6 +162,15 @@ class Storage {
     return $this;
   }
 
+  public function setApiVersion($api_version) {
+    $this->api_version = $api_version;
+    return $this;
+  }
+
+  public function getApiVersion() {
+    return $this->api_version;
+  }
+
   public function checkForChanges($object) {
     $new = $this->export($object);
     $original = $this->export($this->load()->data);
diff --git a/lib/Drupal/configuration/Storage/StorageCtools.php b/lib/Drupal/configuration/Storage/StorageCtools.php
index 66a8b15..e92cb53 100644
--- a/lib/Drupal/configuration/Storage/StorageCtools.php
+++ b/lib/Drupal/configuration/Storage/StorageCtools.php
@@ -25,7 +25,8 @@ class StorageCtools extends StoragePHP {
   public function getDataToSave() {
     $filename = $this->filename;
     ctools_include('export');
-    $export = '$data = ' . ctools_export_crud_export($this->table, $this->data) . "\n\n";
+    $export = '$api = ' . $this->export($this->api_version) . ";\n\n";
+    $export .= '$data = ' . ctools_export_crud_export($this->table, $this->data) . "\n\n";
     $export .= '$dependencies = ' . $this->export($this->dependencies) . ";\n\n";
     $export .= '$optional = ' . $this->export($this->optional_configurations) . ";\n\n";
     $export .= '$modules = ' . $this->export($this->required_modules) . ";";
diff --git a/lib/Drupal/configuration/Storage/StoragePhp.php b/lib/Drupal/configuration/Storage/StoragePhp.php
index fd578fa..19ca61b 100644
--- a/lib/Drupal/configuration/Storage/StoragePhp.php
+++ b/lib/Drupal/configuration/Storage/StoragePhp.php
@@ -54,10 +54,11 @@ class StoragePhp extends Storage {
 
   public function import($file_content) {
     @eval($file_content);
-    $this->data = $data;
-    $this->dependencies = $dependencies;
-    $this->optional_configurations = $optional;
-    $this->required_modules = $modules;
+    $this->data = isset($data) ? $data : NULL;
+    $this->dependencies = isset($dependencies) ? $dependencies : array();
+    $this->optional_configurations = isset($optional) ? $optional : array();
+    $this->required_modules = isset($modules) ? $modules : array();
+    $this->api_version = isset($api) ? $api : '0';
     return $this;
   }
 
@@ -89,7 +90,8 @@ class StoragePhp extends Storage {
       $data_to_export = $this->data;
     }
 
-    $export = '$data = ' . $this->export($data_to_export) . ";\n\n";
+    $export = '$api = ' . $this->export($this->api_version) . ";\n\n";
+    $export .= '$data = ' . $this->export($data_to_export) . ";\n\n";
     $export .= '$dependencies = ' . $this->export($this->dependencies) . ";\n\n";
     $export .= '$optional = ' . $this->export($this->optional_configurations) . ";\n\n";
     $export .= '$modules = ' . $this->export($this->required_modules) . ";";
diff --git a/tests/configuration.test b/tests/configuration.test
index 34efd36..f76c88d 100644
--- a/tests/configuration.test
+++ b/tests/configuration.test
@@ -13,22 +13,6 @@ class ConfigurationWebTestCase extends DrupalWebTestCase {
   protected $profile = 'standard';
 
   /**
-   * Returns a new vocabulary with random properties.
-   */
-  protected function drupalCreateVocabulary($nodes) {
-    // Create a vocabulary.
-    $vocabulary = new stdClass();
-    $vocabulary->name = $this->randomName();
-    $vocabulary->description = $this->randomName();
-    $vocabulary->machine_name = drupal_strtolower($this->randomName());
-    $vocabulary->help = '';
-    $vocabulary->nodes = array($nodes);
-    $vocabulary->weight = mt_rand(0, 10);
-    taxonomy_vocabulary_save($vocabulary);
-    return $vocabulary;
-  }
-
-  /**
    * Implementation of DrupalWebTestCase::setUp().
    */
   public function setUp($modules = array()) {
@@ -264,6 +248,19 @@ class ConfigurationImportTestCase extends ConfigurationWebTestCase {
       $this->assertTrue(in_array($config, $imported), "Configuration for $config was imported.");
     }
   }
+
+  public function testImportOldVersionToActiveStore() {
+    // Change the path from where the configurations are loaded.
+    $source = drupal_get_path('module', 'configuration') . '/tests/test_configs/';
+
+    $config = 'content_type.old_version';
+    $results = ConfigurationManagement::importToActiveStore(array($config), FALSE, FALSE, FALSE, $source);
+    $imported = $results->getInfo('imported');
+    $fail = $results->getInfo('fail');
+
+    $this->assertFalse(in_array($config, $imported), "Configuration for $config was imported.");
+    $this->assertTrue(in_array($config, $fail), "Configuration for $config was not imported.");
+  }
 }
 
 /**
diff --git a/tests/test_configs/content_type.article.inc b/tests/test_configs/content_type.article.inc
index f87592d..438dbb8 100644
--- a/tests/test_configs/content_type.article.inc
+++ b/tests/test_configs/content_type.article.inc
@@ -4,6 +4,8 @@
  * content_type.article.inc
  */
 
+$api = '2.0.0';
+
 $data = (object) array(
   'type' => 'article',
   'name' => 'Article',
diff --git a/tests/test_configs/content_type.test.inc b/tests/test_configs/content_type.test.inc
index 7cd5049..0f076ed 100644
--- a/tests/test_configs/content_type.test.inc
+++ b/tests/test_configs/content_type.test.inc
@@ -4,6 +4,8 @@
  * content_type.test.inc
  */
 
+$api = '2.0.0';
+
 $data = (object) array(
   'type' => 'test',
   'name' => 'Test',
diff --git a/tests/test_configs/field.node.body.article.inc b/tests/test_configs/field.node.body.article.inc
index 377faac..99b52e0 100644
--- a/tests/test_configs/field.node.body.article.inc
+++ b/tests/test_configs/field.node.body.article.inc
@@ -4,6 +4,8 @@
  * field.node.body.article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'field_config' => array(
     'entity_types' => array(
@@ -126,4 +128,4 @@ $optional = array();
 $modules = array(
   0 => 'field_sql_storage',
   1 => 'text',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/field.node.field_image.article.inc b/tests/test_configs/field.node.field_image.article.inc
index e49b857..8a6c064 100644
--- a/tests/test_configs/field.node.field_image.article.inc
+++ b/tests/test_configs/field.node.field_image.article.inc
@@ -4,6 +4,8 @@
  * field.node.field_image.article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'field_config' => array(
     'indexes' => array(
@@ -155,4 +157,4 @@ $optional = array();
 $modules = array(
   0 => 'field_sql_storage',
   1 => 'image',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/field.node.field_tags.article.inc b/tests/test_configs/field.node.field_tags.article.inc
index 60387dc..9c841c0 100644
--- a/tests/test_configs/field.node.field_tags.article.inc
+++ b/tests/test_configs/field.node.field_tags.article.inc
@@ -4,6 +4,8 @@
  * field.node.field_tags.article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'field_config' => array(
     'settings' => array(
@@ -114,4 +116,4 @@ $optional = array();
 $modules = array(
   0 => 'field_sql_storage',
   1 => 'taxonomy',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/image_style.custom.inc b/tests/test_configs/image_style.custom.inc
index fa9c82b..52b76ef 100644
--- a/tests/test_configs/image_style.custom.inc
+++ b/tests/test_configs/image_style.custom.inc
@@ -4,6 +4,8 @@
  * image_style.custom.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'custom',
   'effects' => array(
diff --git a/tests/test_configs/image_style.large.inc b/tests/test_configs/image_style.large.inc
index 4ddac8b..c42e3ce 100644
--- a/tests/test_configs/image_style.large.inc
+++ b/tests/test_configs/image_style.large.inc
@@ -4,6 +4,8 @@
  * image_style.large.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'effects' => array(
     0 => array(
@@ -32,4 +34,4 @@ $optional = array();
 
 $modules = array(
   0 => 'image',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/image_style.medium.inc b/tests/test_configs/image_style.medium.inc
index 9a59893..b9dbe39 100644
--- a/tests/test_configs/image_style.medium.inc
+++ b/tests/test_configs/image_style.medium.inc
@@ -4,6 +4,8 @@
  * image_style.medium.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'effects' => array(
     0 => array(
@@ -32,4 +34,4 @@ $optional = array();
 
 $modules = array(
   0 => 'image',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/menu.menu_test.inc b/tests/test_configs/menu.menu_test.inc
index 4c6f08e..f0b0313 100644
--- a/tests/test_configs/menu.menu_test.inc
+++ b/tests/test_configs/menu.menu_test.inc
@@ -4,6 +4,8 @@
  * menu.menu_test.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'menu_name' => 'menu-test',
   'title' => 'Test',
diff --git a/tests/test_configs/menu_link.3bd4fee5d9b3477e3f30a17def41c14b99bdd3b8.inc b/tests/test_configs/menu_link.3bd4fee5d9b3477e3f30a17def41c14b99bdd3b8.inc
index 3425670..85bc5eb 100644
--- a/tests/test_configs/menu_link.3bd4fee5d9b3477e3f30a17def41c14b99bdd3b8.inc
+++ b/tests/test_configs/menu_link.3bd4fee5d9b3477e3f30a17def41c14b99bdd3b8.inc
@@ -4,6 +4,8 @@
  * menu_link.3bd4fee5d9b3477e3f30a17def41c14b99bdd3b8.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'link_path' => 'admin/content',
   'link_title' => 'Level two',
diff --git a/tests/test_configs/menu_link.a6d0f08452ba53fd1b8cf291ed73479f86c70552.inc b/tests/test_configs/menu_link.a6d0f08452ba53fd1b8cf291ed73479f86c70552.inc
index 5b40acc..7621f9f 100644
--- a/tests/test_configs/menu_link.a6d0f08452ba53fd1b8cf291ed73479f86c70552.inc
+++ b/tests/test_configs/menu_link.a6d0f08452ba53fd1b8cf291ed73479f86c70552.inc
@@ -4,6 +4,8 @@
  * menu_link.a6d0f08452ba53fd1b8cf291ed73479f86c70552.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'link_path' => 'admin',
   'link_title' => 'Level one',
diff --git a/tests/test_configs/menu_link.f3aa4e71405f1a252d229e24df23187f5c0eef24.inc b/tests/test_configs/menu_link.f3aa4e71405f1a252d229e24df23187f5c0eef24.inc
index b6735a3..944d30f 100644
--- a/tests/test_configs/menu_link.f3aa4e71405f1a252d229e24df23187f5c0eef24.inc
+++ b/tests/test_configs/menu_link.f3aa4e71405f1a252d229e24df23187f5c0eef24.inc
@@ -4,6 +4,8 @@
  * menu_link.f3aa4e71405f1a252d229e24df23187f5c0eef24.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'link_path' => 'admin/config',
   'link_title' => 'Level three',
diff --git a/tests/test_configs/page_manager_handlers.page_configuration_test_page_panel_context.inc b/tests/test_configs/page_manager_handlers.page_configuration_test_page_panel_context.inc
index 6398ab1..c6fefca 100644
--- a/tests/test_configs/page_manager_handlers.page_configuration_test_page_panel_context.inc
+++ b/tests/test_configs/page_manager_handlers.page_configuration_test_page_panel_context.inc
@@ -4,6 +4,8 @@
  * page_manager_handlers.page_configuration_test_page_panel_context.inc
  */
 
+$api = '2.0.0';
+
 $data = $handler = new stdClass();
 $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
 $handler->api_version = 1;
diff --git a/tests/test_configs/page_manager_handlers.page_news_panel_context.inc b/tests/test_configs/page_manager_handlers.page_news_panel_context.inc
index c957aa8..fa42571 100644
--- a/tests/test_configs/page_manager_handlers.page_news_panel_context.inc
+++ b/tests/test_configs/page_manager_handlers.page_news_panel_context.inc
@@ -4,6 +4,8 @@
  * page_manager_handlers.page_news_panel_context.inc
  */
 
+$api = '2.0.0';
+
 $data = $handler = new stdClass();
 $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
 $handler->api_version = 1;
diff --git a/tests/test_configs/page_manager_pages.configuration_test_page.inc b/tests/test_configs/page_manager_pages.configuration_test_page.inc
index 3100a0f..2e42f9e 100644
--- a/tests/test_configs/page_manager_pages.configuration_test_page.inc
+++ b/tests/test_configs/page_manager_pages.configuration_test_page.inc
@@ -4,6 +4,8 @@
  * page_manager_pages.configuration_test_page.inc
  */
 
+$api = '2.0.0';
+
 $data = $page = new stdClass();
 $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
 $page->api_version = 1;
diff --git a/tests/test_configs/page_manager_pages.news.inc b/tests/test_configs/page_manager_pages.news.inc
index 3e43f6b..59d2191 100644
--- a/tests/test_configs/page_manager_pages.news.inc
+++ b/tests/test_configs/page_manager_pages.news.inc
@@ -4,6 +4,8 @@
  * page_manager_pages.news.inc
  */
 
+$api = '2.0.0';
+
 $data = $page = new stdClass();
 $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
 $page->api_version = 1;
diff --git a/tests/test_configs/permission.administer_content_types.inc b/tests/test_configs/permission.administer_content_types.inc
index f1b8633..0f3be61 100644
--- a/tests/test_configs/permission.administer_content_types.inc
+++ b/tests/test_configs/permission.administer_content_types.inc
@@ -4,6 +4,8 @@
  * permission.administer_content_types.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'administer content types',
   'roles' => array(
diff --git a/tests/test_configs/permission.create_article_content.inc b/tests/test_configs/permission.create_article_content.inc
index ae2baa9..9ae2f56 100644
--- a/tests/test_configs/permission.create_article_content.inc
+++ b/tests/test_configs/permission.create_article_content.inc
@@ -4,6 +4,8 @@
  * permission.create_article_content.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'create article content',
   'roles' => array(
@@ -17,4 +19,4 @@ $optional = array();
 
 $modules = array(
   0 => 'node',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/permission.delete_any_article_content.inc b/tests/test_configs/permission.delete_any_article_content.inc
index 0886221..4666598 100644
--- a/tests/test_configs/permission.delete_any_article_content.inc
+++ b/tests/test_configs/permission.delete_any_article_content.inc
@@ -4,6 +4,8 @@
  * permission.delete_any_article_content.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'delete any article content',
   'roles' => array(
@@ -17,4 +19,4 @@ $optional = array();
 
 $modules = array(
   0 => 'node',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/permission.delete_own_article_content.inc b/tests/test_configs/permission.delete_own_article_content.inc
index 6bd7449..ae6aca9 100644
--- a/tests/test_configs/permission.delete_own_article_content.inc
+++ b/tests/test_configs/permission.delete_own_article_content.inc
@@ -4,6 +4,8 @@
  * permission.delete_own_article_content.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'delete own article content',
   'roles' => array(
@@ -17,4 +19,4 @@ $optional = array();
 
 $modules = array(
   0 => 'node',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/permission.edit_any_article_content.inc b/tests/test_configs/permission.edit_any_article_content.inc
index 7763c68..f77f475 100644
--- a/tests/test_configs/permission.edit_any_article_content.inc
+++ b/tests/test_configs/permission.edit_any_article_content.inc
@@ -4,6 +4,8 @@
  * permission.edit_any_article_content.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'edit any article content',
   'roles' => array(
@@ -17,4 +19,4 @@ $optional = array();
 
 $modules = array(
   0 => 'node',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/permission.edit_own_article_content.inc b/tests/test_configs/permission.edit_own_article_content.inc
index 68a50d0..dbc554c 100644
--- a/tests/test_configs/permission.edit_own_article_content.inc
+++ b/tests/test_configs/permission.edit_own_article_content.inc
@@ -4,6 +4,8 @@
  * permission.edit_own_article_content.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'edit own article content',
   'roles' => array(
@@ -17,4 +19,4 @@ $optional = array();
 
 $modules = array(
   0 => 'node',
-);
\ No newline at end of file
+);
diff --git a/tests/test_configs/permission.use_text_format_custom.inc b/tests/test_configs/permission.use_text_format_custom.inc
index 830f1db..b38e2b0 100644
--- a/tests/test_configs/permission.use_text_format_custom.inc
+++ b/tests/test_configs/permission.use_text_format_custom.inc
@@ -4,6 +4,8 @@
  * permission.use_text_format_custom.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'permission' => 'use text format custom',
   'roles' => array(
diff --git a/tests/test_configs/role.developer.inc b/tests/test_configs/role.developer.inc
index 51a84ad..f675c86 100644
--- a/tests/test_configs/role.developer.inc
+++ b/tests/test_configs/role.developer.inc
@@ -4,6 +4,8 @@
  * role.developer.inc
  */
 
+$api = '2.0.0';
+
 $data = (object) array(
   'name' => 'Developer',
   'weight' => '4',
diff --git a/tests/test_configs/text_format.custom.inc b/tests/test_configs/text_format.custom.inc
index ffdd7ca..d89750d 100644
--- a/tests/test_configs/text_format.custom.inc
+++ b/tests/test_configs/text_format.custom.inc
@@ -4,6 +4,8 @@
  * text_format.custom.inc
  */
 
+$api = '2.0.0';
+
 $data = (object) array(
   'format' => 'custom',
   'name' => 'Custom',
diff --git a/tests/test_configs/variable.comment_default_per_page_article.inc b/tests/test_configs/variable.comment_default_per_page_article.inc
index f88f533..8e83f46 100644
--- a/tests/test_configs/variable.comment_default_per_page_article.inc
+++ b/tests/test_configs/variable.comment_default_per_page_article.inc
@@ -4,6 +4,8 @@
  * variable.comment_default_per_page_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'comment_default_per_page_article',
   'content' => '50',
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.comment_form_location_article.inc b/tests/test_configs/variable.comment_form_location_article.inc
index df3216a..8ed5483 100644
--- a/tests/test_configs/variable.comment_form_location_article.inc
+++ b/tests/test_configs/variable.comment_form_location_article.inc
@@ -4,6 +4,8 @@
  * variable.comment_form_location_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'comment_form_location_article',
   'content' => 1,
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.comment_preview_article.inc b/tests/test_configs/variable.comment_preview_article.inc
index 3a63cd7..4a2e677 100644
--- a/tests/test_configs/variable.comment_preview_article.inc
+++ b/tests/test_configs/variable.comment_preview_article.inc
@@ -4,6 +4,8 @@
  * variable.comment_preview_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'comment_preview_article',
   'content' => '1',
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.comment_subject_field_article.inc b/tests/test_configs/variable.comment_subject_field_article.inc
index 17c6a7e..575497b 100644
--- a/tests/test_configs/variable.comment_subject_field_article.inc
+++ b/tests/test_configs/variable.comment_subject_field_article.inc
@@ -4,6 +4,8 @@
  * variable.comment_subject_field_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'comment_subject_field_article',
   'content' => 1,
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.field_bundle_settings_node__article.inc b/tests/test_configs/variable.field_bundle_settings_node__article.inc
index ffe83a7..3131354 100644
--- a/tests/test_configs/variable.field_bundle_settings_node__article.inc
+++ b/tests/test_configs/variable.field_bundle_settings_node__article.inc
@@ -4,6 +4,8 @@
  * variable.field_bundle_settings_node__article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'field_bundle_settings_node__article',
   'content' => NULL,
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.language_content_type_article.inc b/tests/test_configs/variable.language_content_type_article.inc
index 9029016..62b1c36 100644
--- a/tests/test_configs/variable.language_content_type_article.inc
+++ b/tests/test_configs/variable.language_content_type_article.inc
@@ -4,6 +4,8 @@
  * variable.language_content_type_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'language_content_type_article',
   'content' => NULL,
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.node_options_article.inc b/tests/test_configs/variable.node_options_article.inc
index 36689ea..98163bd 100644
--- a/tests/test_configs/variable.node_options_article.inc
+++ b/tests/test_configs/variable.node_options_article.inc
@@ -4,6 +4,8 @@
  * variable.node_options_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'node_options_article',
   'content' => array(
@@ -16,4 +18,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.node_preview_article.inc b/tests/test_configs/variable.node_preview_article.inc
index 63e559d..4d7c6d8 100644
--- a/tests/test_configs/variable.node_preview_article.inc
+++ b/tests/test_configs/variable.node_preview_article.inc
@@ -4,6 +4,8 @@
  * variable.node_preview_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'node_preview_article',
   'content' => '1',
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.node_submitted_article.inc b/tests/test_configs/variable.node_submitted_article.inc
index 7a3dfcf..31ccab7 100644
--- a/tests/test_configs/variable.node_submitted_article.inc
+++ b/tests/test_configs/variable.node_submitted_article.inc
@@ -4,6 +4,8 @@
  * variable.node_submitted_article.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'node_submitted_article',
   'content' => 1,
@@ -13,4 +15,4 @@ $dependencies = array();
 
 $optional = array();
 
-$modules = array();
\ No newline at end of file
+$modules = array();
diff --git a/tests/test_configs/variable.site_name.inc b/tests/test_configs/variable.site_name.inc
index 04862ea..37c2843 100644
--- a/tests/test_configs/variable.site_name.inc
+++ b/tests/test_configs/variable.site_name.inc
@@ -4,6 +4,8 @@
  * variable.site_name.inc
  */
 
+$api = '2.0.0';
+
 $data = array(
   'name' => 'site_name',
   'content' => 'My Drupal Site',
diff --git a/tests/test_configs/views_view.news_recent.inc b/tests/test_configs/views_view.news_recent.inc
index 64ca519..7c639ae 100644
--- a/tests/test_configs/views_view.news_recent.inc
+++ b/tests/test_configs/views_view.news_recent.inc
@@ -4,6 +4,8 @@
  * views_view.news_recent.inc
  */
 
+$api = '2.0.0';
+
 $data = $view = new view();
 $view->name = 'news_recent';
 $view->description = '';
diff --git a/tests/test_configs/views_view.test.inc b/tests/test_configs/views_view.test.inc
index b078e32..b894ab7 100644
--- a/tests/test_configs/views_view.test.inc
+++ b/tests/test_configs/views_view.test.inc
@@ -4,6 +4,8 @@
  * views_view.test.inc
  */
 
+$api = '2.0.0';
+
 $data = $view = new view();
 $view->name = 'test';
 $view->description = '';
diff --git a/tests/test_configs/vocabulary.tags.inc b/tests/test_configs/vocabulary.tags.inc
index 7d70398..f4ea638 100644
--- a/tests/test_configs/vocabulary.tags.inc
+++ b/tests/test_configs/vocabulary.tags.inc
@@ -4,6 +4,8 @@
  * vocabulary.tags.inc
  */
 
+$api = '2.0.0';
+
 $data = (object) array(
   'name' => 'Tags',
   'machine_name' => 'tags',
@@ -34,4 +36,4 @@ $optional = array();
 
 $modules = array(
   0 => 'taxonomy',
-);
\ No newline at end of file
+);
diff --git a/ui/configuration_ui.admin.inc b/ui/configuration_ui.admin.inc
index 50a51d5..3c0db11 100644
--- a/ui/configuration_ui.admin.inc
+++ b/ui/configuration_ui.admin.inc
@@ -314,12 +314,18 @@ function configuration_ui_activate_form_submit($form, &$form_state) {
   $revert_dependencies = $form_state['values']['include_dependencies'];
   $revert_optionals = $form_state['values']['include_optionals'];
   $result = ConfigurationManagement::importToActiveStore($args, $revert_dependencies, $revert_optionals);
-  $configurations = $result->getInfo('imported');
-  if (!empty($configurations)) {
-    foreach ($configurations as $configuration) {
+  $imported_configurations = $result->getInfo('imported');
+  if (!empty($imported_configurations)) {
+    foreach ($imported_configurations as $configuration) {
       drupal_set_message(t('Reverted @configuration.', array('@configuration' => $configuration)));
     }
   }
+  $non_imported_configurations =  $result->getInfo('fail');
+  if (!empty($non_imported_configurations)) {
+    foreach ($non_imported_configurations as $configuration) {
+      drupal_set_message(t('@configuration could not be imported.', array('@configuration' => $configuration)), 'error');
+    }
+  }
 }
 
 /**
@@ -334,7 +340,7 @@ function configuration_ui_stop_tracking_form_submit($form, &$form_state) {
   $configurations = $result->getInfo('untracked');
   if (!empty($configurations)) {
     foreach ($configurations as $configuration) {
-      drupal_set_message(t('Untracked @configuration.', array('@configuration' => $configuration)));
+      drupal_set_message(t('Untracked @configuration', array('@configuration' => $configuration)));
     }
   }
 }
