Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error message when I created a sales credit note

(0) ShareShare
ReportReport
Posted on by

Hi:

I couldn't create a sales credit note from one customer invoice, I received this error message:

It is not possible to copy one or more of the selected lines of the sales order. The lines of the sales order you are trying to copy depend on a sales contract. A copy of the sales order lines would conflict with said sales contract

What do I need to do to fix this problem in Dynamics AX 2012R3?

Thank you.

*This post is locked for comments

  • B.W Profile Picture
    B.W 505 on at
    RE: Error message when I created a sales credit note

    Good day Jose.

    Check the sales agreement, have seen this error previously i think when the sales agreement or line on the sales agreement has expired.

  • Umair Zafar Profile Picture
    Umair Zafar 115 on at
    RE: Error message when I created a sales credit note

    Dear Jose,

    Did you get any solution for your error because i am also facing the same with scenerio.

    Please advise

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Error message when I created a sales credit note

    Hi Jose,

    There are some validations which will be executed during the copying functionality. The method 'isLinkValid' on the AgreementLine table has all the logic. E.g. a check if the ItemId is the same or if the delivery date for intercompany orders are still valid. A developer would be able to do some debugging to find the scenario which is failing in your environment.

  • RE: Error message when I created a sales credit note

    Hi André:

    These are the error messages:

    First Line:

    It is not possible to copy one or more of the selected sales order lines. The sales order lines that you are trying to copy are dependent on a sales agreement. A copy of the sales order lines would conflict with that sales agreement.

    Second line:

    Microsoft.Dynamics.Ax.Xpp.ErrorException: Se produjo una excepción de tipo 'Microsoft.Dynamics.Ax.Xpp.ErrorException'.

      en Dynamics.Ax.Application.SalesCopying.Copy() en SalesCopying.copy.xpp:línea 556

      en Dynamics.Ax.Application.SalesCopying_CreditNote.Copy() en SalesCopying_CreditNote.copy.xpp:línea 8

      en Dynamics.Ax.Application.SalesCopying.copyServer(Object[] _packedSalesOrderCopyingContract, Boolean _isCreditNote) en SalesCopying.copyServer.xpp:línea 15

      en Dynamics.Ax.Application.SalesCopying.invokeCopyServerIL(Object[] _packedParameters) en SalesCopying.invokeCopyServerIL.xpp:línea 17

      en SalesCopying::invokeCopyServerIL(Object[] )

      en Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      en Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) en SysDictClass.invokeStaticMethod.xpp:línea 26

      en SysDictClass::invokeStaticMethod(Object[] )

      en Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      en Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Error message when I created a sales credit note

    HI Jose,

    Can you post a screenshot of the error? As mentioned above, I wonder if you did translate the error message or if this is the exact error you get.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Error message when I created a sales credit note

    Hello Jose,

    I don't think that you need to open a support ticket with MS to fix this.

    Can you let us know a bit more about the credit note you try to create?

    Is the credit note related to an item that the customer returned or do you simply want to credit the customer x dollars?

    If the customer returned the goods, what do you plan to do with them, etc. etc.

    Would be great if you could provide us some more details.

    Many thanks and best regards,

    Ludwig

  • RE: Error message when I created a sales credit note

    Thank you for your help.

    What do I need to reduce the number of lines?

    Do I need to create a credit note from ledger general module?

    Can I fix the problem this situation in AX?

    This sales order contains only one line, the sales agreement contains 20 lines.

    Do I need to create a support ticket to Microsoft to fix this situation?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Error message when I created a sales credit note

    Hello Jose,

    If it does not conflict with your sales contract / sales agreement can't you simply create the credit note manually? This should not require too many extra steps and time unless you have a lot of rows included in the original sales order.

    Best regards,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Error message when I created a sales credit note

    Hi Jose,

    Is this literally the error message or did you translate it from another language? A "sales contract" is not an usual term in AX. Instead, we are used to have "sales agreement".

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans