Inventory_generate_snapshot not returning the expected response

Hi,

We tried to generate inventory_generate_snapshot, but we are getting the below response.

mutation {
  inventory_generate_snapshot(
    data: {
      warehouse_id: "V2FyZWhvdXNlOjY0NzE2"
    }
  ) {
    request_id
    complexity
    snapshot {
      snapshot_id
      job_user_id
      job_account_id
      warehouse_id
      customer_account_id
      notification_email
      email_error
      post_url
      post_error
      post_url_pre_check
      status
      error
      created_at
      enqueued_at
      updated_at
      snapshot_url
      snapshot_expiration
    }
  }
}

Response:

{
    "errors": [
        {
            "message": "Snapshot '60f7b5fc841bef63ac617b0d' is already being processed for warehouse '64716' and account 'Any'",
            "operation": "inventory_generate_snapshot",
            "field": "inventory_generate_snapshot",
            "request_id": "60f81006f636ae5c9d0efb32",
            "code": 9
        }
    ],
    "data": {
        "inventory_generate_snapshot": null
    }
}

Please help us to resolve this.

Priority: High

HI @supritha !

That is because there is a Snapshot Already in progress with ID 60f7b5fc841bef63ac617b0d.
Try aborting that Snapshot first if you need to create a new one because the feature only allows one snapshot to be created at a time.

Example Mutation to abort snapshot: Inventory-Snapshot – Developer Resources | ShipHero

Please let us know if that doesn’t help.
Thanks in advance!
Tom

Hi @tomasw

Thank you for your reply, I can get the response now

1 Like