NCBI FTP - package does not get created if sending for a second, or third... time
It is rare, but sometimes changes are made to the XML after the manuscript has been sent to and processed by the NCBI. The first time a manuscript is sent to the NCBI, the manuscript is flagged in the database with the column ncbi-state = sent
. Once the confirmation from the NCBI is received, the state is changed to success
.
If changes need to be made, and the manuscript moved back a step, and then re-sent to the NCBI, a new package is not created and put on the NCBI FTP site, I believe because of the presence of the flag. Clearing the flag manually in the database lets us re-send the package.
I believe the correct fix is to clear the ncbi-state
just before the package needs to be sent. I think this is when status ncbi-ready
is triggered, but I can't be sure. Then the ncbi-state
will move to sent
and then on to success
again. I don't think clearing the state is too much of a problem, because the history is preserved (so we know it's been sent a second, third, fourth... time). Happy to discuss though.