web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Strange error on data ...
Finance forum

Strange error on data entity

(0) ShareShare
ReportReport
Posted on by

I'm facing with following error:

Severity    Code    Description    Project    File    Line    Suppression State
Error        ClassDoesNotContainMethod: Class '__Persister__' does not contain a definition for method 'isAnyFieldSet_DS9' and no extension method 'isAnyFieldSet_DS9' accepting a first argument of type '__Persister__' is found on any extension class.        dynamics://Class/__Persister__/Method/mapToDataSource_DS9    121    

It is not meaningful and it does not ever refers to correct object. But it relates to data entity. And appears only if I change join type of one of my data sources to OuterJoin. It works correctly with InnerJoin.

Does anyone have a clue what does this mean and how can I get more information about this error, for example it refers to line 121, where can I see this line?

Categories:
I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Vasiliy!

    I got the same error, and I realized that the error occurs when I am adding Ranges to the entity's datasources, except the FIRST DS.

    Do you have any localization packages installed on ur environment?

    Best regards,

    Balint

  • Community Member Profile Picture
    on at

    UPDATE: The error occurs when I'am adding Range on OUTTER JOINED datasource of the Entity.

  • Community Member Profile Picture
    on at

    Hi Vasiliy,

    You can find the source code files in "AOSService\PackagesLocalDirectory\GeneratedXppSource".

    What is causing the build error is that in this helper class generated for your entity, there is a call to "isAnyFieldSet_DS9", but in this case the system does not define this method in the generated file!

    In my case it was the same cause as Balint described, removing the range fixed the build.

  • mjjoachim Profile Picture
    3 on at

    What do we do if we need the range?

    The machine the entity was developed on has the isAnyFieldSet_DS6 method. Why does the method exist on that machine? Is this a bug with the way the model file is imported or something?

    I also have an example of another entity which does have a range on one of its data sources: DirPartyBaseEntity has a range on the PrimaryContactEmail data source. Why does that entity work? I guess in that case it is joined via an inner join when used in the VendVendorEntity.

  • Suggested answer
    RoccoB71 Profile Picture
    5 on at

    I fixed the same error (ending on _DS5 in my case) by rerouting the Data Entity Field 'ProjId' to another DataSource in my Data Entity.

    I have an OuterJoined DS with Range on ProjId.

    The data entity field ProjID had was referring to the same DS as the Range was defined upon.

    Changed the DataSource of the field to another DS in my data entity (lucky to have one).

    This way I can still use the Range on ProjId on a DataSource that is still Outer Joined (both needed).

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans