If I modify the 0.init.qvs file and comment out the if statement then my programs run correctly when running from the mapped network drive. I'm not sure what is going on because the statement:
results in 0 for both tests running it from the actual path on C:\ or the mapped network drive on Q:
// Shared_Folders Initiation
//if not IsNull(filesize('$(vG.$(vL.QDF.LinkShared_Folders)BasePath)\Initlink.qvs'))=-1 then
// trace '### QDF Info, $(vL.QDF.LinkShared_Folders) Global Variables using cache';
// Load Include for LCGV function
// This function is to be used inside the Qlik scripts to link between containers
if IsNull(filesize('$(vG.$(vL.QDF.LinkShared_Folders)BasePath)\Initlink.qvs'))=-1 then
set vL.QDF.LinkShared_Folders =; // If no shared container found remove link
trace '### QDF Info, Shared container is missing';
Andy, the cache function is a compromise to reduce amount of QDF related lines in the logs, this after several complains.The cache identifies container reuse by comparing the current URL with the previous, if change identified QDF does a total reload refreshing the cache for the new environment. When using mapped drives it's possible that two different environments have the same URL, but that can be ok as long as the container structures are identical between the environments. Else you need to clear the cache every reload by null the vG.BasePath variable. I think this is the best possible compromise.
Hope this helps.