Skip Navigation

[Resolved] imorting repeating field groups not working

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to import repeatable field groups with Ultimate CSV Importer plugin.

Solution:

For "Ultimate CSV Importer" plugin, please check this document:

https://toolset.com/course-lesson/how-to-import-posts-from-csv-files-and-maintain-relationships-when-using-the-csv-importer-plugin/

Relevant Documentation:

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 18 replies, has 2 voices.

Last updated by BrandenT2154 3 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1810555

I am trying to follow this example: https://toolset.com/course-lesson/importing-repeatable-field-groups-when-using-the-csv-importer-plugin/

in order to import data into a repeating field group for my custom post type "Sensors And Sensing Switches"

I have made a file which is exactly like the documentation. however when I import it, the repeating field group is not populated.

you can see the file here: hidden link

you can see the resulting imported post here: hidden link
you'll notice that the repeating field data did not import. Feel free to delete it and try the import again to see what happens.

You will likley need to log in, TO DO SO CLICK HERE: hidden link

#1810961

Hello,

The Toolset repeating field group is based on one-to-many relationship, in order to import the relationship, you will need to install the "WP All Import – Toolset Types Add-On" plugin, see our document:
https://toolset.com/course-lesson/import-posts-from-csv-with-relationships-using-wp-all-import/

#1811319

i need to use Ultimate CSV Importer plugin like you have in your documentation here: https://toolset.com/course-lesson/importing-repeatable-field-groups-when-using-the-csv-importer-plugin/ not WP All Import

#1811915

For "Ultimate CSV Importer" plugin, please check this document:
https://toolset.com/course-lesson/how-to-import-posts-from-csv-files-and-maintain-relationships-when-using-the-csv-importer-plugin/

As I mentioned above, Toolset repeating field group is based on one-to-many relationship, and the relationship slug is same as repeating field group slug.

#1812337

thank you, i understand that Toolset repeating field group is based on one-to-many relationship, and the relationship slug is same as repeating field group slug. but what you are suggesting does not help, because of the way my CSV data is structured.

I have lots of data, and it is structured exactly like this tutorial: https://toolset.com/course-lesson/importing-repeatable-field-groups-when-using-the-csv-importer-plugin/ I need to follow this tutorial exactly, because I have lots of data that was formatted this way, and lots of repeatable field groups. Its not feasible to create separate sheets for all of them where each repeating group is a seperate line. this method combines them into one line for each post.

I know this method is possible because I have used it with toolset on another project (and because it is in your documentation) - however the import is not working, and I am hoping that toolset support can explain why, or help me fix it.

here one line of my data, with other fields stripped out as an example: hidden link

again, just for clarification, i can not use this method: https://toolset.com/course-lesson/how-to-import-posts-from-csv-files-and-maintain-relationships-when-using-the-csv-importer-plugin/

instead i need to use this method: https://toolset.com/course-lesson/importing-repeatable-field-groups-when-using-the-csv-importer-plugin/

#1813409

Thanks for the details, since it is a compatibility issue within the Ultimate CSV Importer plugin, according to our workflow, I need to provide detail steps to reproduce the same problem in a fresh WP installation, but I don't have a copy of it in my localhost, please provide a downloadable URL for it, I need to duplicate the same problem in my localhost, thanks

#1815855

Sorry, maybe I am not describe it clearly.

In order to duplicate the same problem, I need the latest version of "Ultimate CSV Importer" plugin, can you put this plugin into your google drive disk, share the link in below private message box, thanks

#1817113

Requested the access, please grant it.

#1818311

i have granted you access, and changed the link so that anyone with a link can view. sorry about that hidden link

#1818765

Thanks for the details, I can download the file, will update here if find anything

#1819787

The plugin file you provided is "WP Ultimate CSV Importer - Custom Fields Import" version 2.0.5, but according to our document:
https://toolset.com/course-lesson/import-csv-ultimate-csv-importer-plugin/
It requires the plugin "WP Ultimate CSV Importer Pro plugin".

And I have checked it in their website:
hidden link

The latest version of "WP Ultimate CSV Importer Pro plugin" is 6.2, it seems you are using wrong plugin, I suggest you check it with
"WP Ultimate CSV Importer Pro plugin" support.

And according to their document:
hidden link

It is the same column name "Parent_Group" as our document

#1821085

yes, here is the correct plugin. appologies for the mix up.
hidden link

I can see now that if I import the attached CSV, and view the admin edit post screen, the import does indeed import the values into the post. great!

However, as you can see here: hidden link toolset seems to be displaying more fields than the ones directly related to the post.

here is the view which is supposed to display the RFG. the view has the appropirate filter which restricts items to those in a relationship hidden link

however, if i create a post manually, like this one: hidden link the view displays correctly.

#1821759

Thanks for the details, I can download the files, will update here if find anything

#1821933

I have checked it in your website, I assume we are talking about the repeatable field groups "Air Filter Inlet Pricing", and I have done below modifications in your website:
Edit the post view:
hidden link
In section "Query Filter", change the filter to:
Select items from the Air Filter Inlet Pricing group that are related to the Post where this View is shown.

Please test again check if it is fixed, thanks

#1824219

I see that that worked, however if you select that option, the pricing will not display for other post types: hidden link

if, instead I use "Select items in any relationship" it will display on all of the other post types as intended, and it will do so correctly as long as I create the post manually. It only displays a bunch of unrelated data if imported.

I would like to understand _why_ these other repeating field groups are displaying in the loop. They should not display since they have no relation to the post in the view, and if I create the post manually this does not happen. here is a manual example: hidden link

I notice that the same repeating problem happens for the 'tech data' view which displays data from the "Tech Data" RFG.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.