Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 Jul 2017 08:20 AM by  Ton Hermes
How to delete all products etc.
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages


Basic Member


Posts:281
Basic Member


--
19 Jul 2017 04:59 PM

    Hi Stephen,

    While uploading I made some mistakes.
    When I click on a item I get the following message in the event viewer.

    An item with the same key has already been added.

    Is it possible to delete all product and related tables tables with a sql command.
    If so, where to find this?
    Or is there another way to start from begin and still keeping the communications and shipping tables?

    Regards, Ton

    An item with the same key has already been added.

    0


    Basic Member


    Posts:281
    Basic Member


    --
    21 Jul 2017 01:42 PM

    Hi Stephen,

    I have emptied all the tables confirming the article in the knowledge base

    ->How to migrate product data.

    All the tables are empty, except the "Tax" table.
    This table is related to the "Shipping Method" table.
    This is ok, because there is only 1 record in this table, and I want to keep the shipping table.

    However, when I import the categories again, then the parent categories are accepted with the old categoryID, except the child categories.
    Then I get a message "invalid parent categoryID".

    When I check this manually in the SF interface, then I noticed that the numbering of the category ID's does not start with 0 after deleting the category table.

    How to set the numbering of the ID's for this of other tables to 0?

    Regards, Ton

    0


    Veteran Member


    Posts:2957
    Veteran Member


    --
    28 Jul 2017 09:35 PM
    Hi Ton

    Personally, i wouldn't worry about the ID values that continue to grow if that is what you are concerned with. They don't show up especially when using advanced URL format. For importing purposes, you can use Object keys to reference parent objects instead of by ID number that makes it easier. Take a look here under Object identifer and keys section.

    http://www.revindex.com/R...port-export-overview

    If you absolutely want to reset the ID so it starts the next insert from 1, take a look here using SQL (advanced topic, take backup first) :

    https://docs.microsoft.co...ckident-transact-sql

    0


    Basic Member


    Posts:281
    Basic Member


    --
    29 Jul 2017 08:20 AM

    Hi Stephen,

    Thanks for your answer.
    It is clear to me that I have to leave the idea to get an exact mirror of the database.
    I was presuming to upload my tables to 2 different databases.
    I know know that this an almost impossible task.
    the numbering of the id will be always different.

    Regards, Ton

    0
    You are not authorized to post a reply.