web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Warehouse management app

(1) ShareShare
ReportReport
Posted on by 8

can you please tell me how to solve this issue 

when i open custom menu item in  warehouse app it say "invalid execution mode"

 

image (3).png
I have the same question (0)
  • MichaelTorres Profile Picture
    86 on at
    The Invalid work execute mode error usually happens because the menu item's execution mode in the Warehouse Management App isn’t set up correctly.

    To fix this:

    1. Go to Warehouse management -> Setup -> Mobile Device -> Mobile -> Device menu items in Dynamics 365. Check the custom menu item and ensure the work execution mode matches its purpose (work for processing tasks, indirect activity for non-work tasks).

    2. If it processes work, ensure it’s linked to a valid work template under warehouse management -> Setup -> Work -> Work templates.

    3. For custom menu items, confirm any related code or extensions are correctly configured.

    After adjusting the settings, test again. If it still doesn’t work, check system logs or involve a technical consultant to troubleshoot further.
  • CU27011407-0 Profile Picture
    8 on at
    This form is only intended for testing purposes and is not supported in production scenarios.

    Invalid work execute mode.

    i tried but saying like this only
  • CU27011407-0 Profile Picture
    8 on at
    class 1::
    [WHSWorkExecuteMode(WHSWorkExecuteMode::ITVMIRequest)]
    public class ITPurchWHAVMIRequestProcessController extends ProcessGuideController
    {
        protected ProcessGuideStepName initialStepName()
        {
            return classStr(ITWHSWorkExecuteDisplayVMIRequest);
        }
        protected ProcessGuideNavigationRoute initializeNavigationRoute()
        {
            ProcessGuideNavigationRoute navigationRoute = new ProcessGuideNavigationRoute();
            navigationRoute.addFollowingStep(classStr(ITWHSWorkExecuteDisplayVMIRequest), classStr(ITPurchVMIRequestWHSControls));
          
            return navigationRoute;
        }
    }

    class 2::
    [ProcessGuideStepName(classStr(ITWHSWorkExecuteDisplayVMIRequest))]
    public class ITWHSWorkExecuteDisplayVMIRequest extends ProcessGuidePageBuilder
    {
       
       
        protected void addDataControls(ProcessGuidePage _page)
        {
            _page.addTextBox(ProcessGuideDataTypeNames::ItemId, "Itemid", extendedTypeNum(ItemId));
            //Fill details panel
            _page.addLabel(ProcessGuideDataTypeNames::RFTitle, 'Instructions:', extendedTypeNum(Description));
            _page.addLabel(ProcessGuideDataTypeNames::RFDescription1, "randam details", extendedTypeNum(Description));
        }
        protected void addActionControls(ProcessGuidePage _page)
        {
            #ProcessGuideActionNames
            _page.addButton(step.createAction(#ActionOK), true);
            _page.addButton(step.createAction(#ActionCancelExitProcess));
        }
    }

    class 3::
    [ProcessGuidePageBuilderName(classStr(ITPurchVMIRequestWHSControls))]
    class ITPurchVMIRequestWHSControls extends ProcessGuideStep
    {
        protected ProcessGuidePageBuilderName pageBuilderName()
        {
            return classStr(ITWHSWorkExecuteDisplayVMIRequest);
        }
        protected boolean isComplete()
        {
            WhsrfPassthrough pass    = controller.parmSessionState().parmPass();
            ItemId          itItemid = pass.lookup(ProcessGuideDataTypeNames::ItemId);
            return InventTable::exist(itItemid);
        }
        protected void validateControls()
        {
            ItemId          itItemid = processingResult.fieldValues.lookupStr(ProcessGuideDataTypeNames::ItemId);
            if (!InventTable::exist(itItemid))
            {
                throw error(strFmt("ItemId does notexists ", itItemid));
            }
            super();
        }
    }

    my code can you please check

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 254

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 192 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 137 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans