Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

User cannot post returning items

$
0
0

All users that have a record in syslastvaluetablewiththe field elementname  valueSalesFormLetter_PackingSlipProjectand field designnamevalueFormletterService.postSalesOrderPackingScannot return items and get a warning. If I delete this record in thetable fort the specific user theycanbring back items without a warning. Also when try to bring the item back as another user without this record will go without warning. Once in  a whileafterdeletingthe class the record is recreatedandtheproblemreoccurs.

I use a script toseewhich users has thisspecific record.

 

staticvoid ABE_check_settingReturningItems 20171106(Args _args)
{
    SysLastValue            SysLastValue;
 
 
    whileselectSysLastValuewhereSysLastValue.elementName == 'SalesFormLetter_PackingSlipProject'&& SysLastValue.designName == 'FormletterService.postSalesOrderPackingS'
    {
        info(SysLastValue.userId);
    }
 
}
 
Toseethe record;
1.  Open AX as thespecific user and go to  FileàToolsàOptions.
2.  Select the menu Usage Data. Go tot the tabAllUsage Data.
3.  Filter on field elementnameforSalesFormLetter_PackingSlipProjectanddesignnamevalueFormletterService.postSalesOrderPackingS.
 

 
For now we leavethe record tocreatethe issue.
1.Open AX and open the project module. Find a project that is open with items on itto return.
2.On thespecific project and go toItem requirements.
 
3.Go to menu functionsàreturn items.
 
4.  Press OK.
The followingwarningappears;
 
If we delete the record mentioned in thebeginningthewarning does notoccur.
 
If we look in the code thewarningabove is label @SYS24920. This label is used in the classinventMovement. The methodcheckUpdatePhysicalcontainscalling a functioncheckNotOverDeliverythat returns a boolean. Ifthe user is gettingan error thefunction returns true. Ifnotthenthefunction returns  false.The line of code executing is:

 

    if (this.mustCheckOverDeliveryForQty(_updateNow.parmPhysical())
    && !this.checkNotOverDelivery(_updateNow.parmPhysical(), true, _updateNow.parmPdsCWPhysical()))
 

Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>