I'm using Vault 2012 and when running GetItemFileAssociationsByItemIds the returned ItemFileAssociation FileName attribute is always empty. I can go to the Item in the Vault look at it's associated files and those files have a filename attribute defined.
Solved! Go to Solution.
Solved by Redmond.D. Go to Solution.
Solved by jmsunseri. Go to Solution.
It's working for me. Can you post some of your code and maybe a screenshot or two?
I've published all the source code to the project here. Specifically the clsGlobal.cs and PublishToBuzzsaw.cs files are important. The tmr_Timer_Elapsed runs every 30 seconds checking a SQL database to see if there are any un processed rows. It inturn calls clsGlobal.GetLatestFiles which in the case calls GetLatestAssociatedFiles which calls Autodesk.Connectivity.WebServices.ItemFileAssoc[] oAssocs = oItemService1.GetItemFileAssociationsByItemIds(new long[] { oItemIn.Id }, ItemFileLnkTypOpt.Primary);
As you can see in the screen shot attached in the left hand side I have Item 100151 below in it's associated files you see File Name 004.dwg. On the right hand side you can see oItemIn.Id which we passed to GetItemFileAssociationsByItemIds. It's kind of obscured but you can see the FileName property at the top of the Watch window that is = "" that is the FileName attribute of oAssoc.
I hope this is enough information.
From your screenshot it looks like the Cloaked property is true, which means that the logged in user doesn't have read permission on the file. As a result, the file name is blanked out.
How on earth does it get to be cloaked? I don't think I'm specifically setting that value anywhere and it's not a visible property through the vault interface.