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

BC 2019 Spring. Payment service setup error when opening Sales Order Page

(0) ShareShare
ReportReport
Posted on by 3,023

So we have a BC 2019 spring installation with object still in C/AL (legacy development)

When we open the Sales Order Page 42, we get this error:

"The record in table Payment Service Setup already exists"

When debugging, this is the stack call:

Page 42 OnOpenPage calls PaymentServiceVisible := PaymentServiceSetup.IsPaymentServiceVisible;

This, triggers a suscript event in a codeunit we don't have access to, codeunit 1360 MS - WorldPay Standard Mgt.

Seems like this codeunit is trying to create duplicate keys in the "Payment Service Setup". Is this a bug? What's this codeunit supposed to do and how can we disable this feature?

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    That does not seem to be OK. What CU are you running and is this a new installation?

    Thanks.

  • Ghetz Profile Picture
    3,023 on at

    14.0.29530

    Dynamics.365.BC.Spring2019.29537.ES.DVD

    New installation not custom code

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    As part of OnOpenPage we indeed call:

    PaymentServiceVisible := PaymentServiceSetup.IsPaymentServiceVisible;

    This will raise an event with a temporary record to see if there is a payment service provider. This is a very static value, and it seems that we could easily cache the value to avoid looking it up multiple times.

    This has been a known issue and probably addressed in a later CU. Could you please verify if this has been resolved in a later CU. You seem to be running BC v140 RTM build. We did release already BC v140 CU14.

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans