Export/import errors with sharing and dependency issues

Hi all,
i have a package that is modified on one server, i needed to export/import this package to another server, this process went fine with no issues at all
once again i needed to export/import this same package to third server and i had a huge number of errors on dry run such as
(Invalid reference null null [llB9iWhLc1g] (User) on object TB-HH - TPT Outcomes (quarterly) [yXY3xFyaE3Y] (DataSet) for association userAccesses) given that i exported the package without the user, user role, or user group

even when i unchecked all the checks that are related to “program” and “visualization” i still have erorrs like
(Invalid reference [K5ac7u3V5bB] (ProgramStage) on object HIV CS - Key population group: Dialysis patients [YrFGJqIINt6] (EventVisualization) for association programStage)
(Invalid reference [Xh88p1nyefp] (Program) on object HIV CS - Key population group: Health Survey [UplXgMYy2EQ] (EventVisualization) for association program)

but when i tried to export/import one dataset at a time it worked!!!

what would be the problem??

Hi @azza

Thank you for your post. Before importing to the third instance, please ensure that the same metadata is setup. You might want to first import the metadata configuration first. For instance, when it says Invalid reference null null [llB9iWhLc1g] (User) it means that the User with UID llB9iWhLc1g is not present in the third instance or doesn’t have the proper configuration (access to the dataset).

The data you are importing might still include other settings such as sharing settings?

I’d recommend to first perform the Metadata dependency export into the third instance. This will ensure that the third instance is in coherence with the main instance in terms of the package you are importing.

This is the hint that a dependency export might be necessary because these Event Visualizations you mentioned can’t find the program or program stages.

You might also want to make sure that ‘Skip sharing’ is selected,

I hope this helps! Please have a look and report back.