2

I'm trying to migrate order data from an existing site using CSV files and I can't get the billing profile to relate.

In trying to troubleshoot this, I have it set just to insert a default value of a known profile and it's still not working for me. Currently, in the process section of my YML migration file I have these lines, but I still end up with <null> in the database.

billing_profile/target_id:
  plugin: default_value
  default_value: 34338

I have also tried billing_profile__target_id and billing_profile/0/target_id instead of billing_profile/target_id.

What am I missing?

3
  • 1
    Is it your exact yml definition? There seems alignment error. Try to align it properly. Sep 25 at 12:51
  • 2
    Yml is highly indentation sensitive. Sep 25 at 12:51
  • @miststudent2011 - That wasn't exactly spaced out like I had it, but I made some changes and now that is what I have. I think the problem is in addressing the property, but am unsure how to do it correctly. Sep 27 at 13:35
0

OK, I figured it out. I'm new to using the Migrate system, so this may apply to anything with revisions like this, but apparently you MUST set both.

billing_profile/target_id:
  plugin: default_value
  default_value: 34338
billing_profile/target_revision_id:
  plugin: default_value
  default_value: 34338

Only setting target_id fails.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.