I can't publish my application due to this error. can anyone explain to solve this error.
Hello Ayyakutty,
Hope you're doing well.
In this case, you have an invalid data dependency.
Can you please send a print screen of your GetCustomerById Aggregate details? For both sources and filters. Or if possible share your OML file.
My guess is that you have an invalid filter depending on another Aggregate.
Kind regards,
Rui Barradas
Hello Ayyakutty Pillai
I tried to check this error in referrence to this error page
https://success.outsystems.com/documentation/11/reference/errors_and_warnings/errors/invalid_data_dependency/
Agreed with Mr. Rui, we need screenshot of GetCustomerById Aggregate details, in both source and filtering to see.
Regards,
Hi @Ayyakutty Pillai,
These are the potential causes of your error. Please review them.
1. Check Entities Used
On the right pane (where GetCustomerById is selected), look under Sources. You’ll see a list like:
Customer
SomethingElse
If Customer is a local entity and SomethingElse is from an external database (or vice versa), that’s your problem.
2. Split Aggregates
Break the logic into two separate aggregates or data fetches:
Keep GetCustomerById using only one data source.
Move the reference to the other data source into a separate aggregate (or a server action if necessary).
3. Join at Runtime
If you need data from both sources:
Use a Client or Server Action to fetch each independently.
Then merge or correlate the data in memory using JavaScript or logic flows.
Example:
Suppose Customer is from the local DB, and Network is from an external source. You can’t use both in GetCustomerById.
Instead:
GetCustomerById → fetches from Customer only.
GetNetworkById → separate aggregate or logic that uses Network entity.
Thanks
Hi @Ayyakutty Pillai,Hope you are doing well.I can solve it if you share your oml file. Kind regards, Shad