web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

"Shipment Date" OnValidate inconsistency logic between Sales Header and Warehouse Shipment Header

(0) ShareShare
ReportReport
Posted on by 78

Dear MS experts,

 

During our development, we found there could be an inconsistency of Shipment Date field OnValidate trigger between the Sales Header table and Warehouse Shipment Header table.

 

In Sales Header table, the Shipment Date OnValidate trigger has GuiAllowed check to avoid odata v4 page reports exception of CallbackNotAllowed when HTTP PATCH to modify the Shipment Date.

But in Warehouse Shipment Header, the Shipment Date OnValidate trigger does not have any GuiAllowed check, so our HTTP PATCH via odata v4 page to modify the Shipment Date always results in the CallbackNotAllowed exception.

 

For such inconsistency, we were wondering if it was by design, and if so, we were also wondering if the only way is to write our own event subscriber to skip the original OnValidate trigger logics, so that our odata v4 page can allow HTTP PATCH to modify the Shipment Date?

 

Thanks!

Screenshot 2026-08-28 121010.png
I have the same question (0)
  • Suggested answer
    Grigorios Mavrogeorgis Profile Picture
    3,276 Super User 2026 Season 2 on at

    Hi, I don't think it's by design, the Sales Header was cleaned  for API scenarios over the years and the warehouse tables never had the same pass. 

    For the workaround, first check if your version has an OnBeforeValidate event with IsHandled on that field. If it's there, subscribe, do your own logic, set IsHandled true and the Confirm never runs. If not, I'd stop PATCHing that field at all and put a bound action on the OData page instead, then inside the codeunit set the date and update the lines yourself without going through Validate. Bit more code, but you don't fight the base app on every upgrade.

    Glad to help - follow up if anything is unclear.   

    ►  If this solved it, marking it verified helps others too.       

    Regards,
    Grigorios Mavrogeorgis
    Business Central Consultant & AL Developer

    Work: Gmsoft Limited
    Blog:  insidebusinesscentral
    LinkedIn: linkedin.com/in/gregorymavrogeorgis

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 618 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 382 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 331 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans