# Error after adding "WebServiceAfterOperationRule" to source

**URL:** <https://developer.sailpoint.com/discuss/t/error-after-adding-webserviceafteroperationrule-to-source/4186>\
**Category:** SHF Discussion and Questions\
**Created:** [May 11, 2022, 7:56pm UTC](https://developer.sailpoint.com/discuss/t/error-after-adding-webserviceafteroperationrule-to-source/4186 "2022-05-11T19:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cpatel](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cpatel](https://developer.sailpoint.com/discuss/u/cpatel)\
**Post date:** [May 12, 2022, 5:34am UTC](https://developer.sailpoint.com/discuss/t/error-after-adding-webserviceafteroperationrule-to-source/4186/2 "2022-05-12T05:34:13Z")

</div>

> [@prajna\_shetty](#):
>
> the WebServiceAfterOperationRule to the source and once I add the rule to the source, I get the error message “java.lang.Long cannot be cast to java.lang.Integer”. Error keeps repeating even after I remove the rule from the source.

Is this happening in sandbox or production also. Strange thing I noticed is I had WS source working in sandbox and prod both and sandbox one started failing with this error and prod is still doing fine.  
Did not try much to troubleshoot it but both sb and prod ones are connecting to same end source with same config.

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/error-after-adding-webserviceafteroperationrule-to-source/4186)._
