I'm importing a JSON feed into entries in my EE site (v2.9.2) using Solspace Importer (v2.2.5). Everything seemed to work fine - we've been using it in dev for weeks and have run many imports to update entries. Unfortunately, we just noticed that the data that is being imported into Matrix fields isn't keeping it's organization.
Here is an example node from the feed (I can't share the actual feed because it's sensitive data):
"Scott-Stephanie-2015-03-18-20:48:17": {
"id": "2242e4a8-b2b2-3ada-adf9",
"region": "Southwest",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": "",
"video": "",
"first_name1": "Scott",
"first_name2": "Stephanie",
"title": "Our Family Profile",
"status": "open",
"paragraphs": [{
"title": "Paragraph 1",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": "https://www.example-image.com/image1.jpg"
}, {
"title": "Paragraph 2",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": "https://www.example-image.com/image2.jpg"
}, {
"title": "Paragraph 3",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": ""
}, {
"title": "Paragraph 4",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": ""
}, {
"title": "Paragraph 5",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": "https://www.example-image.com/image5.jpg"
}, {
"title": "Paragraph 6",
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"link": "https://www.example-image.com/image6.jpg"
}]
}
You'll see there is a node called "paragraphs" that has values for "title", "text" and "link", the "link" being an image to go along with the paragraph. Unfortunately, there isn't always an image, so it may be empty.
The problem I'm having is that Importer is ignoring the empty values and grabbing the next available node. So, in the case of the example above, "image5.jpg" is getting placed in the Matrix row with "Paragraph 3" and "image6.jpg" is getting placed in the Matrix row with "Paragraph 4". The Matrix rows for paragraphs 5 & 6 will have empty "link" values in EE.
Here is a screenshot of my Importer setup for the "paragraphs" node:
Here is a screenshot of my Matrix settings:
I've tried to keep it as simple as possible. Any ideas what the issue is?