Hello,
I have to use "Domain Access Entity" (https://drupal.org/project/domain_entity) to separate products's stores of differents domains.
But when I want feed the products, I have this:

error:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'domain_c2345c960dca7259cf7ca40b6_domain_id' cannot be null

Log Message : (Entity)

stdClass::__set_state(array(
   'type' => 'Bague',
   'product_id' => '857',
   'is_new' => true,
   'revision_id' => '936',
   'uid' => '1',
   'status' => 1,
   'created' => 1399624947,
   'changed' => 1399624947,
   'log' => 'Created by FeedsCommerceProductProcessor',
   'feeds_item' => 
  stdClass::__set_state(array(
     'is_new' => true,
     'entity_id' => 0,
     'entity_type' => 'commerce_product',
     'id' => 'bijoux_produit',
     'feed_nid' => 0,
     'imported' => 1399624947,
     'hash' => '7d56d333308d3569aa1528b52bfc8de6',
     'url' => '',
     'guid' => 'BAG_or_bl_dia_000_FAM_F',
  )),
   'sku' => 'BAG_or_bl_dia_000_FAM_F',
...
   'domains' => 
  array (
    4 => 0,
    1 => 0,
  ),
   'domain_site' => 0,
   'revision_timestamp' => 1399624947,
   'revision_uid' => '1',
   'domain_c2345c960dca7259cf7ca40b6' => 
  array (
    'und' => 
    array (
      0 => 
      array (
        'value' => 0,
      ),
    ),
  ),
...
))

In "/admin/reports/fields", I have:
domain_entity

I have already patched "domain_feeds" with:

I'm a little lost, can anyone help me please.
I would like to avoid going all the products by hand... :-(
thank you.

CommentFileSizeAuthor
Sélection_058.png32.27 KBsteveoriol

Comments

  • Jim.M committed 84d80be on 7.x-1.x
    Issue #2262705: Issue with "Domain Access Entity" use on "...
jim.m’s picture

Version: 7.x-1.1 » 6.x-1.0
Status: Active » Fixed

Finally I was able to get into it. I've added a submodule to provide such integration, enjoy!

A little note: because of too liberate checking of data structure existence in domain_entity_entity_presave function in the 1.4 release of Domain Access Entity module this submodule's "Send to All" feature doesn't work, so use the dev version or 1.5 when it comes. Multiple domains setting works fine with the current release.

jim.m’s picture

Version: 6.x-1.0 » 7.x-1.2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.