Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gijs 38 posts 133 karma points
    Nov 19, 2013 @ 14:26
    Gijs
    0

    Which file does a child definition use on re-runs?

    I'm not sure if this is a question or bug report.

    I have the following setup of import definitions for imports in uWebshop

    - Import products

      -- Import product variants

    If I run Import products again, with a new xlsx-file, CMSImport warns me that Import product variants will be run as well. That's expected behavior.

    Unexpected behavior though is that 'Import product variants' doesn't run with the new xlsx, but with an old one. The imported files are stored in App_Data\cmsimport prefixed with a guid, and I suspect that the child definition runs with an older version of the same file.

    If I walk through the import definition of the child (and as such upload the new file), and save the import definition without running it, and then I run the parent import definition with the new file (and as such upload the new file again) it does import the child definition correctly, but I suspect that it still imports an old version. But since I've uploaded a new old version (so to speak), it seems to work.

    The fix for now is running the child definition manually after I run the parent.

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 19, 2013 @ 14:34
    Richard Soeteman
    100

    Hi Gijs,

    It's using the old one indeed. The message is only to warn you that child definitions will also execute. What you can do is add the excel file to a folder and use the url option to point to the excel file. Then you are always sure that the latest file is being picked up instead of the file you uploaded directly to the import definition.

    Thanks,

    Richard

  • Gijs 38 posts 133 karma points
    Nov 19, 2013 @ 14:36
    Gijs
    0

    Why didn't I think about that myself?

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft