+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Imported product files upload, but don't associate to the product?

Imported product files upload, but don't associate to the product?

5 posts, 0 answered
  1. Ryan
    Ryan avatar
    57 posts
    Registered:
    07 May 2013
    16 Apr 2014
    Link to this post

    I followed the steps here and am able to import products successfully into my website: http://www.sitefinity.com/blogs/team-blog/2012/05/10/sitefinity_ecommerce_ndash_importing_products_into_sitefinity_ecommerce. All native fields, custom fields, and tags lists import correctly. 

     However, the problem is documents/files. I specify a public path to a document (local path, as the site is localhost) and while I see the document is uploaded correctly into the library, it doesn't actually get associated with the product it's for. 

    Sure, I can go to that new product and browse for the document (already in the library) and publish it, but to do this for hundreds of products is out of the question. 

    I do not get any errors, not does the statistics object returned from the import indicate any errors. 

    Only thing I did notice though, is the version of the Telerik.Sitefinity.Samples.Ecommerce.ProductUpload.dll I got from NuGet is referencing an older version of Sitefinity assemblies: 6.0.4100.0. My version is 6.1.4600. Did something change in how these versions publish documents/files? My version of the NuGet package is 2.0. 

    Thanks.

  2. Ryan
    Ryan avatar
    57 posts
    Registered:
    07 May 2013
    16 Apr 2014 in reply to Ryan
    Link to this post

    One thing I noticed while attempting to look through the code, is that the part where it uploads the file and then builds an association to the product is wrapped in a try/catch where the exception is swallowed. 

    EDIT: I confirmed that images seem to work just fine. The issue appears to be related only to documents/files. 

  3. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    21 Apr 2014
    Link to this post
    Hello Ryan,

    The current implementation of the Product Import is available in our Sitefinity Ecommerce Github profile. You can download it from there and modify everything you need, since it is an open source project. More information about the product import sample you can find in our documentation.
    I hope you find this helpful.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Ryan
    Ryan avatar
    57 posts
    Registered:
    07 May 2013
    21 Apr 2014 in reply to Nikola Zagorchev
    Link to this post

    The newer version on Github seems to have fixed the issue. Thanks.

  5. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    23 Apr 2014
    Link to this post
    Hello Ryan,

    I am glad you have solved the issue. Refer to our GitHub SDK portal for samples and resources, since it is where they are most up-to-date.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
5 posts, 0 answered