---
id: change/bcapps/9434
type: change
title: '#9434 [Main]-"Factura Duplicada" error message appears under SII History if you use the same Vendor Invoice No. for the same Vendor (VAT Registration No.) in different documents in the Spanish version.'
summary: In the Spanish version with SII enabled, users now get a non-blocking warning when a purchase document's Vendor Invoice No. or Vendor Cr. Memo No. matches a posted entry of the opposite document type for the same vendor and date. SII would later reject such a document as 'Factura Duplicada'.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sii purchase subscribers
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:24.818Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c6e192799cbd132bcb05f794aa7568c9d11f8874
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9434
    title: 'microsoft/BCApps#9434: [Main]-"Factura Duplicada" error message appears under SII History if you use the same Vendor Invoice No. for the same Vendor (VAT Registration No.) in different documents in the Spanish version.'
    date: "2026-07-17"
    commit: c6e192799cbd132bcb05f794aa7568c9d11f8874
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7000126-es
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9434
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9434
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-17T11:34:08Z"
author: DhavalMore88
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 190
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/7000126
    page: codeunit/7000126-es
    type: codeunit
    id: 7000126
    name: SII Purchase Subscribers
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642238
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9434 [Main]-"Factura Duplicada" error message appears under SII History if you use the same Vendor Invoice No. for the same Vendor (VAT Registration No.) in different documents in the Spanish version.

> In the Spanish version with SII enabled, users now get a non-blocking warning when a purchase document's Vendor Invoice No. or Vendor Cr. Memo No. matches a posted entry of the opposite document type for the same vendor and date. SII would later reject such a document as 'Factura Duplicada'.

[Pull request](https://github.com/microsoft/BCApps/pull/9434) · merged into `main` (BC30) on 2026-07-17 by DhavalMore88 · 2 files (+190 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added subscribers to validate Vendor Invoice No. and Vendor Cr. Memo No. when SII is enabled
- Detects cross-type duplicates (Invoice vs. Credit Memo) that SII treats as identical
- Looks for posted Vendor Ledger Entries matching vendor, document number, and date
- Shows non-blocking notification with user toggle to warn before posting
- Respects fiscal year settings and excludes entries marked 'Do Not Send To SII'
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7000126 "SII Purchase Subscribers"](../../objects/codeunit/7000126-es.md), Base Application (ES layer): modified

## Context

- Work items: AB#642238
- Labels: Team: Finance
- Systems: integration

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