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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Enumeration type fields in Electronic Reporting

(1) ShareShare
ReportReport
Posted on by 44

Hello all.

I'am making a report in Electronic Reporting feature in D365FO and I'm having some issues with enum type fields on model mapping. In the data source  I created two fields, one as enum type field and other as a boolean type field. In the data model I put the same options that this fields has on D365FO. In the model mapping I wrote the formula for to put logic in the fields. The problem is at the moment to valid the model mapping for to change its status for "Concluded". The D365FO show me the error message below:

"Can not convert expression of type Enum to field of type Enum"

I can't understand because the field and the formula expression are of the same type.

Here is my data model

pastedimage1641235090189v1.png

Here is my enumeration type data source on model mapping

pastedimage1641235319440v2.png

And heret is he formula that I used to bind the data model to the data source.

pastedimage1641235455744v3.png

Below the error message give by D365FO when I try to validate the model mapping.

pastedimage1641235551090v4.png

I'am having this problem with two fields. The other one is a boolean type field as can see at the image above. But even I changing the type of field in the data model to enum I receive the same error message just saying that the expression type is enum and not boolean.

I have the same question (0)
  • Eric_Santos Profile Picture
    44 on at
    RE: Enumeration type fields in Electronic Reporting

    Hi Alireza.

    Yes It's done. I can't to understand where is the problem here.

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,612 Super User 2025 Season 2 on at
    RE: Enumeration type fields in Electronic Reporting

    Hi Eric,

    Have you defined these Enum on your mapping model under as 'Enumeration ' data source properties?

    Example:

    pastedimage1641244026064v2.png

    pastedimage1641243978185v1.png

    I am wondering if you have created the formula correctly. Does FiscalDocumentLine.Type enum?

    pastedimage1641244534531v4.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 844 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans