Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Regarding - Resolving Error

(0) ShareShare
ReportReport
Posted on by 190

Hi Experts !

I'm here to seek help from you 

I'm receiving the error known "There is no argument given that corresponds to the required formal parameter 'OldItemCategoryCode' of 'InheritAttributesFromItemCategory(Record Item, Code[20], Code[20])"

Kindly I need your help to resolve this 

Thanks & Regards 

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Regarding - Resolving Error

    You need to make sure you call this function with the correct parameters according to the method signature.

    InheritAttributesFromItemCategory(Record Item, Code[20], Code[20])"

    It takes 3 parameters, item record and two code values.

    The AL editor should show you what line of code is causing the problem in the problems output section.

    If you do not figure it out, please share that section of your code.

  • karthikeyani c Profile Picture
    karthikeyani c 190 on at
    RE: Regarding - Resolving Error

    Hi ,

    Are you meant it to Debug and Publish it .

    Thanks & Regards

    Karthikeyani C

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Regarding - Resolving Error

    Hi,

    Please try to use the Debug, it will stop to exact error position.

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

News and Announcements

Announcing Category Subscriptions!

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,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans