I have to define data range on data source of Custom Data Entity. I am giving value in comma separated assuming it is used for OR condition. But when I compile it give me error "A local variable named '_isAnyFieldSet_' cannot be declared in this scope because it would give a different meaning to '_isAnyFieldSet_', which is already used in a parent or current scope to denote something else".
What I am doing wrong? I have to set this range from AOT, I don't want to set it through D365 UI.
I also faced this issue and it has been resolved by changing the join mode to inner join of the child datasource.
I did have success making a query object, putting that in a view object, and finally putting that in the custom data entity. Looks like this is how it has to be done.
For the record I am on D365 7.3 PU20.
Thanks.
Instead of entity a quick check would be to test in on a query or a view and confirm the range is valid
I am having the same exact issue. I have a custom entity that I am trying to add a Range to on a datasource that I extended and added a new field to. As soon as I add the Range on that field, it errors with this same message. Removing it will fix the error.
Are you sure this error is coming when you put the range . If you remove you range values did error goes away ? You can try adding range in code as well. Look at the below link
What will you do with the URL?? I am defining range on data entity data source from AOT. I am getting error when I rebuild my project.
I am using with data entity with range (date field) and don't have any problem.
Can you put the actual url here? After adding/changing fields did you build model and sync database?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156