Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error while running a report

Posted on by Microsoft Employee

Dear Experts,

While running a report getting an error. Please advise

errorreport.png

error-code.png

Thanks

With Regards

Mandeep Kaur

*This post is locked for comments

  • Suggested answer
    RE: Error while running a report

    Hi,

    This happens because the user has created a new field using TableRelation = <Related_Table> but the data type is not match with primary key of related table.

                          E.g. Customer | Integer | TableRelation=Customer

    Solution :

    • Get all text object backup from related environment.

    • Open it from text editor application.

    • Find the following string.

                <DataType>       ;TableRelation=<TableName>

                E.g.: Boolean       ;TableRelation=Customer

    Then make the appropriate relation.

    Hope it helps

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Error while running a report

    and I hope field Report ID is of datatype Integer and User ID is either text or Code.

    may be different: why are you not assigning report id parameter value to field report id after get statement in first screenshot?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error while running a report

    Please find below screenshot

    keys.png

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Error while running a report

    can you show the screenshot of keys of the table?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error while running a report

    Hi,

    ReportID,USERID are the primary keys

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Error while running a report

    you get this error when you use wrong parameters in GET.

    what is the primary key of table repusagetemp?

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

Featured topics

Product updates

Dynamics 365 release plans