Skip to content

Writing to an archived project#

Error

WritingToArchivedProjectException: You're trying to write to a project that was archived.

Issue: The Neptune project you're trying to log to is in an archived state. This means you can't add or change the metadata it contains, but you can access it via API in read-only mode.

Solution:

If you just want to fetch metadata from the project, you can resume any contained object in read-only mode:

import neptune

run = neptune.init_run(
    project="your-workspace/some-archived-project",
    with_id="RUN-18",
    mode="read-only",
)

run["some_namespace"].download()
...
How do I find the ID?

The Neptune ID is a unique identifier for the run. The Experiments tab displays it in the leftmost column.

In the run structure, the ID is stored in the system namespace (sys).

  • If the run is active, you can obtain its ID with run["sys/id"].fetch(). For example:

    >>> run = neptune.init_run()
    ...
    >>> run["sys/id"].fetch()
    'CLS-26'
    
  • If you set a custom run ID, it's stored at sys/custom_run_id:

    >>> run["sys/custom_run_id"].fetch()
    'vigilant-puffin-20bt9'
    

If you want to log metadata to the project again, you need to unarchive it.

Project-based plans

On older project-based subscription plans, the projects quota is managed by your workspace admin.

If the limit of projects is reached, you need to upgrade your subscription or archive another project first.

Getting help