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 :
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,843 Moderator on at

    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

    Hi Girish

    Yes I have double checked it matches with DS name.

  • GirishS Profile Picture
    27,843 Moderator on at

    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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 454 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 311 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans