Yes, in 1.6.3 you can clear these pending and queued flags in the prearchive. I think you have to be an admin to clear some of the states, since resetting the session in the middle of, e.g., an archive operation could lead to really bad results if it’s actually archiving.
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
1.6.3 is in the latest throes of childbirth, arrival imminent, virtual father(s) nervously clutching swaddling blanket in anticipation. Upgrade instructions will be available as soon as the release drops. Look for Twitter post, Water Cooler post, and post here on the discussion group.

curl -X POST -u admin "https://<HOST>/XNAT/REST/services/prearchive/delete?src=/prearchive/projects/MR_BTC/20190715_152352062/20170921_090528_Achieva"
<ResultSet><results><columns><column>project</column><column>timestamp</column><column>lastmod</column><column>uploaded</column><column>scan_date</column><column>scan_time</column><column>subject</column><column>folderName</column><column>name</column><column>tag</column><column>status</column><column>url</column><column>autoarchive</column><column>prevent_anon</column><column>prevent_auto_commit</column><column>SOURCE</column><column>VISIT</column><column>PROTOCOL</column><column>TIMEZONE</column></columns>
<rows><row><cell>MR_BTC</cell><cell>20190715_152352062</cell><cell>2019-07-15 15:29:58.531</cell><cell>2019-07-15 15:23:52.062</cell><cell>2017-09-21 00:00:00.0</cell><cell>09:05:28</cell><cell>BAR331</cell><cell>20170921_090528_Achieva</cell><cell>20170921_090528_Achieva</cell><cell>1.2.840.113564.9.1.2843759204.47.2.5001264056</cell><cell>_ARCHIVING</cell><cell>/prearchive/projects/MR_BTC/20190715_152352062/20170921_090528_Achieva</cell><cell>AutoArchive</cell><cell>false</cell><cell>false</cell><cell></cell><cell></cell><cell></cell><cell></cell></row>
</rows></results></ResultSet>
Try this:
https://wiki.xnat.org/display/XKB/Clearing+stuck+sessions+from+the+prearchive
Basically:
Upon restart, XNAT looks in the prearchive folder and generates entries for any sessions in there, so your valid data will get picked up and processed properly. Any problematic entries should be gone with that.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
From: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com> on behalf of Simon Doran <simon...@icr.ac.uk>
Reply-To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Date: Tuesday, July 16, 2019 at 12:41 PM
To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Subject: Re: [XNAT Discussion] How do I clear an "archive pending" flag from prearchive
Hi All,
Resurrecting some very old discussion here ...
I have a whole set of files that, for one reason or another, have got "stuck" over the years in one of our production systems - still running on 1.6.5, I'm afraid. Here's a recent example:

I really want to get rid of all this stuff out of the prearchive, so that I can re-upload the affected sessions.
Having found the location of the offending data in XNAT's prearchive directory, I tried this:
curl -X POST -u admin "https://<HOST>/XNAT/REST/services/prearchive/delete?src=/prearchive/projects/MR_BTC/20190715_152352062/20170921_090528_Achieva"
but it didn't seem to do anything at all. What I got back was an XML ResultSet that looked like this:
<ResultSet><results><columns><column>project</column><column>timestamp</column><column>lastmod</column><column>uploaded</column><column>scan_date</column><column>scan_time</column><column>subject</column><column>folderName</column><column>name</column><column>tag</column><column>status</column><column>url</column><column>autoarchive</column><column>prevent_anon</column><column>prevent_auto_commit</column><column>SOURCE</column><column>VISIT</column><column>PROTOCOL</column><column>TIMEZONE</column></columns>
<rows><row><cell>MR_BTC</cell><cell>20190715_152352062</cell><cell>2019-07-15 15:29:58.531</cell><cell>2019-07-15 15:23:52.062</cell><cell>2017-09-21 00:00:00.0</cell><cell>09:05:28</cell><cell>BAR331</cell><cell>20170921_090528_Achieva</cell><cell>20170921_090528_Achieva</cell><cell>1.2.840.113564.9.1.2843759204.47.2.5001264056</cell><cell>_ARCHIVING</cell><cell>/prearchive/projects/MR_BTC/20190715_152352062/20170921_090528_Achieva</cell><cell>AutoArchive</cell><cell>false</cell><cell>false</cell><cell></cell><cell></cell><cell></cell><cell></cell></row>
</rows></results></ResultSet>
which seems just to tell me that the data are still in an ARCHIVING state.
What do I need to do to nuke these contents of the prearchive and start again?
Best wishes,
Simon
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/4c76dada-4c52-4b12-a076-19a507706b44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.