Greetings,
I need some assistance adding fields to an existing document without a template. I am trying to use the entryinfo method however is am getting an error. here is the code.
Public Function AssignTemplate(ByVal EntryID As String) As Boolean EI = Entry.GetEntryInfo(EntryID, mySess) EI.Lock(LockType.Exclusive) Dim FVC As New FieldValueCollection(EI.GetFieldValues) For z As Integer = 0 To FIELDCOUNT FVC(mArray(z, 0).ToString) = IndexArray(z + 1) EI.SetFieldValues(FVC) Next EI.Save() EI.Unlock() EI.Dispose() EI = Nothing
the error I am getting is
"The object is not identified, and cannot be locked or read from.
Parameter name: path" The error indicate the path cannot be found however I am using the enty ID. the Entry.id is valid, and the Session is connected.
version of the SDK is 8.3
Please let me know what I am missing.
Phil Joyce
One Source.