Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV 2015 RU7. Error message when opening Page from Page Action.

(0) ShareShare
ReportReport
Posted on by 2,983

I've got a NAV 2015 RU7 Installation.

I have a custom page "Students" that shows a list of students and Invoice No. This data is stored in a custom table as well.

I've created a new Page Action in the Posted Invoices List Page. In the properties I've set RunObject "Page Students" and RunPageLink "Invoice No.=FIELD(No.)"

When I use this new page action, first I get an error message that says "The record that you tried to open is not available. The page will close or show the next record". However, when I accept this error message, the correct records are displayed in the "Students" Page. 

So the page action works correctly, but shows this annoying error message. Any ideas on how to fix this?

*This post is locked for comments

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Nice catch! Indeed the page type was card. This was actually a page upgraded from a Nav 5 form, and the upgraded page type  was set as card. Chaging to List fixed the error.

    Thank you!

  • Verified answer
    Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Could you tell us what is the Page Type, if it is not list can you change it to LIST and check

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Yes, but maybe this wasnt fixed in Page Action RecordLinks. Not sure anyway, If someone could test this in their installation:

    It's just call a Page from a PageAction using RunObject and RunPageLink properties. The RunPageLink must not use the primary key of the target table.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    But you said you have installed CU7 so which means CU5 fixes are included in it?

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Doing it by code works, but maybe there is a bug when doing this with Page Action properties??

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Or please write code under action by setting filter on Invoice No. and run the page

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Thanks for the answer. As I said in my original post, the records are being displayed after the error message, so the end result is correct, I only don't understand why it's showing the error message. 

     

    I haven't got any other filter, just "Invoice No."=No. in the Record link property.

     

    Could this be somehow related to NAV 2015 Cumulative Update 5 ?

    363897
    "The record that you tried to open is not available. The page will close or show the next record." error message if any Get statement fails in the OnInsert trigger.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    Hi,

    If you are having any other filter apart from the Primary key, please check whether the filter is yielding any record.  This issue normally only if there are no records available for the currently applied filter.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    The primary key is: "Resource No.",Student.

    However in this case, I need to filter just by a third field which is "Invoice No."

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: NAV 2015 RU7. Error message when opening Page from Page Action.

    what is the primary key of Students table?

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans