---
title: "Publishing account not found (publish-account-not-found)"
description: "PubNio publish-account-not-found problem, HTTP 422: A comment request's accountId is not one of the workspace's accounts, or no enabled account can comment for the provider."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing account not found (publish-account-not-found)

HTTP 422 Publishing account not found. A comment request's `accountId` is not one of the workspace's accounts, or no enabled account can comment for the provider.

## When it happens

One operation declares it: [`POST /api/v1/comments`](https://pubnio.com/api/v1/docs#tag/comments/POST/api/v1/comments).

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/publish-account-not-found/",
  "status": 422,
  "title": "Publishing account not found",
  "code": "account_not_found",
  "provider": "linkedin",
  "param": "accountId",
  "candidates": [
    {
      "accountId": "5f0c3a6e-2b1d-4c8e-9a7f-1e2d3c4b5a69",
      "name": "Acme on LinkedIn"
    }
  ],
  "nextAction": "Retry with one accountId from candidates.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field        | Type                      | Always present |
| ------------ | ------------------------- | -------------- |
| `provider`   | one of 21 strings         | No             |
| `accountId`  | string                    | No             |
| `param`      | string                    | Yes            |
| `candidates` | array of ProblemCandidate | No             |
| `nextAction` | string                    | Yes            |

## Recovery for agents

- Resend with an `accountId` from `candidates`; with no candidates, a person must connect an account for the provider first.
- Do what `nextAction` says.
- `param` is the field to change.
- Resend with one `accountId` from `candidates` instead of the ambiguous selector.

## Retryable

No: the SDKs mark HTTP 422 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [Publishing problems](https://pubnio.com/docs/problems/#publishing)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/publish-account-not-found/index.mdx
