Skip to content

Y26-108 - [Psd-exceptions] Accession::ExternalValidationError - No new objects can be added with MODIFY action #5654

@StephenHulme

Description

@StephenHulme

Describe the bug
Samples are submitted via sample manifest with a pre-populated accession number that does not match the stiplulated service set in the study. This generates an exception email with the text No new objects can be added with MODIFY action

To Reproduce
Steps to reproduce the behaviour:

  1. Upload a sample manifest with an accession number pre-populated, that has not been assigned by the ENA or EGA service
  2. Receive a Failed accession status and exception notification email

Expected behaviour
No error should occur as this is an expected operation

Screenshots

Image

Additional context

Explanation of study fields and how they are used: Document Study Creation Form_v2

Email content:

An Accession::ExternalValidationError occurred in background at 2026-03-08 10:30:22 +0000 :

  In sample, alias: "6c6bd324-1947-11f1-8d2b-02426899d835". No new objects can be added with MODIFY action.
  /var/www/sequencescape/releases/20260224125951/lib/http_clients/accessioning_v1_client.rb:103:in 'HTTPClients::AccessioningV1Client#raise_if_failed'

-------------------------------
Backtrace:
-------------------------------

...

-------------------------------
Data:
-------------------------------

  * data: {message:
    "SampleAccessioningJob failed for sample '7370STDY16705489': In sample, alias: \"6c6bd324-1947-11f1-8d2b-02426899d835\". No new objects can be added with MODIFY action.",
   sample_name: "7370STDY16705489",
   service_provider: "ENA",
   user: "xxnn"}

Metadata

Metadata

Assignees

Labels

AccessioningEpic in technical roadmap June 2025, relating to improving the accessioning code.BugBug in codeUnhandled Errors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions