Unhandled error when retrieving item BOM in Vault 2013
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have code that accesses the item BOM as follows:
if (itemLifeCycleState == "Work In Progress")
bom = _svc.ItemService.GetItemBOMByItemIdAndDate(itemId, itemEffStart, BOMTyp.Tip, BOMViewEditOptions.Defaults);
else //Obsolete or Released (In Review is not applicable)
bom = _svc.ItemService.GetItemBOMByItemIdAndDate(itemId, DateTime.Now, BOMTyp.Effective, BOMViewEditOptions.Defaults);
The code compiled with the Vault 2012 DLLs works fine against a Vault 2012 repository . But the same EXE generates an unhandled exception when running against a Vault 2013 repository. The data on the 2013 server was restored from a backup of the 2012 server. The exception occurs when the code attempts to retrieve the BOM of an Obsolete item.
I ran into the same exception when testing code against data created in Vault 2013. Unfortunately, I don't recall the exact circumstances except that the item was Obsolete.
I will try to recreate the issue in 2013. In the meantime, I'd really appreciate any suggestions on how get around this.
Thanks.
F.
