-
1. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rareddy Aug 23, 2012 10:51 AM (in response to rakeshsagar)Rakesh,
You would have to post your code and VDB for us to suggest any solutions. I know hat Teiid does not allow same named tables or procedures in a given schema (model).
Ramesh..
-
2. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rakeshsagar Aug 23, 2012 11:03 AM (in response to rareddy)Yes, there are no duplicate tables in my model.
We use a text file and read the contents of that text file and create tables and columns from that.
Our code is large and have lots of dependencies so I can't post the code.
-
3. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rareddy Aug 23, 2012 11:06 AM (in response to rakeshsagar)Rakesh,
Unfortunately there is not much help we can provide then. My suggestion is run though the debugger and trace it. If you do see an issue submit with a smaller testcase that we can test and provide a fix.
Thanks
Ramesh..
-
4. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
shawkins Aug 23, 2012 11:08 AM (in response to rakeshsagar)Rakesh,
You can see the code performing that check is straight-forward - just an update of a case-insensitive map. If there is an existing entry an exception is thrown. If you can, debug by placing a breakpoint on that exception. Alternatively perhaps your code is caching a Schema/MetadataFactory and not accounting for this later.
Steve
-
5. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rakeshsagar Aug 23, 2012 11:32 AM (in response to rakeshsagar)Thanks Steve and Ramesh.
I will debug and find the problem.
A quick question:
What is the equivalent of metadataFactory.getMetadataStore().getSchemas() in JBoss 8.1 ?
I tried using metadataFactory.asMetadataStore().getSchemas() and I think this is the cause of the exception I am getting.
Thanks,
Rakesh
-
6. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rakeshsagar Sep 3, 2012 7:41 AM (in response to rakeshsagar)Hi Steve/Ramesh,
I had debugged and found out that the error is due to duplicate columns in the table.
I think we need to update the message to display that there are duplicate columns instead of the table.
Thanks
Rakesh
-
7. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
rareddy Sep 3, 2012 2:33 PM (in response to rakeshsagar)Can you log an enhancement request possibly with small test case?
Thanks
-
8. Re: org.teiid.metadata.DuplicateRecordException: TEIID60013 Duplicate Table
shawkins Sep 4, 2012 7:53 AM (in response to rareddy)Logged and worked as https://issues.jboss.org/browse/TEIID-2183