Score:2

Migrate order billing profile

gg flag

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?

miststudent2011 avatar
fr flag
Is it your exact yml definition? There seems alignment error. Try to align it properly.
miststudent2011 avatar
fr flag
Yml is highly indentation sensitive.
Delford Chaffin avatar
gg flag
@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.
Score:0
gg flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.