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)

WMS Portal crashes

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I have developed a new screen for Purchase Put-Away in WMS and it works perfectly fine in Ax client. But when we run it in a browser, it gives an error only when a work is completed and the user tries to start another work by entering a WorkId. Basically after the below screen:

WMS-Error.JPG

When I checked in the event viewer, I got a warning which says "Collection was modified after the enumerator was instantiated." After debugging, I got to know that it is failing at the loc:

pass = this.combineMaps(globalPass, pass);

though the value of pass (_sourceMap) inside the method "combineMaps" is not getting modified as suggested by the error.

Please suggest a solution ASAP. Thanks.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Abhishek,

    Probably you have to tell some more details about how you did your development. Can you confirm you did a CIL compilation and also restarted or reset the IIS?

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Andre,

    Thanks for your reply. I had tried all these things with full compile and CIL too but nothing had helped. But the good news is that finally I have resolved the issue which was coming while combining both the maps. I believe it was because of the way C# & X++ handle maps & collections. I have directly assigned map: globalPass to the map:pass instead of combining. As globalPass always have all the values required by pass to process this had to work and hence it did :)

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