Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Getting following error while select multiple grids

Posted on by 2,432

In AR->Journals->payment Journal-> enter customer payment,

while selecting customer, it shows all invoice line.

If I am updating only for one line, I am not getting the error but if I select multiple grids & update then I am getting following error

 

  

*This post is locked for comments

  • Suggested answer
    Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: Getting following error while select multiple grids

    Sohaib Bhai,

    I resolved this issue that would be help for those who might get this error when they try to add any field into the grid.

    The form name is CustpaymEntry and navigation is AR->Journals->payments->Payment Journal -> Enter Customer Pay. 

    Note: This form is not customized form, it is purely standard AX form.

    When I trying to add new field into this form, it is showing the following error.

    These mandatory fields are from CustSettlementTransactionPriority Table which is one of the datasource in CustPaymEntry Form. After struggling for a while, It got resolved.

    I have overridden two methods in CustsettlementTransactionPriority_DS  i.e., validateWrite() & write() methods.

    In validateWrite() method, I commented super() and return true and in write() method, I commented super().

    Thats it, issue resolved.

    Thanks,

    Raziq

     

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Getting following error while select multiple grids

    it will not be appropriate way.

    CustSettlementTransactionPriority (table) is standard. we cannot change its field properties from mandatory to non-mandatory.

    instead better is to find where is the issue. I have doubt on your data, if you have not customized code for marking transactions

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: Getting following error while select multiple grids

    Sohaib bhai,

    What If I change the mandatory property of fields in linkActive method.

    Thanks,

    Raziq

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Getting following error while select multiple grids

    LinkActive(method) of CustTransOpen(DataSource) is available in standard system.

    This method is called as you move to new line in settlements form.

    Read here the purpose of linkActive method and try to figure out that as you move to new line and mark it what going on in your system

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: Getting following error while select multiple grids

    Sohaib bhai,

    I have't used LinkActive method in CustTransOpen ds and even it is not exist in standard AX. Correct me if I am wrong.

    Thanks,

    Raziq

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Getting following error while select multiple grids

    okay I just saw it quickly.

    Changing field properties will be wrong way, because its standard ax table and fields are mandatory by default.

    the table  CustSettlementTransactionPriority  is being entertained on LinkActive(method) of CustTransOpen(DataSource). seems something wrong with your data. you need to debug your environment further. Honestly speaking it does not seems at bug in existing system, so you can be the best guy to figure it out. turn on debugger and check where it is failing how it is reaching to CustSettlementTransactionPriority  on marking of a transaction

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: Getting following error while select multiple grids

    Sohaib Bhai,

    It is CustSettlementTransactionPriority table which has companyId & priority  fields in it.

    I am just afraid if I changed the mandatory as no that would cause trouble to others.

    Thanks,

    Raziq

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Getting following error while select multiple grids

    somewhere property of fields on table is mandatory and it is asking data on save. you need to debug it and you need to see properties of fields in table.

    check where is the filed having label "Priority". either provide data  to it or make it non mandatory. similar for 'company account id' either provide data or make it non-mandatory

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: Getting following error while select multiple grids

    one field is from CustTransOpen & other is from CustTrans.

    This error only hitting when I am selecting multiple grid lines but not hitting when I select only one grid line.

    Selecting = Marking.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Getting following error while select multiple grids

    in which table you have customized fields and are those same, as you are receiving error?

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans