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 :
Small and medium business | Business Central, N...
Answered

The name of variables and parameters must be suffixed with the type or object name.[AA0072]

(0) ShareShare
ReportReport
Posted on by 256

Hi All,

 I have declared the Record Variable for eg. VendLedgEntry: Record "Vendor Ledger Entry";  and also enable code analysis. But it shows the warning "The name of VendLedgerEntry is not valid. The name of variables and parameters must be suffixed with the type or object name.". How to solve this warning please suggest.

I have the same question (0)
  • Verified answer
    Bharatesh J R Profile Picture
    95 on at

    Hi Neo,

        The variable name has to be same as record name VendorLedgerEntry : Record "Vendor Ledger Entry".

  • NeoMatrix Profile Picture
    256 on at

    Thanks for your Reply. It's Done.

  • NeoMatrix Profile Picture
    256 on at

    Hi @Bharatesh J R .  As you suggest [The variable name has to be same as record name VendorLedgerEntry : Record "Vendor Ledger Entry". for this is warning is gone. But if I want to define two record Variable one for fetch the data and one for Modify as like below

    var
    
            CheckLedgerEntry: Record "Check Ledger Entry";
            CheckLedgerEntryCopy: Record "Check Ledger Entry";
            
                    CheckLedgerEntry.Reset();
                    CheckLedgerEntry.SetCurrentKey("Bank Account No.", "Entry Status", "Check No.");
                    CheckLedgerEntry.SetRange("Bank Account No.", GenJournalLine."Account No.");
                    CheckLedgerEntry.SetRange("Entry Status", CheckLedgerEntry."Entry Status"::Printed);
                    CheckLedgerEntry.SetRange("Check No.", GenJournalLine."Document No.");
                    if CheckLedgerEntry.FindSet() then
                        repeat
                            CheckLedgerEntryCopy := CheckLedgerEntry;
                            CheckLedgerEntryCopy.Amount := BankAccountLedgerEntry."Amount (LCY)";
                            CheckLedgerEntryCopy.Modify();
                        until CheckLedgerEntry.Next() = 0;

    In this case It will give the same warning for "CheckLedgerEntryCopy: Record "Check Ledger Entry";  [AA0072. how to handle this warining. Please suggest

  • Suggested answer
    Bharatesh J R Profile Picture
    95 on at

    Hi Neo,

        Instead of CheckLedgerEntryCopy: Record "Check Ledger Entry" add copy as prefix to record variable CopyCheckLedgerEntry: Record "Check Ledger Entry"

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans