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.

  • GirishS Profile Picture
    27,845 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,845 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,813 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 347 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 197

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans