Publisher does not support the Fluid field type. 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: Importing into Assets field in Grid field after updating DG

Status Resolved
Add-on / Version DataGrab 5.0.2
Severity
EE Version 7.2.12

John Faulds

Apr 27, 2023

Following on from https://boldminded.com/support/ticket/2580 I’ve now updated DG to 5.0.2 and am back to the problem described in the other ticket, i.e. images not being imported.

Nothing about the XML file I’m importing differs from before except its source (now coming from another locally-hosted site rather than a remote server).

As mentioned on Slack, I’m also not getting anything added to the log file anymore.

#1

BoldMinded (Brian)

John can you walk me through this b/c you said “the problem described in the other ticket” - which problem? The one initially reported in the ticket? Is the configuration still the same as pictured in the image in the other thread where the Colors grid field has the Image column and you’re trying to attach a file to the Assets field inside of Grid, and the file already exists in Assets (e.g. you can find the file when navigating the Assets module)?

Perhaps a video of what you’re seeing… the XML file with the image path, the file currently residing in the Assets module, the DataGrab import config etc. I’m still unable to replicate this… so something you’re doing is different than what I’m doing and I don’t know what that might be.

#2

John Faulds

Comment has been marked private.

#3

BoldMinded (Brian)

Did you try setting the “Action to take when an entry is updated” option to “Delete all existing rows” and running it? I setup a basic test and it still works for me with DG 5, the same build you have.

https://capture.dropbox.com/VCThLLcNHtHPRKuA

#4

BoldMinded (Brian)

I had to change the xml to match file names that already exist in Assets (it won’t upload any new files, just assigns existing files in Assets to the entry)

#5

John Faulds

Sorry, I’m an idiot and have been wasting your time. The problem was that I’d downloaded all the images to my local from the production server but hadn’t run Assets update indexes. So all the files existed on the system, but weren’t referenced in the database.

Apologies for wasting your time.

#6

BoldMinded (Brian)

No worries at all! I’m glad you figured it out and it didn’t end up being some huge bug 😊

Login to reply