Page 1 of 1

File locked to me

Posted: Thu Dec 06, 2018 1:26 pm
by rajeev108
I am executing a simple linked action which exports a job's history and imports it in another case. It all works fine. However, when I go into the target case where the history has been imported, it says it is locked by me and only allows me to open it in read mode. As you can see from the code, I have tried various things but the STATUS always shows it is locked my me. Any suggestions as to why this may be happening?

Code: Select all

IF {Target Case Number.Text} <> "" THEN 
    EXPORT( {case.key} , "HISTEXP" , "no" ) 
    #   OPEN( {Target Case Number.Text} , "" ) 
    CALL-MATHS( {Target Case Number.Text} , "M Import Quote" ) 
    UPDATE( {Target Case Number.Text} , "UNLOCK" ) 
    STATUS( {Target Case Number.Text} ) 
    #   CLOSE( {Live Case Number.Text} ) 
    MESSAGE( RETURN-VALUE ) 
END 

Re: File locked to me

Posted: Tue Jan 22, 2019 9:50 am
by Huntyuk
probably resolved by now - but do you have the import job running on the task server? it usually locks the file if theres a pop up off the back of the import job thats just sat there on the server

Re: File locked to me

Posted: Tue Jan 22, 2019 10:30 am
by rajeev108
I could not work out the reason but I don't think it is what you suggest. I think it was something to do with CALL-MATHS. I just got rid off it to make it work.