040002 : Not enough memory.
This error may be due to one of the following conditions:
- There is not enough virtual memory, or the available memory is fragmented.
- The page file size is too small.
- Not enough memory is available in the temporary directory.
Contact Esri Support.
Note: Simply increasing physical memory, virtual memory, or disk space may not solve the problem.