Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Error "The referred item is not of full visibility, therefore shipment can only be made at status "picked"." when pick Sales order by code

(0) ShareShare
ReportReport
Posted on by 403

Hello everyone,

I want to ask something, I have code to pick sales order and packing slip sales order. When use item catch weight I always have error like this

pastedimage1616765950221v2.png

The referred item is not of full visibility, therefore shipment can only be made at status "picked".
To resolve this issue, go to the order lines -> Inventory -> Pick to pick sufficient amount to issue.
Insufficient inventory transactions with status Picked.
But if I use an item that is not a catch weight there is no error. this is my code
private void createPickReserverSOline(salesline salesln, SalesQty   qty)
    {
        Query inventTransQuery;
        QueryRun qr;
        QueryBuildDataSource qbds;
        InventTrans inventTrans = null;
        InventDim inventDimPick = null;
        InventTransOrigin inventTransOrigin = null;
        TmpInventTransWMS tmpInventTransWMS = null;
        InventTransWMS_Pick inventTransWMS_Pick = null;

        inventTransQuery = new Query();
        qbds = inventTransQuery.addDataSource(tableNum(InventTrans));
        qbds.addRange(fieldNum(InventTrans, StatusIssue)).value(queryValue(StatusIssue::OnOrder));
        qbds.addRange(fieldNum(InventTrans, StatusReceipt)).value(queryValue(StatusReceipt::None));
        qbds = qbds.addDataSource(tableNum(InventTransOrigin));
        qbds.relations(true);
        qbds.joinMode(JoinMode::InnerJoin);
        qbds.addRange(fieldNum(InventTransOrigin, InventTransId)).value(salesln.InventTransId);
    
        qr = new QueryRun(inventTransQuery);
        while (qr.next())
        {
            inventTrans = qr.get(tableNum(InventTrans));
            inventTransOrigin = qr.get(tableNum(InventTransOrigin));
        
            // Set inventory dimensions for picking
            inventDimPick = inventDim::find(salesln.InventDimId);
            inventDimPick = inventDim::findOrCreate(inventDimPick);
        
            tmpInventTransWMS.clear();
        
            inventTransWMS_Pick = InventTransWMS_Pick::newStandard(tmpInventTransWMS, inventTransQuery);
            tmpInventTransWMS.initInventDimId(inventTrans.InventDimId);
            tmpInventTransWMS.UnitId            = inventTrans.inventUnit();
            tmpInventTransWMS.InventTrans       = inventTrans.RecId;
            tmpInventTransWMS.InventTransOrigin = inventTrans.InventTransOrigin;
            tmpInventTransWMS.initInventQty(PdsCatchWeight::inventQty(InventTrans.ItemId, salesParmLine.PdsCWDeliverNow, InventTableModule::find(InventTrans.ItemId, ModuleInventPurchSales::Sales).UnitId),inventTrans.StatusReceipt,inventTrans.StatusIssue);
            tmpInventTransWMS.initPdsCWQty(salesParmLine.PdsCWDeliverNow,inventTrans.StatusReceipt,inventTrans.StatusIssue);

            tmpInventTransWMS.PDSBaseValue = inventTrans.pdsGetPotencyValue();
            //tmpInventTransWMS.initFromInventTrans(InventTrans);
            tmpInventTransWMS.initFromInventTransOrigin(inventTransOrigin);
            tmpInventTransWMS.initFromInventDim(inventDimPick);
            tmpInventTransWMS.ItemId    = InventTrans.ItemId;
            tmpInventTransWMS.UnitId    = InventTableModule::find(InventTrans.ItemId, ModuleInventPurchSales::Sales).UnitId;
            tmpInventTransWMS.PdsCWQty  = salesParmLine.DeliverNow;
            tmpInventTransWMS.InventQty = PdsCatchWeight::inventQty(InventTrans.ItemId, salesParmLine.PdsCWDeliverNow, InventTableModule::find(InventTrans.ItemId, ModuleInventPurchSales::Sales).UnitId);
            inventTransWMS_Pick.writeTmpInventTransWMS(tmpInventTransWMS);
            inventTransWMS_Pick.updateInvent();
        }
    }
Anybody help me? Im sorry for my bad english.
Thanks
  • AR-08051333-0 Profile Picture
    AR-08051333-0 8 on at
    Error "The referred item is not of full visibility, therefore shipment can only be made at status "picked"." when pick Sales order by code
    Hi
    Can you please share the solution for the same. Actually I am also facing the same issue. 

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans