Skip to main content

Notifications

Business Central forum
Suggested answer

Regarding - Resolving Error

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 

Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator 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,023 Moderator 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

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans