Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have been having an issue that I couldn't figure out the root cause of it. I am trying to load two tables VM_CLAIM and VM_MEMBMTHS, and they both reside in the same database so that the one ODBC connection is used. Also "Force 32 Bit" option is checked.
What happens is that the first table VM_CLAIM gets loaded, but the second table VM_MEMBMTHS doesn't. Almost QlikView skips the second table for some reasons. I checked the availability of VM_MEMBMTHS table in both SQL Server and another BI tool, the table runs perfectly.
Here is a screenshot of the script execution progress window:
There are two different tables in the load script:
I also checked if the tables are being concatenated, and there is only one common field in both tables so I don't think it is a concatenation issue.
If anyone had this issue and resolved it, I would appreciate your feedback.
Thank you
Hi Sinan, does your script finish or just break at that point in the execution?
Hi,
can you supply your script details?
Andy
Hi Andres,
It doesn't break, it just stops.
Thanks
Hi Andy,
Sure. Here is the script of the problematic table:
MM:
LOAD
MM_UNITS,
PREMIUM_EMPLOYER_PAID,
PREMIUM_EMPLOYEE_PAID,
INCURRED_YEAR_AND_MONTH & '|' & CCHG_CAT_CODE_AND_DESC & '|' & PRODUCT_TYPE & '|' & OWNER_HOSPITAL As Key;
LOAD "INCURRED_YEAR_AND_MONTH" As MM_DATE_TEXT,
Sum("MM_UNITS") As MM_UNITS,
"PRODUCT_TYPE" As MM_BENFT_PACK,
"OWNER_HOSPITAL" As MM_OWNER,
Sum("PREMIUM_EMPLOYER_PAID") As PREMIUM_EMPLOYER_PAID,
Sum("PREMIUM_EMPLOYEE_PAID") As PREMIUM_EMPLOYEE_PAID,
"CCHG_CAT",
"CCHG_DESC",
"CCHG_CAT_CODE_AND_DESC" AS MM_CCHG_COMBINED
Where INCURRED_YEAR_AND_MONTH >= '201501' And MM_UNITS = 1
Group By
INCURRED_YEAR_AND_MONTH,
PRODUCT_TYPE,
OWNER_HOSPITAL,
CCHG_CAT,
CCHG_DESC,
CCHG_CAT_CODE_AND_DESC;
SQL SELECT "INCURRED_YEAR_AND_MONTH",
"MM_UNITS",
"PRODUCT_TYPE",
"OWNER_HOSPITAL",
"PREMIUM_EMPLOYER_PAID",
"PREMIUM_EMPLOYEE_PAID",
"CCHG_CAT",
"CCHG_DESC",
"CCHG_CAT_CODE_AND_DESC",
"MEMBER_COMPANY"
FROM MedInsight2.USR."VW_MEMBMTHS";
I also tried to load the data without the aggregation and no luck.
Thanks
What happens if you just run this part of the script: ??
Hi Andres,
That seems to be running fine. Although, why would this happen with the preceding load?
Thanks
Try this one: I think the problem is happening because your double preceding load. So hopefuly this one should work fine.
It is commonly known (very recently by me as well, although I've been fighting them for some time now) that Preceding Loads should be used for doing just minor column and value manipulations. As soon as you start doing extra filtering (or GROUP BYs) you may unexpectedly run into trouble.
You can continue doing what Andres initiated. Add the next Preceding load and see what you get. If that doesn't work, try a conversion into successive RESIDENT LOADS. That should work in any case or will produce at least proper error messages if it doesn't.
Peter
Hi Sinan,
Does the scripts ends (the close button is active) or it just hangs? If it hangs maybe it taking a long time for the QV engine to build the data model.
Have you tried using the prefix Noconcatenate when loading your second table?
What does the document log says?
Regards