TF26180: An item with this ID already exists in the input Array RRS feed

  • Question

  • Hi Team,

    I am using below flat query to get bug details for array workitem ids passed as argument(ids) below.
    Below query works perfectly fine, but it throws error in some cases   "TF26180: An item with this ID already exists in the input Array"
    Reason is ids array has duplicate ids, which is expected in my case. Is there any way to ignore this check or by pass this ?

                        var flatQuery = new Query(_store, detailsWiql.ToString(), ids);
                        WorkItemCollection workitems = flatQuery.RunQuery();

                        foreach (WorkItem wi in workitems)

                            WorkItemType worktype = wi.Type;
                            worktypename = worktype.Name;

    Thanks in advance

    Tuesday, December 5, 2017 4:49 AM


  • Hi Anil,

    Welcome to the MSDN forum.

    Refer to your description, your issue is about TFS. Now the TFS forum has been locked, we can get advice on Stack Overflow and start a new thread with tag ‘tfs’ to seek for a more professional support, since our forum is to discuss the VS IDE, thank you for your understanding.

    Best regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, December 6, 2017 1:59 AM