Skip to content

batch PUTing entity with empty collection causes the rest of the batch to fail #22

@jegarne

Description

@jegarne

I'm using batch PUT to update records (specifically ICRM Accounts) - I'm using the Addresses collection to handle Address updates. Occasionally an Account will not have any Addresses so all that gets sent back is an empty list. The desired behavior is that only the addresses in the list are updated, and if the list is empty nothing should happen. I've looked at the "Children List" section here and don't think these flags are necessary in this case: http://sage.github.io/SData-2.0/pages/core/0902/

What I'm seeing is that when SData processes the Account record with the empty Address property that record and all subsequent records in the batch fail with this error:

No row with the given identifier exists[Sage.SalesLogix.Entities.Address#a6UJ9A002G72].

The Address ID number is the same for each record. I have no idea where that id number is coming from - it does not exist in the Address table.

I'm assuming the solution is to NOT include the Addresses property when no Addresses are being updated, but at the same time that strikes me as strange behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions