FIX4.00.02 · Released 27 June 2023
FIXfinPOWER Connect
Released in
4.00.02
27 June 2023
  1. Opened16 Mar
  2. Closed16 Mar
  3. Released27 Jun
Article 20028 Job J030687

finAccountClients.AddUnknownClient fails with "Key not specified" error

The Business Layer function finAccountClients.AddUnknownClient may fail with a "Key not specified" error.

The following code demonstrates this:

Dim Account As finAccount
  
Account = finBL.CreateAccount()
Account.Clients.AddUnknownClient()

Whilst this error will no longer occur, you should always load the Account Type before calling this function.

Dim Account As finAccount
  
Account = finBL.CreateAccount()
Account.Calculation.LoadAccountType("CC")
Account.Clients.AddUnknownClient()