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.
The table WHSWorkLineCycleCount does not contain the method WHSWorkTable.
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.
After the configuration key "Warehouse and Transportation management" is disabled, you will get above compilation and CIL error on standard AX
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: