Issue 45378: LKSM Export/Import entire folders

Assigned To:Guest
Type:Feature Request
Opened:2022-04-30 08:38 by hannahb
Changed:2022-05-11 13:16 by hannahb
Resolved:2022-05-02 10:26 by hannahb
Resolution:By Design
Support Ticket:45348
Pull Requests:
Closed:2022-05-11 13:16 by hannahb
2022-04-30 08:38 hannahb
Title»LKSM Export/Import entire folders
Assigned To»Susan Hert
Notify»hannahb;Rob Morphew
Type»Feature Request
Support Ticket»45348
This is something we'll want to eventually tackle all at once, or maybe just in pieces as we see problems:

I tried a very simple LKSM folder (Sources connected to Samples), and was able to successfully export/import this on the same server (my local).
When I tried to import it into learn.labkey, I received an error:

30 Apr 2022 08:33:55,967 ERROR: LSID template was not fully resolved. 'urn:lsid:${LSIDAuthority}:DataClass.Folder-${Container.RowId}.${XarJobId}:1' was incompletely resolved, as 'XarJobId' could not be resolved
org.labkey.api.pipeline.PipelineJobException: LSID template was not fully resolved. 'urn:lsid:${LSIDAuthority}:DataClass.Folder-${Container.RowId}.${XarJobId}:1' was incompletely resolved, as 'XarJobId' could not be resolved
    at org.labkey.api.pipeline.PipelineJob.runActiveTask(
    at java.base/java.util.concurrent.Executors$
    at java.base/
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.base/java.util.concurrent.ThreadPoolExecutor$
    at java.base/
Caused by: org.labkey.api.exp.XarFormatException: LSID template was not fully resolved. 'urn:lsid:${LSIDAuthority}:DataClass.Folder-${Container.RowId}.${XarJobId}:1' was incompletely resolved, as 'XarJobId' could not be resolved
    at org.labkey.api.exp.xar.LsidUtils.doReplacements(
    at org.labkey.api.exp.xar.LsidUtils.resolveStringFromTemplate(
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(
    at org.labkey.experiment.XarReader.loadDomain(
    at org.labkey.experiment.XarReader.loadDoc(
    at org.labkey.experiment.XarReader.parseAndLoad(
    at org.labkey.experiment.XarReader.parseAndLoad(
    at org.labkey.experiment.samples.SampleTypeAndDataClassFolderImporter.process(
    at org.labkey.api.admin.FolderImporterImpl.process(
    ... 8 more

2022-05-01 18:52 Susan Hert
Assigned ToSusan Hert»xyang
Notifyhannahb;Rob Morphew»hannahb;Rob Morphew;Susan Hert
Xing, the XJobId part was added recently for the renaming work. Any idea what's going wrong when importing into a different server?

2022-05-02 10:09 xyang
Which release version is learn.labkey at?

2022-05-02 10:14 hannahb
22.4 - maybe that's why, since my local instance is newer?

2022-05-02 10:24 xyang
That's correct, the older instance doesn't know how to process the new XJobId.

2022-05-02 10:26 hannahb
resolve as By Design
Assigned Toxyang»hannahb
Thanks, Xing - sorry about the confusion here.

I've resolved -- do we anticipate then that the folder would export/import smoothly in general?

2022-05-02 10:28 Susan Hert
Yes, I would expect folder export/import to work in general (we also have tests for this).

2022-05-11 13:16 hannahb
Assigned Tohannahb»Guest