Json import fails both local and remotely
- Davide Cardea
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
8 years 8 months ago #3553
by Davide Cardea
Json import fails both local and remotely was created by Davide Cardea
Hello, I'm using the latest vData version on the latest Joomla version (3.6.5) and I'm experiencing issues on importing data from a remote server (json API).
I successfully created a profile, selected it on the import panel, then specified and url with parameters and login/password (http://username:password@myDataToBeImported.com/parameters... this url works and gives back a valid son when called by browser) when I go on to import, it goes on the next page "Import details" where I deselect quick import and chose "load fields", it loads my local DB columns but nothing is really loaded from the remote one: I can't select any remote columns.
Same thing happens if I try the same procedure uploading a .json file (attached).
Please let me know if I'm doing something wrong or if there's a known bug (I'm using mac and tested with both the latest Safari and the latest Chrome).
Thank you.
I successfully created a profile, selected it on the import panel, then specified and url with parameters and login/password (http://username:password@myDataToBeImported.com/parameters... this url works and gives back a valid son when called by browser) when I go on to import, it goes on the next page "Import details" where I deselect quick import and chose "load fields", it loads my local DB columns but nothing is really loaded from the remote one: I can't select any remote columns.
Same thing happens if I try the same procedure uploading a .json file (attached).
Please let me know if I'm doing something wrong or if there's a known bug (I'm using mac and tested with both the latest Safari and the latest Chrome).
Thank you.
Please Log in to join the conversation.
8 years 8 months ago #3554
by Daniel
Thanks
Daniel
Replied by Daniel on topic Json import fails both local and remotely
Hello Davide,
I checked the JSON file you are trying to import. It contains a single Object only. While you are expected to import an array of objects even if It's a single record. You need to put that within the brackets []
If you still find some issues, Please share your backend & FTP login credentials via contact us form, We'll look into it.
I checked the JSON file you are trying to import. It contains a single Object only. While you are expected to import an array of objects even if It's a single record. You need to put that within the brackets []
If you still find some issues, Please share your backend & FTP login credentials via contact us form, We'll look into it.
Thanks
Daniel
Please Log in to join the conversation.
- Davide Cardea
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
8 years 8 months ago #3555
by Davide Cardea
Replied by Davide Cardea on topic Json import fails both local and remotely
Thank you for looking into this.
do you mean I have to add that [] in the remote url field?
Something like http://username:password@myDataToBeImported.com/parameters/[1]
Thank you
do you mean I have to add that [] in the remote url field?
Something like http://username:password@myDataToBeImported.com/parameters/[1]
Thank you
Please Log in to join the conversation.
8 years 8 months ago #3556
by Daniel
Thanks
Daniel
Replied by Daniel on topic Json import fails both local and remotely
No, It needs to be added in JSON output which contains the actual data.
Thanks
Daniel
Please Log in to join the conversation.
- Davide Cardea
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
8 years 8 months ago #3557
by Davide Cardea
Replied by Davide Cardea on topic Json import fails both local and remotely
I'm calling an API service that it's not managed by me.
I called a list of objects (2) and attached is what I receive. I see [] around "Progetti" but it's still not working with vData.
Any ideas?
Alternatively can you provide a json example that works with vData?
Thank you
I called a list of objects (2) and attached is what I receive. I see [] around "Progetti" but it's still not working with vData.
Any ideas?
Alternatively can you provide a json example that works with vData?
Thank you
Please Log in to join the conversation.
8 years 8 months ago #3558
by Daniel
Thanks
Daniel
Replied by Daniel on topic Json import fails both local and remotely
Hello,
You can export any profile data in JSON format to have a look at it. And we can make the necessary changes in the script to allow you import data in same format. Please share your backend & FTP login credentials, We'll look into it.
You can export any profile data in JSON format to have a look at it. And we can make the necessary changes in the script to allow you import data in same format. Please share your backend & FTP login credentials, We'll look into it.
Thanks
Daniel
Please Log in to join the conversation.