Question Status

Suggested Answer
Ahmed saber asked a question on 2 Mar 2014 3:50 AM

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* )

Reply
Suggested Answer
Denis Macchinetti responded on 2 Mar 2014 3:58 AM

Hi AHMED

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

PROBLEM

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.

AFFECTED OBJECTS

Classes\RetailConnReplicationJob_DataDirector (FPP)

Data Dictionary\Tables\RetailConnSCMonOutgoingMessages (FPP)

I hope this help.

Regards

Reply
Vasily Nosov responded on 16 Apr 2015 9:38 AM

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.

Reply
Suggested Answer
Denis Macchinetti responded on 2 Mar 2014 3:58 AM

Hi AHMED

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

PROBLEM

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.

AFFECTED OBJECTS

Classes\RetailConnReplicationJob_DataDirector (FPP)

Data Dictionary\Tables\RetailConnSCMonOutgoingMessages (FPP)

I hope this help.

Regards

Reply