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 :
Microsoft Dynamics AX (Archived)

List (Object) called with invalid parameters. ( Multi-select lookup)

(0) ShareShare
ReportReport
Posted on by 123

I am creating a Multi-select lookup for InventLocationId, and I am using sysoperation framework. When my parm method returns a list, this error happens : List (Object) called with invalid parameters. 

Contract class :

Class declaration
[ DataContractAttribute,

SysOperationContractProcessingAttribute(classStr(EB_CollectionUIBuilder)) ]

class .....
 {
 List inventLocationId;
 }
 [ 
 DataMemberAttribute,
 AifCollectionTypeAttribute(‘ inventLocationId ‘, Types::String)
]
 public List parmLocationId( List _inventLocationId = inventLocationId)
 {
 inventLocationId = _inventLocationId;
return inventLocationId ; }

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    I believe you did the same mistake as per this community forum topic, when trying to incorrectly use a List object, which is not going to work. The suggested way is in the last post for using the UI builder class:

    community.dynamics.com/.../162468

    You need to override the lookup method for the control, and use SysLookupMultiSelectGrid helper class. The class decoration for your method with the List object also needs some changes.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans