Hi,
it seems, that m_ServiceManager.ItemService.UpdateItemsFromFiles(new long[] { editItem.RevId } );
doesn't work with a .dwf file.
the result is an exception (error code 0)
the log file is attached.
there is no exception with an underlying .ipt-file for example.
Erika
Solved! Go to Solution.
Solved by Daniel.Dulzo. Go to Solution.
Hello Erika,
As a potential workaround to this issue, I would suggest using the ItemService.PromptComponents() method instead. The code below should have the same effect as a call to ItemService.UpdateItemFromFiles():
wsManager.ItemService.AddPromoteComponents(new long[] { dwfFile.Id });
DateTime time;
long[] promoteComponents = wsManager.ItemService.GetPromoteComponentOrder(out time);
wsManager.ItemService.PromoteComponents(time, promoteComponents);
ItemsAndFiles dwfItemsAndFiles = wsManager.ItemService.GetPromoteComponentsResults(time);