Hi Sebastian, Yes, you need to provide the whole transaction data, not the product and user as much as I know, but not sure if that it works too. Normally you post a transection data, and when you have to tell more about the user (like: the purchased address, device, category) or about the product (like division, price etc.) you can attach them into properties.
Also the data in the gitlab was designed for the Recommendation template but that works fine with the UR as well. You need to follow the subsequent template docs to see what types of event it needs. Hope this helps, thanks Vaghawan On Sat, Jul 8, 2017 at 1:37 PM, Kenneth Chan <[email protected]> wrote: > re: " i’m always getting an exception with the initial load from User & > Product" > what's the error you got? > > On Fri, Jul 7, 2017 at 12:46 PM, Sebastian Fix <[email protected] > > wrote: > >> Hello together, >> >> I finally got the System running and would like to import some initial >> data now. >> >> I’m using the E-Commerce-Template: http://pr >> edictionio.incubator.apache.org/templates/ecommercerecommend >> ation/quickstart/ >> >> I've the following data’s i would like to import: >> >> - User data >> >> >> - Products data >> >> >> - Transaction data >> >> >> When i try to use the *pio import --appid 1 --input >> import/data-user.json* command i’m always getting an exception with the >> initial load from User & Product. My .json file is following the structure >> mentioned on the tutorial. >> >> >> - For User Data: {"event":"$set","entityType":" >> user","entityId":"user001","eventTime":““} >> - For Products {"event":"$set","entityType“: >> "item","entityId“:"product001","eventTime":““} >> >> >> - For Transactions: {"entityId“:"user001","entityType":"user","eve >> nt":"buy","targetEntityType":"item","targetEntityId“:"product001“} >> >> >> Only the Import for Transactions is working I found this template here: >> https://gist.github.com/vaghawan/0a5fb8ddb85e03631dd50 >> 0d7c8f0677d#file-data-sample-json >> >> So my quesiton, how can I import Data’s like >> >> >> - User Data >> - User Categories >> - Product Data >> - Product Categories >> >> >> with a .json file? What is the file structure? >> >> Thanks for any help, >> Sebastian >> >> >> >
