Object is null error

i am getting object null while previewing scheme and also for aggregation i am getting
Error:
DEBUG VALUE Customization: object or identity is null
ERROR sailpoint.connector.AbstractConnector:1194 - Identity attribute [userKey] was not found.
ERROR connector.webservices.v2.WebServiceFacadeV2:2113 - Error while RO transformation - Identity attribute [userKey] was not found.: {

CODE

logger.debug("DEBUG VALUE Customization " + (object != null && object.getIdentity() != null ? object.getIdentity() : "object or identity is null"));

if (object != null && object.getObjectType() != null &&
    object.getIdentity() != null) {

    List companiesList = (List) object.getAttribute("companies");

    if (companiesList != null) {
        int companiesListSize = companiesList.size();

        for (int i = 0; i < companiesListSize; i++) {

            logger.debug("[ELITA Customization Rule] current Company order: " + i);

            Object companyItem = companiesList.get(i);
            if (companyItem != null) {
                logger.debug("[ELITA Customization Rule] Company Name: " + companyItem);
                companyKey = companyItem.toString();
            }

            List companyDescList = (List) object.getAttribute("companyDescription");
            if (companyDescList != null && i < companyDescList.size() && companyDescList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] companyDescription: " + companyDescList.get(i));
                companyDescription = companyDescList.get(i).toString();
            }

            List countryDescList = (List) object.getAttribute("countryDescription");
            if (countryDescList != null && i < countryDescList.size() && countryDescList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] countryDescription: " + countryDescList.get(i));
                countryDescription = countryDescList.get(i).toString();
            }

            List claimAuthList = (List) object.getAttribute("claimAuthorizationLimit");
            if (claimAuthList != null && i < claimAuthList.size() && claimAuthList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] claimAuthorizationLimit: " + claimAuthList.get(i));
                claimAuthorizationLimit = claimAuthList.get(i).toString();
            }

            List claimPayList = (List) object.getAttribute("claimPaymentLimit");
            if (claimPayList != null && i < claimPayList.size() && claimPayList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] claimPaymentLimit: " + claimPayList.get(i));
                claimPaymentLimit = claimPayList.get(i).toString();
            }

            List claimLiabList = (List) object.getAttribute("claimLiabilityOverrideLimit");
            if (claimLiabList != null && i < claimLiabList.size() && claimLiabList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] claimLiabilityOverrideLimit: " + claimLiabList.get(i));
                claimLiabilityOverrideLimit = claimLiabList.get(i).toString();
            }

            List arLimitList = (List) object.getAttribute("accountsReceivableApprovalLimit");
            if (arLimitList != null && i < arLimitList.size() && arLimitList.get(i) != null) {
                logger.debug("[ELITA Customization Rule] accountsReceivableApprovalLimit: " + arLimitList.get(i));
                accountsReceivableApprovalLimit = arLimitList.get(i).toString();
            }

            String custCompanyInfo = "Company : " + companyKey
                    + " | Company Name: " + companyDescription
                    + " | Country: " + countryDescription
                    + " | ClaimAuthorizationLimit : " + claimAuthorizationLimit
                    + " | ClaimPaymentLimit : " + claimPaymentLimit
                    + " | ClaimLiabilityOverrideLimit : " + claimLiabilityOverrideLimit
                    + " | AccountsReceivableApprovalLimit : " + accountsReceivableApprovalLimit;

            logger.debug("[ELITA Customization Rule] custCompanyInfo: " + custCompanyInfo);
            groupList.add(custCompanyInfo);
            object.put("companies", groupList);
        }
    }

    return object;
} else {
    if (object != null && object.getObjectType() != null && object.getObjectType().compareTo(Connector.TYPE_GROUP) == 0) {
        String roleKey = (object.getAttribute("roleKey") != null) ? object.getAttribute("roleKey").toString() : "";
        String name = (object.getAttribute("name") != null) ? object.getAttribute("name").toString() : "";

        String description = roleKey + "-" + name;
        description = description + "\\n\\nIf user only has one role and this role is removed, then they will lose access to Elita."
                + "\\n\\nIf this role is removed , then it is removed from all companies.";
        object.put("description", description);
        return object;
    }
}

You can check what is the “Identity Attribute” in your application schema under Object Type “account”. Might be that attribute value does not exist in target application.

You can print the object in xml and provide the xml trace here for analysis.

yup but the main issue is object is comming as null so i cant print to xml

Hey @autorun6464 could you please explain the purpose of this rule and let me know what type of rule it is?

its a customization rule that add the object attributes to scheme. with this while previewing scheme its saying null error which i found that object itself is null here

This appears to be a data issue where the identity attribute (userKey) has a null value in the target system.

you but thats second part the problem … its saying object is null.. how object is it comming as null is strange to me

object should not be null.