How to solve this error?
The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.<nativehr>0x80070024</nativehr><nativestack></nativestack>
Go to your Central Administration and navigate to "Manage web applications"
Choose resource throttling from ribbon
Increase List View threshold to maximum number of items in one list.