Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Data Entity Pass Range
Finance forum

Data Entity Pass Range

Posted on by 865

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. 

Categories:
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Entity Pass Range

    I also faced this issue and it has been resolved by changing the join mode to inner join of the child datasource.

  • JackB Profile Picture
    JackB on at
    RE: Data Entity Pass Range

    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.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Entity Pass Range

    Instead of entity a quick check would  be to test in on a query or a view and confirm the range is valid

  • JackB Profile Picture
    JackB on at
    RE: Data Entity Pass Range

    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.

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Data Entity Pass Range

    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

    community.dynamics.com/.../256631

  • DynAx90 Profile Picture
    DynAx90 865 on at
    RE: Data Entity Pass Range

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Entity Pass Range

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans