Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

got error in SSRS report when deploy

Posted on by 5,901

Hi All,

i have added one date filed in design and wrote below expression -- 

=First(Fields!GDJ_InvoiceDate.Value, "SalesInvoiceHeaderFooterDS") when deploying then got below error -- 

but got below error --

System.Web.Services.Protocols.SoapException: The Value expression for the text box ‘Textbox27’ refers to the field ‘GDJ_InvoiceDate’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Guid batchId, Warning[]& Warnings)
at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings) C:\Program Files (x86)\MSBuild\Microsoft\DynamicsTools\Microsoft.Dynamics.Framework.Design.Reporting.Modeling.targets 466 6 GDJ_JPN_SalesInvoice

Kindly let me know how to resolve the issue

Please give me more shed on this.

Thanks!

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: got error in SSRS report when deploy

    Thanks Jolanta,

    Now it's done.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: got error in SSRS report when deploy

    Thanks Jolanta,

    Now it's done.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: got error in SSRS report when deploy

    Hi @rp@n,

    Do you reference multiple data sets in the same data region? What are your specific needs?

    The simple method is that one region corresponds to one data set.

    Please check this if it's helpful: https://stackoverflow.com/questions/45057360/ssrs-error-report-item-expressions-can-only-refer-to-fields-within-the-curren

  • Verified answer
    RE: got error in SSRS report when deploy

    Hi @rp@n,

    this error indicates that the field you provided in the expression does not exist in the SalesInvoiceHeaderFooterDS dataset - so either you added it to a different temporary table and by doing so it is now in a different dataset, you used a different name for it (are you sure you used the GDJ_ prefix in the field name? and not GDJ alone or GDJ_JPN_? no spelling issue? no letter case mismatch?),... or you have not refreshed the SalesInvoiceHeaderFooterDS dataset. Could you please double check it? This field needs to be present in the fields list of the SalesInvoiceHeaderFooterDS dataset with the exact same name as used in the expression.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans