-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: data-source-files report Unhandled exception. System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) #2480
Comments
In the concept of Multiple Data Sources, we don't have the idea of "top-level" or "child level". Here we don't consider the head config to be the top level config and the other files to be its child. Instead, the all these data sources are in paralell. Please look at the following scenario to understand this Multi Data Source case I have three config files which I want to include in the same DAB instance. Hence, the command run is Data Source 1 Config File
Data Source 2 Config File
Data Source 3 Config File
In this case, the data source 1 config file would become the virtual parent containing details of data source 2 and 3 config files and we could run multiple databases in the same DAB instance. As mentioned in the docs
From our side, we would be updating the doc and the error message in |
Robin, this is a good catch. The reason for your error is that you have your top-level config without the data-source and entity properties. To be honest, when we designed this, we considered allowing for this scenario, but we decided against it so that every configuration file would be self-contained. What you found that REALLY helps is the unclear error message - which we now have on our backlog to improve. Thank you for your feedback - to get this to work, just merge your dab-config-local.json file into your dab-config.json configuration file. Thanks again. |
What happened?
When I use data-source-files to reference two configuration file, it report Unhandled exception. System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
top level configuration file is as below. I have used "dab validate" command to validate these two child configuration and there is no error. And I have confirmed that Entity names are unique across all configuration files.
Full error log
Version
1.2.14+c7ca8db8558a63919c530e454c8f18b45d5b931c
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
GraphQL, REST
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: