13 Replies Latest reply: Sep 26, 2014 9:29 AM by Magnus Berg RSS

    Variable not working

    Fernando Tonial

      Hello, When I go to create the variable, I select the container and create the variable, but the update appears in the Home. I can not use this variable in my project. See image.

      Error QDF.png

      Best Regards.

      Tonial.

        • Re: Variable not working
          Magnus Berg

          Hi Fernando, Thanks for the information we will have a look and search for possible bugs during this week, we will let you know.

          Best regards

          Magnus

          • Re: Variable not working
            Magnus Berg

            Hi Again Fernando, we did not find any problems with the current Variable Editor, it could be a issue with a early 1.4.0 release. Try the attached Variable Editor (replace the old).

            Best regards

              • Re: Variable not working
                Kevin Pickering

                I'm also getting the same problem with editing variables.

                I downloaded your attached updated release 1.4.0 Variable editor, but when I run it, after a few seconds, I get the 'Execution of script failed. Reload old data? Yes/No' popup. After clicking yes (or no), the app closes.

                We're running QlikView version 10 SR6 64-bit edition and the variable editor is located on the network not locally.

                  • Re: Variable not working
                    Magnus Berg

                    Hi Kevin, do you have UAC activated? Variable Editor need to run as Administrator.
                    See this thread http://community.qlik.com/thread/118776

                    Hope this helps

                    Magnus

                      • Re: Variable not working
                        Kevin Pickering

                        Yes UAC is activated. The older version runs ok by simply executing the qvw but doesn't function correctly (same problem as Fernando in the original post).

                        The new version just won't run, apart from the 'Execution of script failed' popup.

                        I have also tried starting QlikView with 'Run As Administrator', opened the new Variable Editor, and still it won't run apart from the pop up.

                          • Re: Variable not working
                            Magnus Berg

                            Kevin, could you try QlikView 11.2 instead of 10? You can just copy the QlikView 11 program folder from another computer or vm if you don't want to uninstall v10.

                            Cheers

                              • Re: Variable not working
                                Kevin Pickering

                                Due to the enterprise I'm working within, being able to upgrade is not in my control.

                                However, I do have Version 11 SR8 (most up to date) on my BYOD (Surface Pro 2). I downloaded the Variable Editor and placed in the Administration container. On executing for the first time it asked for System Access which I allowed. Then the pop up 'Execution of script failed' appeared. Each subsequent time I execute the Variable Editor, the pop up appears. It is not working.

                                The old version of Variable editor runs ok when I reinstall it.

                                  • Re: Variable not working
                                    Magnus Berg
                                    • It could be that you are using an older QDF version and some sub function updates are missing. But you can still use your old Variable Editor there are very minor changes between versions.

                                     

                                    • Also check out the ContainerMap.csv and CustomVariables.csv (that is stored under 0.Administration\3.Include\1.BaseVariable) so that they don't contain any errors/strange characters.

                                     

                                    • And Variable Editor must be stored under 0.Administration\6.Script\2.VariableEditor

                                     

                                    Hope this helps

                                      • Re: Variable not working
                                        Kevin Pickering

                                        I'm currently downloading the current version from the Community and I see the version is 1.4.1.

                                        The version we're working with is 1.4.0.

                                        The Variable Editor that came with the Deployment Tool 1.4.0 runs but we have the functionality problem from the original post. Simply downloading the Variable Editor from the link previously posted in this thread and using that with Version 1.4.0 didn't work (I assume that must be 1.4.1 specific)

                                        I'll install Version 1.4.1 and hopefully that will cure the problems.

                                        • Re: Variable not working
                                          Kevin Pickering

                                          I've upgraded to 1.4.1.

                                           

                                          I now have functionality of retrieving custom variables when I select the appropriate container (both on my own Surface Pro 2 using QlikView V11 SR8 and also in my workplace using QlikView V10 SR6).

                                           

                                          But the application still shows Variable Editor 1.4.0 (and not 1.4.1). Is this correct?

                                            • Re: Variable not working
                                              Magnus Berg

                                              Hi Kevin, glad to here that everything is working now. The Variable Editor itself have not changed between the latest 1.4.0 and 1.4.1 so no change in version there. Several Sub functions used by Variable Editor have probably been updated (there was a couple of bug fixes in early 1.4.0) . But I agree, it's simpler if Variable Editor presents the same version as the framework itself, will see what we can do.

                                              Regards

                                              Magnus

                              • Re: Variable not working

                                Hello,

                                 

                                I'm facing the same issue. When I select any container other than "Admin", the variable vL.BaseVariablePath is always filled with the "Admin" base path.

                                 

                                If I reload manually the qvw again by Ctrl + R, then the variable gets the correct base path. So I've added a second line "ActiveDocument.ReloadEX 1,1" in the macro Sub Reload. This way forcing the second reload and fixing my problem.

                                 

                                This is not a good way to fix it, but I don't have enough time now to understand if (and why) this is happening on script level. That script is really complex .

                                 

                                So I leave here my exerience. Maybe this can be a clue to find the real reason.

                                 

                                Best Regards,

                                Guilherme Carvalho