---
id: change/bcapps/9796
type: change
title: "#9796 Show a message when an e-document file cannot be viewed or no data could be extracted"
summary: E-document import handling now displays user-friendly messages when a PDF file cannot be displayed or no data was extracted, instead of throwing runtime errors.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit e-doc. import
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:54.075Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: bb672c8a60f3f05135c6ad40c4719bf623d6282a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9796
    title: "microsoft/BCApps#9796: Show a message when an e-document file cannot be viewed or no data could be extracted"
    date: "2026-07-30"
    commit: bb672c8a60f3f05135c6ad40c4719bf623d6282a
    t: null
    quote: This adds small guards so both actions show a clear message when there is nothing to display or the file cannot be read.
links:
  learn: []
  objects:
    - object/codeunit/6140
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9796
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9796
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-30T12:52:33Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 4
  deletions: 1
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6140
    page: codeunit/6140
    type: codeunit
    id: 6140
    name: E-Doc. Import
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 638785
systems:
  - integration
quote: This adds small guards so both actions show a clear message when there is nothing to display or the file cannot be read.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9796 Show a message when an e-document file cannot be viewed or no data could be extracted

> E-document import handling now displays user-friendly messages when a PDF file cannot be displayed or no data was extracted, instead of throwing runtime errors.

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

## What changed

- Added guards to prevent runtime errors when viewing corrupted PDF files
- Shows clear message when extracted data is unavailable
- Improves user experience for invalid or corrupt e-document files
- No schema or permission changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6140 "E-Doc. Import"](../../objects/codeunit/6140.md), EDocument: modified

## Context

- Work items: AB#638785
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "This adds small guards so both actions show a clear message when there is nothing to display or the file cannot be read."

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).
