Hi!
I agree this is an issue related to options and sort order of them. I suggest running the following script and trying importing again. It might help at least
/**
This function is used for cleaning up gaps of sort_order column in table optionvalue.
An example of corrupted sort_orders can be [2,5,7].
After cleaning up, the correct sort_order list should be [1,2,3].
Usage:
1) Execute below query to create function clean_up_option_sort_order().
2) Call function by execute "select clean_up_option_sort_order()".
3) Restart the server to make sure the application cache will be updated with all changes made by this script.
**/
CREATE OR REPLACE FUNCTION clean_up_option_sort_order()
RETURNS text
AS
$$
DECLARE rowCount int;
BEGIN
UPDATE optionvalue
SET sort_order = temp.orderIndex
FROM
( SELECT optionvalueid, optionsetid, row_number()
This file has been truncated. show original
3 Likes