@Michael_W - I am a developer on EG and just noticed your reply today. Apologies for not noticing this topic sooner.
A few thoughts:
It would be very helpful to follow the suggestion above to use Process Explorer. The downside there is that it would need to be run on the server machine, and you may not have access to that. But if that can be done by you or an admin, it will definitely say what process is locking the file. I suspect it will be the workspace session (sas.exe).
I have tried to rep without success. You mentioned it is intermittent. Any pattern to the scenario will be helpful as intermittent issues are always much more frustrating to diagnose than repeatable ones are.
If you have access to SAS Studio on that server, it would be interesting to try the same code from there as that takes EG out of the equation. I understand that your overall process that this code node is involved in may prevent running in Studio.
I am very puzzled at the difference in behavior between disconnecting the workspace server in EG and exiting EG. They should have the same effect.
But if I read this thread correctly, stopping and restarting the server session doesn't cause the lock to be released. If the only reference to the xlsx file is in the sas code, then EG is not accessing the file. All access is taking place on the server.
Is the file on your project process flow as a node? If so, that could cause EG to access it.
If this last point is correct, (shutdown releases but disconnect and reconnect doesn't), then I recommend:
Open the track with tech support again.
Provide an EG log file of a session when it happens, and you disconnect/reconnect and the lock persists, and then you exit EG. And then confirm the lock is released.
Ask them to indicate in the track that you interacted with me on communities and I asked for the logs. That will result in me getting a ticket to track the work from an R&D perspective.
That log will help me determine if there is some extra step that is causing the exit to behave differently than the disconnect. I have reviewed the code and do not see anything.
I'm sorry this is proving difficult to resolve - I understand it must be very frustrating.
Thanks, Mark Allemang
... View more