<?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 Re: Problem updating Item Properties in VP2016 in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5789903#M9187</link>
    <description>That was it! I accidentally had included a system property in my array. It can only handle UDPs. Hope this helps someone else.</description>
    <pubDate>Wed, 26 Aug 2015 20:57:13 GMT</pubDate>
    <dc:creator>gavbath</dc:creator>
    <dc:date>2015-08-26T20:57:13Z</dc:date>
    <item>
      <title>Problem updating Item Properties in VP2016</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5788088#M9185</link>
      <description>&lt;P&gt;I'm hoping someone may be able to help em with an issue I'm having.&lt;/P&gt;
&lt;P&gt;In my VP2014 code, I was using the ItemService.UpdateAndCommitItem method to update user properties in an Item by passing in an array of PropInst objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 2016, I assume that I'm supposed to do it differently, using the UpdateItemProperties method in the ItemService.&lt;/P&gt;
&lt;P&gt;I'm confused though. The "Vault 2016 API Changes" section in the SDK documentation lists the UpdateItemProperties method as removed!&lt;/P&gt;
&lt;P&gt;But the documentation clearly shows it in the ItemService.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I get a 3933 Server error code which translates to "UpdatePropertiesFailed" and I don't know why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//First I make the item editable
editItem = this.m_itemSvc.EditItems(new long[] {item.RevId})[0];

//Then I create a list of PropInstParams
List&amp;lt;PropInstParam&amp;gt; propInstParams = new List&amp;lt;PropInstParam&amp;gt;();
                foreach (Property property in properties)
                {
                    PropInstParam propInstPar = new PropInstParam();
                    propInstPar.PropDefId = property.PropDefId;
                    propInstPar.Val = property.Value;
                    propInstParams.Add(propInstPar);
                }

//Convert to the required array of arrays
PropInstParamArray propInstParamsArray = new PropInstParamArray();
                propInstParamsArray.Items = propInstParams.ToArray();

                PropInstParamArray[] propInstParamsArrays = new PropInstParamArray[1];
                propInstParamsArrays[0] = propInstParamsArray;

//And finally, try to update the properties
Item[] updatedItems = this.m_itemSvc.UpdateItemProperties(new long[] { editItem.RevId }, propInstParamsArrays);
&lt;/PRE&gt;
&lt;P&gt;And the last line is where the exception is thrown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone got any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 04:27:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5788088#M9185</guid>
      <dc:creator>gavbath</dc:creator>
      <dc:date>2015-08-26T04:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating Item Properties in VP2016</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5788100#M9186</link>
      <description>&lt;P&gt;I just read this: &lt;A href="http://forums.autodesk.com/t5/vault-customization/update-description-item-co-item-property-does-not-work-api/m-p/5670429/highlight/true#M3251" target="_blank"&gt;http://forums.autodesk.com/t5/vault-customization/update-description-item-co-item-property-does-not-work-api/m-p/5670429/highlight/true#M3251&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though the error code was incorrect, it's the same error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will go back and check if I may have accidentally included system properties in the update, rather than just UDPs.&lt;/P&gt;
&lt;P&gt;That may be my issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll report back.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 04:49:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5788100#M9186</guid>
      <dc:creator>gavbath</dc:creator>
      <dc:date>2015-08-26T04:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating Item Properties in VP2016</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5789903#M9187</link>
      <description>That was it! I accidentally had included a system property in my array. It can only handle UDPs. Hope this helps someone else.</description>
      <pubDate>Wed, 26 Aug 2015 20:57:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/5789903#M9187</guid>
      <dc:creator>gavbath</dc:creator>
      <dc:date>2015-08-26T20:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating Item Properties in VP2016</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/8050123#M9188</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;All fields are blocked at the moment when the document on editing, and at the time of return of the document to Vault.&lt;BR /&gt;Therefore it is impossible to bring value!!!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 11:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/problem-updating-item-properties-in-vp2016/m-p/8050123#M9188</guid>
      <dc:creator>gumar-amcad</dc:creator>
      <dc:date>2018-06-06T11:16:55Z</dc:date>
    </item>
  </channel>
</rss>

