Soap Exception with restriction code 4000

Soap Exception with restriction code 4000

cstaley
Participant Participant
343 Views
1 Reply
Message 1 of 2

Soap Exception with restriction code 4000

cstaley
Participant
Participant

I have a tool that adds files to Vault and sets various properties based on a spreadsheet.

One of the properties I need to set is file revision.  I have code in place that should work, but am receiving a SoapException with restriction code 4000. 

This code does not seem to be listed anywhere in documentation.

Has anyone encountered this restriction?

 

I'm calling:

myConnection.WebServiceManager.DocumentServiceExtensions.UpdateFileRevisionNumbers(new long[]{f.Id}, new string[]{revisionStr}, "Revision Updated")

 

0 Likes
344 Views
1 Reply
Reply (1)
Message 2 of 2

Markus.Koechl
Autodesk
Autodesk

Error 4000 is listed in the SDK Help server error codes. Anyway - there are two possible caveats you might trap into:

  • If you update properties before you update the revision, you need to refresh the file iteration ID.
  • The revision number update will fail if the pushed revision text does not match a future revision index of the revision scheme linked to the file (category).


Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes