Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

Posted on by 2,983

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?

Categories:
  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: BC 2019 Spring. Payment service setup error when opening Sales Order Page

    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.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: BC 2019 Spring. Payment service setup error when opening Sales Order Page

    14.0.29530

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

    New installation not custom code

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: BC 2019 Spring. Payment service setup error when opening Sales Order Page

    Hello,

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

    Thanks.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,353 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans