Web service connector rule error Null Object XML returned from cloud for type [Rule]

Hi, I need one help. I am working on integrating one web service. I have added one beforeRule in Create Account activity. While testing create account I am getting below error, could you please suggest fix require:

Null Object XML returned from cloud for type [Rule]

Exception occurred while performing 'Create' operation on identity 'null': Error: Error executing before operation rule for endpoint 'Create Account': Null Object XML returned from cloud for type [Rule] with identifier[IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement]
SHOW LESS

"message":"Plan attribute keys for create account operation :[planNativeIdentity, givenName, WORKFORCEID, employeeID, sn, employeeNumber]"

"message":"processEndpoint: Attempting to build request for endpoint: Create Account",

"message":"Request without updating V1 endpoint related paging information: HttpRequestWrapper [url=*****\/users\/, headers={Authorization=Bearer *****, Content-Type=application\/json}, payload={\"firstName\":\"firstName\",\"lastName\":\"lastName\",\"employeeId\":\"employeeNumber\",\"userName\":\"email\",\"email\":\"email\"}, type=POST, allowedSuccessCodes=[2**], possibleHttpErrorCodes=[],

"message":"processEndpoint: Request creation completed for endpoint: Create Account",

"message":"BEFORE OPERATION RULE ARGUMENTS:\nRequest Endpoint: EndPoint [_afterRule=null, _beforeRule=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement, _contextUrl=\/users\/, _fullUrl=*****\/users\/, _httpMethodType=POST, _operationType=Create Account, _rootPath=$, _uniqueNameForEndPoint=Create Account, paginationSteps=null, pagingInitialOffset=0, pagingSize=50, _resMappingObj={firstName=firstName, lastName=lastName, employeeId=employeeId, userName=email, email=email}, _header={Authorization=*****, Content-Type=application\/json}, _body={bodyFormData={\"firstName\":\"firstName\",\"lastName\":\"lastName\",\"employeeId\":\"employeeNumber\",\"userName\":\"email\",\"email\":\"email\"}, bodyFormat=formData}, _responseCode=[2**], _sequenceNumberForEndpoint=3, xpathNamespaces={}, possibleHttpErrors={}]\nResponse: 


"message":"Broker URL: beta\/connectors\/get-object?objectClass=Rule&objectNameOrId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement","pipeline":"1266"


"message":"Broker URL: beta\/connectors\/get-object?objectClass=Rule&objectNameOrId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement","pipeline":"1266","@timestamp":"2024-04-08T12:14:24.670Z","NativeIdentity":"9000042","thread_name":"pool-6-thread-3","atlas-util":"1823","metrics":"1266","region":"us-east-1","AppType":"Web Services","Application":"myappname Test (WebService) [source]","request_id":"xxxxxxxxxxxxxxxxx","CB_Type":"connector-bundle-webservices",}
{"exception":{"stacktrace":"com.sailpoint.mantisclient.HttpResponseException: HTTP Error 404 when communicating with URI https:\/\/myorgname-sb.api.identitynow.com\/beta\/connectors\/get-object?objectClass=Rule&objectNameOrId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement : {\"errorName\":\"NotFoundException\",\"errorMessage\":\"Rule with ID or name IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement was not found.\"}\n\tat 


_message":"HTTP Error 404 when communicating with URI https:\/\/myorgname-sb.api.identitynow.com\/beta\/connectors\/get-object?objectClass=Rule&objectNameOrId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement : {\"errorName\":\"NotFoundException\",\"errorMessage\":\"Rule with ID or name IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement was not found.\"}"}


"message":"Unable to get object from lego",

"message":"Falling back to CC...",

,"message":"Broker URL: api\/objectBroker\/getObject?objectClass=Rule&objectId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement","pipeline":"1266",


"message":"CCG CACHE [Rule] Exception loading object (404): HTTP Error 404 when communicating with URI https:\/\/xxxxxxx.accessiq.sailpoint.com\/myorgname-sb\/api\/objectBroker\/getObject?objectClass=Rule&objectId=IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement : {\"detailCode\":\"Not Found\",\"text\":\"404 Not Found: received error response from lego, status code : 404

in my web service application, I have added rule like this:


"httpMethodType": "POST",
                "pagingInitialOffset": 0,
                "sequenceNumberForEndpoint": "3",
                "uniqueNameForEndPoint": "Create Account",

 "operationType": "Create Account",
  "beforeRule": "IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement",

and rule was added like this

[
    {
        "op": "add",
        "path": "/connectorAttributes/connectionParameters/2/beforeRule",
        "value": "IDN_BeforeOperation_myappname_Rule_Add_and_Remove_Entitlement"
    }
]

This is referring to a cloud rule. Most likely Before Provisioning Rule.

Have you assigned anything to beforeProvisioningRule (not beforeRule) in the source?

Thanks a lot. This issue is fixed now.