Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
asmithbi
Contributor II

One or more loops have been detected in your database structure

Hello,

I am getting loops in my data model (see below) that I'm not sure why.  The model seems straight forward in that I have two header tables linked together and their corresponding detail tables linked together as well.   I'm getting the loop in the detail tables (see attached screen shot of table viewer).  I think the issue is that the detail tables are linking to a single Item table where each detail table is "competing" in getting the item record.  If this is the case, I'm not sure how to resolve it. 

I would appreciate any assistance resolving the loop issue.

Thank you very much in advance.  

Error Message:

"One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog."

Tags (1)
1 Reply
Not applicable

Re: One or more loops have been detected in your database structure

Rename the field %ItemKey in the TraceDetailSales in the LOAD you can use LOAD %ItemKey as NewKeyAnyname,

The TraceHeaderSalesFinal  is linked to the fact table and has the TraceDetailSales as a detailed view, so you can always get to the details thru the header and avoid linking the details with other tables.

at least that will break that loop.

Community Browser