---
id: change/bcapps/9139
type: change
title: "#9139 Fix Payables Agent permission error opening E-Document"
summary: The Payables Agent codeunit now has elevated permissions to read the Agent Task Message table, preventing permission errors when opening E-Documents.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit payables agent
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:13:36.648Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dda74d576786210bfd55a184a22ec84cbf18eeb3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9139
    title: "microsoft/BCApps#9139: Fix Payables Agent permission error opening E-Document"
    date: "2026-07-07"
    commit: dda74d576786210bfd55a184a22ec84cbf18eeb3
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/3303
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9139
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9139
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-07T20:51:42Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 1
  deletions: 1
  al: 1
apps:
  - PayablesAgent
objects_touched:
  - key: codeunit/3303
    page: codeunit/3303
    type: codeunit
    id: 3303
    name: Payables Agent
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641543
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9139 Fix Payables Agent permission error opening E-Document

> The Payables Agent codeunit now has elevated permissions to read the Agent Task Message table, preventing permission errors when opening E-Documents.

[Pull request](https://github.com/microsoft/BCApps/pull/9139) · merged into `main` (BC30) on 2026-07-07 by ventselartur · 1 file (+1 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Elevated read permissions for table 2000000263 (Agent Task Message)
- Resolves NavPermissionException when agents access E-Documents
- No longer dependent on user's assigned permission sets for this operation
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 3303 "Payables Agent"](../../objects/codeunit/3303.md), PayablesAgent: modified

## Context

- Work items: AB#641543
- Labels: AL: Apps (W1)
- Systems: development

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
