This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - problem in locking a file

Triadian - Monday, September 13, 2010 12:42 AM:

Hi,

The below code gives me error 'the item is not locked"

string FileId = FileItem.getID();

AML = @"<AML>
                     <Item type = ""File"" action=""lock"" id = """ + FileId + @"""></Item>
                      <Item type = ""File"" action=""update"" version = ""1"" id = """ + FileId + @"""></Item>
                      <Item type = ""File"" action=""unlock"" id = """ + FileId + @"""></Item>
                 </AML>"; 

Item FileItem = innovatorObj.applyAML(AML); 

If I put version=0, there is no such error,but the file will not versioned.

Regards



Triadian - Thursday, September 16, 2010 1:00 AM:

Hi,

sorry for troubling with my confusion. The problem is rectified now

Regards