Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hallo,
I use the Vault 2025 SDK with C# and my Task is to update 2 Property Values. I couldn't find an endpoint that does this normaly simple Task. So I try it by checking out the file and checking in with the property values changed.
The Problem is the CheckoutFile Function:
var fileCheckedOut = webServiceManager.DocumentService.CheckoutFile(
fileId,
CheckoutFileOptions.Master,
Environment.MachineName,
string.Empty,
reason,
out downloadTicket
);
It throws the following Exception:
Server stack trace:
bei Autodesk.Connectivity.WebServices.ServiceBase`1.ServiceProxy`1.Invoke(MethodInfo methodInfo, Object[] args, TServiceInterface obj)
bei Autodesk.Connectivity.WebServices.RealProxy`1.Invoke(IMethodCallMessage methodCallMsg, MethodInfo methodInfo, InvokeDelegate invokeFunc)
Exception rethrown at [0]:
bei Autodesk.Connectivity.WebServices.ServiceBase`1.ServiceProxy`1.Invoke(MethodInfo methodInfo, Object[] args, TServiceInterface obj)
bei Autodesk.Connectivity.WebServices.RealProxy`1.Invoke(IMethodCallMessage methodCallMsg, MethodInfo methodInfo, InvokeDelegate invokeFunc)
Exception rethrown at [1]:
bei Autodesk.Connectivity.WebServices.IWebServiceSubClassExtensionMethods.ExecuteWithEvents__(ServiceBase this_, IWebServiceCommandEventsCollection events, WebServiceCommandEventArgs eventArgs, Func`1 func)
bei Autodesk.Connectivity.WebServices.IWebServiceSubClassExtensionMethods.ExecuteWithEvents_[TResult](ServiceBase this_, IWebServiceCommandEventsCollection events, WebServiceCommandEventArgs eventArgs, Func`1 func)
bei Autodesk.Connectivity.WebServices.IWebServiceSubClassExtensionMethods.ExecuteWithEvents[T1,T2,T3,T4,T5,T6Out,TResult](ServiceBase this_, IWebServiceCommandEventsCollection events, WebServiceCommandEventArgs eventArgs, FuncSpecial`7 func, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6Out& t6Out)
bei Autodesk.Connectivity.WebServices.DocumentService.CheckoutFile(Int64 fileId, CheckoutFileOptions option, String machine, String localPath, String comment, ByteArray& downloadTicket)
bei VaultExtension.Service.Vault.Files.VaultFileService.CheckoutFile(Int64 fileId, ByteArray& downloadTicket, String reason)
Message: 303 --> not have adequate permissions...
The user is in the Admin Group and the file itself is not checked out by anyone.
SOLUTION:
LicencingAgent needs to be set to Client (Single User R/W) or Server (Multi-User R/W)
I had it set on None (ReadOnly)
@amerco I've made the SOLUTION Bold to make it easier for others to find, thank you for Sharing! - CGBenner
Solved! Go to Solution.