API Support Forum
OEC API > API Support > GetInvalidParts detail request
Author Topic: GetInvalidParts detail request
(2 messages, Page 1 of 1)
Moderators: VPfau
ARowbotham2
Posts: 2
Joined: Mar 04, 2016


Posted: Mar 21, 2016 @ 10:06 PM             Msg. 1 of 2
Hi everyone,

We have an application that is attempting to execute an order using an allocation block.

When we check the NewOrderDraft, the data structure seems to be correctly formed. The debugger shows that the AllocationBlock property is populated and correct.

However, when we attempt to verify this before submitting the order draft by calling the GetInvalidParts method on the order draft, the output is "AllocationBlock."

I can execute orders using the OEC Trader Developer application and the same allocation block without issue, so I assume everything is set up correctly.

What is the GetInvalidParts method doing, exactly, that would cause this behavior?

Thanks!
Adam Rowbotham
NShine
Posts: 36
Joined:


Posted: Mar 24, 2016 @ 03:34 PM             Msg. 2 of 2
Hi,

If GetInvalidParts only returns an AllocationBlock error, it could be due to many factors.

    1. The OrderDraft's Account must be in the client's WashAccounts
    2. The AllocationBlock's Items list must not be empty
    3. The Client's Accounts must contain every AllocationBlock Item's Account