PDA

View Full Version : integrity constraint(U10R10.TRADE_ACCT_FK) vialated - parent key not found


Iftikhar
11-06-2006, 03:08 PM
Hi,

When I try to create entry order on real account it gives the following error.

integrity constraint(U10R10.TRADE_ACCT_FK) vialated - parent key not found.

on demo account it is working fine. Please note that in my case user name and account ID is same. Also I am using the 10000 value for one lot on mini account. Can anyone help me on this.

Even the C++ example coming along with FXOrder2Go to create entry order is giving the same error.

Please help me I stuck on that.

Regards
Iftikhar

FXCM Help
11-06-2006, 03:32 PM
That error generally happens when you use the AccountName in the function rather than the AccountID.

The reason that it probably works in your Demo is that they happen to be the same, whereas they are different on your Real account.

If you only have the AccountName, you need to obtain the AccountID from the Accounts table, which has both columns in Order2Go (the AccountID column is hidden in the general FX Trading Station, but viewable in Order2Go).

Iftikhar
11-06-2006, 05:57 PM
Yes I got it. I was mistakenly using account name instead of account id.

Thanks
Iftikhar