web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

error AL0334: The extension object '***' cannot be declared. ...target itself is already declared

(1) ShareShare
ReportReport
Posted on by 6
I want to make a XMLPort to my page, my page hasn't been done by extends yet. Here is my page:

 
page 50102 /Coupon List/
{
    PageType = List;
    CardPageId = /Coupon Page/;
    ApplicationArea = All;
    UsageCategory = Administration;
    SourceTable = Coupon;
 
    layout
    {
        area(Content)
        {
            repeater(Group)
            {
                field(coupon_code; Rec.coupon_code)
                {
                    ApplicationArea = All;
                }
                field(/Title/; Rec./Coupon Title/)
                {
                    ApplicationArea = All;
 
                }
                field(/Type/; Rec.coupon_type)
                {
                    ApplicationArea = All;
 
                }
                field(/Start Date/; Rec.coupon_StartDate)
                {
                    ApplicationArea = All;
 
                }
                field(/End Date/; Rec.coupon_EndDate)
                {
                    ApplicationArea = All;
 
                }
                field(/TimeZone/; Rec.coupon_timeZone)
                {
                    ApplicationArea = All;
 
                }
            }
        }
    }
 
    actions
    {
        area(Processing)
        {
            action(ActionName)
            {
                ApplicationArea = All;
 
                trigger OnAction()
                begin
 
                end;
            }
        }
        area(Navigation)
        {
            action(/Redeem Record/)
            {
                ApplicationArea = All;
                AboutText = 'The Coupon Redeem History List';
                Caption = 'Redeem Record';
                RunObject = page /RedeemCoupon List/;
 
            }
        }
    }
 
    var
        myInt: Integer;
}

 
And then I do the extends:

pageextension 50111 XMLExportCoupon extends /Coupon List/
{
 
    actions
    {
        // addafter(History)
        // {
        //     action(ExportItem)
        //     {
        //         Caption = 'Export';
        //         Promoted = true;
        //     }
        // }
    }
 
    var
        myInt: Integer;
}

 
I faced the error by
The extension object 'XMLExportCoupon' cannot be declared. Another extension for target 'Coupon List' or the target itself is already declared in this module.ALAL0334
 
Is there anyone can help me?
 
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans