March 03, 2015

The table WHSWorkLineCycleCount does not contain the method WHSWorkTable.

Hi Folks,

Today i just got this error message for "WHSWorkLineCycleCount" table.  while there is no changes in standard objects. Have a look on below case and share your suggestion and feedback as well. Here i am sharing my experience with the same.

Compilation error:
The table WHSWorkLineCycleCount does not contain the method WHSWorkTable.

CIL Error:
CIL generation: Warning: CIL could not be generated for X++ method WHSWorkTableForm.sourceButton_clicked due to X++ compile errors. This method throws an exception if run as CIL.

Possible Reason:
After the configuration key "Warehouse and Transportation management" is disabled, you will get above compilation and CIL error on standard AX 

Solutions:
1. Add one method in table WHSWorkLineCycleCount named WHSWorkTable
To fix it on your environment, simply create a method with name whsWorkTable() on the WHSWorkLineCycleCount table, that returns the corresponding work based on the relation field 
2. You can also try below hotfix:
http://support2.microsoft.com/hotfix/KBHotfix.aspx?kbnum=3001197&kbln=en-in

-Harry

No comments:

Post a Comment

Thanks