I have a dispatch script that is activated During Check out (Before check out change has occurred) that compares the %NameOfLoggedInUser% to the datacard variable Owner. If they don't match, Solidworks executes "Cancel Solidworks Enterprise PDM Command" and returns an 'Access Denied' message. This works well for most files but every now and then I get a file that returns N/A for the Owner, despite the fact that %NameOfLoggedInUser% = %Owner% is true. Has anyone any insight why this might occur?
It turns out that the problem stems from the custlists associated with the files in question. When the Dispatch program runs, it runs "For all documents" and the Custlist appears as a reference document for the files, even though they can't be processed separately from the part. After the script does the compare of %NameOfLoggedInUser% with %Owner% on the part file, it does so on the custlist which returns "N/A". The solution was to create an additional jump that grants access on "N/A". Protection is retained since the cutlist could not be processed if the %NameOfLoggedInUser% didn't = %Owner% on the prior jump.
Whew!!