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, ...
Answered

Cannot use Lookup function in SSRS report in D365 F&O

(0) ShareShare
ReportReport
Posted on by 5

Hi, 

I have created a SSRS report based on D365 F&O which contains three datasets. Everything works fine until I try to use Lookup function in SSRS. For simplicity consider I have a field named "Item Id" in Main Dataset (Applied on the tablix). In another dataset say "SecondaryDS" I have a field named "ItemId". I am matching the Item Id field in both datasets to fetch Name field from the "SecondaryDS".

This is a normal case for a SSRS Lookup function. In the Textbox box I have created the following expression.

=Lookup(Fields!ItemId.Value, Fields!ItemId.Value, Fields!Name.Value, "SecondaryDS")

The expression does not show any error but when I try to deploy the report I get the following error. Have anyone faced similar sort of issue. If yes please let me know 

pastedimage1675903282139v2.png

PS: I have done a workaround for solving my problem but I am just curious about how we will get this lookup function to work.

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at
    RE: Cannot use Lookup function in SSRS report in D365 F&O

    Hi Noman,

    Can you double check whether the dataset name "SecondaryDS" match with the dataset name under SSRS report dataset node.

    Thanks,

    Girish S.

  • Noman Rasheed Profile Picture
    5 on at
    RE: Cannot use Lookup function in SSRS report in D365 F&O

    Hi Girish

    Yes I have double checked it matches with DS name.

  • GirishS Profile Picture
    27,827 Moderator on at
    RE: Cannot use Lookup function in SSRS report in D365 F&O

    I too tried using the lookup method and got the same error.

    I don't know the reason for that. But in future if you find solution to this please post the answer here which will be helpful for others.

    If I find the solution in future I will update this thread.

    Thanks,

    Girish S.

  • Verified answer
    huijij Profile Picture
    19,811 on at
    RE: Cannot use Lookup function in SSRS report in D365 F&O

    Hi Noman,

    Thanks for your detailed issue description. In order to better investigate the cause of the error. It is recommended you create a support ticket for professional assistance following the below procedure.

    Help + support | Power Platform admin center (microsoft.com)

    Best Regards, 

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans