<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic UpdateItemsFromFiles in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/updateitemsfromfiles/m-p/3483440#M11889</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;it seems, that m_ServiceManager.ItemService.UpdateItemsFromFiles&lt;FONT size="1"&gt;(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;long&lt;/FONT&gt;&lt;/FONT&gt;[] { editItem.RevId }&lt;/FONT&gt; );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;doesn't work with a .dwf file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;the result is an exception (error code 0) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;the log file is attached.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;there is no exception with an underlying .ipt-file for example.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Erika﻿&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2012 11:09:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-04T11:09:55Z</dc:date>
    <item>
      <title>UpdateItemsFromFiles</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/updateitemsfromfiles/m-p/3483440#M11889</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;it seems, that m_ServiceManager.ItemService.UpdateItemsFromFiles&lt;FONT size="1"&gt;(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;long&lt;/FONT&gt;&lt;/FONT&gt;[] { editItem.RevId }&lt;/FONT&gt; );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;doesn't work with a .dwf file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;the result is an exception (error code 0) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;the log file is attached.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;there is no exception with an underlying .ipt-file for example.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Erika﻿&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 11:09:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/updateitemsfromfiles/m-p/3483440#M11889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateItemsFromFiles</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/updateitemsfromfiles/m-p/3502928#M11890</link>
      <description>&lt;P&gt;Hello Erika,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;wsManager.ItemService.AddPromoteComponents(&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;long&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;[] { dwfFile.Id });&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;DateTime &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;time;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;long&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;[] promoteComponents = wsManager.ItemService.GetPromoteComponentOrder(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;out &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;time);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;wsManager.ItemService.PromoteComponents(time, promoteComponents);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;ItemsAndFiles&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; dwfItemsAndFiles = wsManager.ItemService.GetPromoteComponentsResults(time);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:45:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/updateitemsfromfiles/m-p/3502928#M11890</guid>
      <dc:creator>Daniel.Dulzo</dc:creator>
      <dc:date>2012-06-15T19:45:40Z</dc:date>
    </item>
  </channel>
</rss>

