Maybe this will help you resolve it quickly.
In Business Central 26, the OnBeforePurchaseLineVerifyChange event was moved from Codeunit 5777 (Whse. Validate Source Line) to Codeunit 1402 (Purchases Warehouse Mgt.). Your new subscriber is correct — but if you're getting an error like:
OnBeforePurchaseLineVerifyChange
Whse. Validate Source Line
Purchases Warehouse Mgt.
"The event 'OnBeforePurchaseLineVerifyChange' is not found in the target"
Download the latest symbols Run this in VS Code terminal or Command Palette:
AL: Download Symbols
This ensures your environment references BC v26 and pulls in the new codeunits/events.
Ensure your app.json has the correct application version
app.json
"application": "26.0.0.0"
Use this subscriber code for BC 26+
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Purchases Warehouse Mgt.", 'OnBeforePurchaseLineVerifyChange', '', false, false)] local procedure PurchasesWarehouseMgt_OnBeforePurchaseLineVerifyChange_Subscriber( var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin IsHandled := true; // your custom logic end;
After downloading the latest symbols, the error should be resolved.
Mark below checkbox to make this answer Verified if it helps you.
Hi, good day I hope this can help you, and give you some hints.
Conditional Directives – CLEAN22 demystified – The BC Docs Librarian
Best Regards Gerardo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 4,308
Sumit Singh 2,798
Nimsara Jayathilaka. 2,793