Data source In Joins not changed while Imported View
Resolved
Hi,
I am facing a problem, I have created a report on one Data source and imported on the different Data source, while importing I have changed data source, View imported in selected data source but Joins in View still fetching data from last Data Source. attaching an image for more clarification.
Regards
Pratap
Files:
qry.JPG
Hi Pratap,
so far I am unable to reproduce this error. I tried by copying a MySQL database and changing its name and changing the data for one of the tables. Therefore after I switched data sources during importing the report, I was able to tell by the different data in the report that it was using the substituted data source.
So I think I must try and get closer to what your content and environment is in order to be able to do so.
Could you please tell me which build of 7.3 you are using (e.g. 20171201). And also please tell me which DBMS you are using.
And also I think it might help if you send some screenshots of the view's Model screen to give me an idea of what your view is.
regards,
David
Hi Pratap,
so far I am unable to reproduce this error. I tried by copying a MySQL database and changing its name and changing the data for one of the tables. Therefore after I switched data sources during importing the report, I was able to tell by the different data in the report that it was using the substituted data source.
So I think I must try and get closer to what your content and environment is in order to be able to do so.
Could you please tell me which build of 7.3 you are using (e.g. 20171201). And also please tell me which DBMS you are using.
And also I think it might help if you send some screenshots of the view's Model screen to give me an idea of what your view is.
regards,
David
Hi Dave,
Thanks for the response, I am using Oracle 12C, yellowfin version/build: 7.35 20171201.
attached screenshot for more info.
Regards
Pratap
Hi Dave,
Thanks for the response, I am using Oracle 12C, yellowfin version/build: 7.35 20171201.
attached screenshot for more info.
Regards
Pratap
Hi Pratap,
thanks, with that information I was able to replicate the issue over here. So I have raised a product defect (YFN-9520) so that it gets fixed.
After investigating the data source table (ReportViewSource) and the view table (ReportView) what I found was that the imported view was actually pointing to the correct data source, but was adding the incorrect Oracle schema in front of the table name.
To see this for yourself, go to your ReportViewSource table and make a note of your 2 different Oracle data source IDs (from the SourceId column) .
Then go to the ReportView table and look for your newly imported view. The view name is actually stored in the ViewDescription column. Notice that its ViewTypeCode column is holding the value "DRAGANDDROP", this signifies that it is the actual Yellowfin view. Underneath it you will see some entries with the ViewTypeCode value being "CHILDELEMENT" which means they represent the individual tables within your view. For both the view ("DRAGANDDROP") and tables ("CHILDELEMENT") rows you will see that their SourceId value is the correct data source. However, you will see that the Oracle schema names in the ViewName column are incorrect.
In other words, your view and reports will be showing the correct data from the correct data source, however, the Oracle schema names in the SQL will be wrong.
You can update these incorrect table names with the following query:
Then you will have to restart Yellowfin for those changes to take effect.
I hope this all makes sense, if not, and you have some further questions please don't hesitate to ask.
regards,
David
Hi Pratap,
thanks, with that information I was able to replicate the issue over here. So I have raised a product defect (YFN-9520) so that it gets fixed.
After investigating the data source table (ReportViewSource) and the view table (ReportView) what I found was that the imported view was actually pointing to the correct data source, but was adding the incorrect Oracle schema in front of the table name.
To see this for yourself, go to your ReportViewSource table and make a note of your 2 different Oracle data source IDs (from the SourceId column) .
Then go to the ReportView table and look for your newly imported view. The view name is actually stored in the ViewDescription column. Notice that its ViewTypeCode column is holding the value "DRAGANDDROP", this signifies that it is the actual Yellowfin view. Underneath it you will see some entries with the ViewTypeCode value being "CHILDELEMENT" which means they represent the individual tables within your view. For both the view ("DRAGANDDROP") and tables ("CHILDELEMENT") rows you will see that their SourceId value is the correct data source. However, you will see that the Oracle schema names in the ViewName column are incorrect.
In other words, your view and reports will be showing the correct data from the correct data source, however, the Oracle schema names in the SQL will be wrong.
You can update these incorrect table names with the following query:
Then you will have to restart Yellowfin for those changes to take effect.
I hope this all makes sense, if not, and you have some further questions please don't hesitate to ask.
regards,
David
Hi Pratap,
could you please turn off the Data Source setting called "Include Schema in SQL" and test for this issue again:
I have found that this prevents that issue happening for me, so I would like to confirm so for you.
thanks,
David
Hi Pratap,
could you please turn off the Data Source setting called "Include Schema in SQL" and test for this issue again:
I have found that this prevents that issue happening for me, so I would like to confirm so for you.
thanks,
David
Hi Pratap,
I'm cleaning up my worklist and i noticed that this ticket is still open and in the "Awaiting Reply" status, so I'm wondering how you got on it and whether the steps from scenario 3 resolved your issue as it did mine?
If you could please let us know then that would be great!
regards,
David
Hi Pratap,
I'm cleaning up my worklist and i noticed that this ticket is still open and in the "Awaiting Reply" status, so I'm wondering how you got on it and whether the steps from scenario 3 resolved your issue as it did mine?
If you could please let us know then that would be great!
regards,
David
Hi Pratap,
I'm wondering how you got on with the issue, and whether we should close this off?
regards,
David
Hi Pratap,
I'm wondering how you got on with the issue, and whether we should close this off?
regards,
David
Hi Pratap,
this ticket's status is being set to Closed because there has been no response to the last two emails over the last two months. However, you can always add a new post to it if you want, and in doing so the ticket will become open again.
regards,
David
Hi Pratap,
this ticket's status is being set to Closed because there has been no response to the last two emails over the last two months. However, you can always add a new post to it if you want, and in doing so the ticket will become open again.
regards,
David
Replies have been locked on this page!