Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Datagrab Not Displaying JSON Data From Arrays

Status Resolved
Add-on / Version DataGrab 4.0.3
Severity
EE Version 6.3.4

Doug Black

May 13, 2022

Looking to move data from one site to the other, and appears that the JSON feed is not bringing in the array of grid fields I set up in the feed.

In the feed it displays the outgoing data as a json array of objects, so I can bring in the fields to the grid appropriately.

However, in the select box for the grid field, the JSON array field is not displayed at all as an option.

There is no data in the logs.

#1

BoldMinded (Brian)

May 13, 2022

Can you share your import file so I can try to import it locally?

FYI I might not be able to really dig into this until early next week.

#2

BoldMinded (Brian)

May 13, 2022

Regarding the import file, I don’t need every entry to import, just send an import file with 2 or 3 entries in it.

#3

Doug Black

May 13, 2022

Comment has been marked private.

#4

BoldMinded (Brian)

May 13, 2022

Oh, sorry. I didn’t even click that b/c I thought it was the site itself. Thanks

#5

Doug Black

May 13, 2022

No worries! Site itself is still fully local. Production site has all of the old data.

#6

BoldMinded (Brian)

May 13, 2022

Ah, it’s because the first entry in the list doesn’t have those nodes. If the first entry has that nested object then it seems to work fine.

#7

Doug Black

May 13, 2022

I won’t have a lot of control over that kind of thing. Would that need to get fixed in the add-on? Or is there something else I should be doing on my end?

#8

BoldMinded (Brian)

May 13, 2022

Something to fix in the add-on. The previous release “fixed” one issue, but created this new issue.

#9

BoldMinded (Brian)

May 13, 2022

Comment has been marked private.

#10

Doug Black

May 13, 2022

That fixed it! Thanks Brian

#11

Doug Black

May 15, 2022

One more thing on this, when adding in the data from this feed, I get a notice and an error:

Undefined index: cf
user/addons/datagrab/mcp.datagrab.php, line 998
Severity: E_NOTICE

TypeError Caught
Argument 3 passed to Datagrab_grid::save_configuration() must be of the type array, null given, called in user/addons/datagrab/mcp.datagrab.php on line 998

Here’s video walkthrough: https://youtu.be/ISa0tYOMnYI

#12

BoldMinded (Brian)

May 16, 2022

Doug, did you try to delete and re-create the import configuration?

#13

Doug Black

May 16, 2022

It won’t even let me save the initial one.

#14

BoldMinded (Brian)

May 16, 2022

Comment has been marked private.

#15

Doug Black

May 16, 2022

Perfect, that worked to save and import! Thanks Brian!

#16

BoldMinded (Brian)

May 16, 2022

Comment has been marked private.

Login to reply