Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
According to our Project Requirement we have to Export one Table Box into .CSV file..
which is working fine in Desktop and Exporting to .CSV file , but when we are reloading the application in QMC the .CSV file is not generated...
please check the below macro which we are using, and let us know incase of any changes
SUB ExportObjectToCSV
SET sObject = ActiveDocument.GetSheetObject("TB02")
sObject.Export "D:\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV", ", "
END SUB
and did some settings in the QMC like 1) allow unsafe macros ,2) allow macros in the QMC and
3) ctrl+shift+m - tick on radio button for give system access to module script
4) and tried by giving the server name before the path - \\ servername\D:\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV", ", ".
none of the above are working...
please help us to solve this issue as it is very imp to implement...
thanks in advance..
Regards
Anusha
The path that looks like:
\\servername\D:\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV
Will never work - since this is not a valid UNC-path - it has to look like this:
\\<servername>\D$\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV
Or simply:
D:\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV
But make sure that there is a D-drive on the server with this entire directory tree. Since you just copy it from a client PC structure it might not exist ...
hi petter , thanks for ur quick response...
tried with this path also \\<servername>\D$\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV.
getting error while checking the macros in the edit module like " cannot open file " \\<servername>\D$\QlikView_Dev\UserDocuments\DOB\New folder\DOB1.CSV " for writing....
regards
anusha
That is my point exactly - you will have to validate that that there is proper access rights to the folder and that the folder and the file really exists. The error message confirms more or less that there is no error in QlikView or the Macro but rather file system access...
hi petter , thanks again
in QMC am reloading the application in the following way - QMC --> Documents --> user Documents ----> Reload..
in our QMC we don't find Source Document Option in Documents Folder - is this kind of any access issue ?...
can you please elaborate more on the Access related issues....
Regards
Anusha
Hi Anusha,
I think you do not have access to the path which you are referring, try creating a file or updating in that path with the user which you are using for Qlikview server.
Regards,
Jagan.
If you mean the "Source Documents" in QMC it is only available and created if you have installed and licensed the QlikView Publisher. Publisher will load a source document (QlikView application) from the Source Document folder and distribute it by creating a task in the QMC that has been specified to execute a "distribution".
This is not really related or dependent on the issue you have ... The important thing is to make sure that the service account that the QlikView Server or if you are using the QlikView Publisher - has the necessary folder and file access rights to the folders that you are using in your Macro.