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

Notifications

Announcements

No record found.

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,013

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
    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,013 on at

    14.0.29530

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

    New installation not custom code

  • Suggested answer
    Marco Mels Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans