Dear all when i run batch job p -0001 to pull transaction from POS to AX i got error code 24577 on POS machine and the tmp file hold on the work folder on POS machine the below error
CSysMgr::Main: EXCEPTION: System.ArgumentException: Invalid package number range.
at MessageDBDAL.MessageDBAccess.ReadRangeIncMsg(String serviceName, Int32 firstPackage, Int32 lastPackage, String jobID)
at CSysMgr.ReadRangeIncMsg(CSysMgr* , CMyArray* oIncArr, UInt32 nFirstPkt, UInt32 nLastPkt, basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* sJobId)
at CSysMgr.CheckStatusQueue(CSysMgr* , CIncomingMsg* pNewMsg, UInt32* nTimeStmp)
at CSysMgr.ProcessWaiting(CSysMgr* )
at CSysMgr.Main(CSysMgr* )
Which AX version you are talking ?
Your issue is recognized from Microsoft on AX 2012.
KB 2801088 "Invalid package number range" error occurs when running the same P-job for multiple distribution locations
When a P-job is run for multiple distribution locations, package numbers can't be obtained and assigned. The error "Invalid package number range" appears in the Store Connect log file.
DESCRIPTION OF CHANGE
The changes in this hotfix include updates to the connection string in the class method RetailConnReplicationJob_DataDirector.
Data Dictionary\Tables\RetailConnSCMonOutgoingMessages (FPP)
I hope this help.
Problem still exists for AX2012R2, even for 6.2.2000.14 version. It occurs, for example, when there are three distribution locations, so we have 3 lines in message tables, e.g. PackageNos 1001, 1002, 1003. When lines 1001 and 1003 are processed, but 1002 is not, it may result to that error. Sometimes even service restart didn't helps, but manual changing status of 1002 to processed lets service continue to works.