38
Views
4
Comments
Why is this problem occuring and how do we solve this ?

I can't publish my application due to this error. can anyone explain to solve this error.

2020-05-07 18-53-00
Rui Barradas
 
MVP

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

UserImage.jpg
Din Vu Do

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,

2023-06-13 12-29-43
Sakthivel P
AI Generated

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

This answer was AI-generated. Please read it carefully and use the forums for clarifications
2023-12-11 06-11-39
Mohammad Shad

Hi @Ayyakutty Pillai,

Hope you are doing well.

I can solve it if you share your oml file. 

Kind regards, 
Shad

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.