Issue 45378: LKSM Export/Import entire folders

issues
Status:closed
Assigned To:Guest
Type:Feature Request
Area: 
Priority:3
Milestone:22.07
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
Related:45348
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
Priority»3
Milestone»22.07
Related»45348
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.pipeline.importer.FolderImportTask.run(FolderImportTask.java:144)
    at org.labkey.api.pipeline.PipelineJob.runActiveTask(PipelineJob.java:841)
    at org.labkey.api.pipeline.PipelineJob.run(PipelineJob.java:1077)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
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(LsidUtils.java:155)
    at org.labkey.api.exp.xar.LsidUtils.resolveStringFromTemplate(LsidUtils.java:125)
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(LsidUtils.java:89)
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(LsidUtils.java:75)
    at org.labkey.api.exp.xar.LsidUtils.resolveLsidFromTemplate(LsidUtils.java:189)
    at org.labkey.experiment.api.property.PropertyServiceImpl.createDomain(PropertyServiceImpl.java:407)
    at org.labkey.experiment.XarReader.loadDomain(XarReader.java:745)
    at org.labkey.experiment.XarReader.loadDoc(XarReader.java:384)
    at org.labkey.experiment.XarReader.parseAndLoad(XarReader.java:270)
    at org.labkey.experiment.XarReader.parseAndLoad(XarReader.java:228)
    at org.labkey.experiment.samples.SampleTypeAndDataClassFolderImporter.process(SampleTypeAndDataClassFolderImporter.java:141)
    at org.labkey.api.admin.FolderImporterImpl.process(FolderImporterImpl.java:71)
    at org.labkey.pipeline.importer.FolderImportTask.run(FolderImportTask.java:113)
    ... 8 more
 
 LKSM Export_2022-04-30_08-31-12.folder.zip

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
Statusopen»resolved
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
close
Statusresolved»closed
Assigned Tohannahb»Guest