CDR issues

In CDR, it is the most common issue in CDR.
We get errors like below-

"30023: Data is not available for the date range selected.
Data is available only from Dec, 2009 to Jan 2, 2010"

"10021 no matching record"

Customer panics here and opens TAC case to resolve it. Here I will give you some tips and tricks on how to resolve it quick.


First, check if there are any files in the processed folder. Obviously, there won't be any and you would see the following error-
"no file was found to show"
However, you have checked that files are present in CDR repository, in preserve and car folder.

In such a scenario, first get the output of-
run sql select * from car:tbl_system_preferences
CDR_MAX_DATE              09/16/2010   -> this part is most important as it shows that CAR has data till Sep16
                             
Now, pull the CAR scheduler traces and check why CAR was not loading the data after 16th.

Generally there is a bad CDR/CMR file due to which it can not loads the data.
I provide you a snippet of the error you should get in such a scenario-
2010-01-29 00:01:24,157 ERROR [DailyCdrLoad] controller.CtrLoadCDRRecords - processRecords(): NumberFormatException Error while setting UDT object
java.lang.NumberFormatException: For input string: "3,600"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:456)
    at java.lang.Integer.parseInt(Integer.java:497)
    at com.cisco.ccm.car.controller.CtrLoaderUtil.computeCharge(CtrLoaderUtil.java:1146)
    at com.cisco.ccm.car.controller.CtrLoadCDRRecords.processRecords(CtrLoadCDRRecords.java:1334)
    at com.cisco.ccm.car.services.CDRCMRDBLoader.loadFileToDB(CDRCMRDBLoader.java:433)
    at com.cisco.ccm.car.controller.CtrLoadCDRCMRFiles.loadCDRFiles(CtrLoadCDRCMRFiles.java:522)
    at com.cisco.ccm.car.controller.CtrLoadCDRCMRFiles.load(CtrLoadCDRCMRFiles.java:328)
    at com.cisco.ccm.car.controller.CtrLoader.run(CtrLoader.java:1557)
    at com.cisco.ccm.car.services.SchThread.run(SchThread.java:622)

If you are getting the above error message, it definitely calls for this caveat-
It affects all CM releases prior to 7.1.2.

However, in order to apply the workaround, we have to search unprocessed CDR flat files.

You would see the below snippet in CAR scheduler traces-
2010-12-09 13:46:18,275 DEBUG [DailyCdrLoad] services.CDRCMRDBLoader - loadFileToDB(): Incompatible but loadable CDR/CMR File - cdr_StandAloneCluster_02_201011100918_119521
2010-12-09 13:46:21,328 DEBUG [DailyCdrLoad] services.CDRCMRDBLoader - loadFileToDB(): Incompatible but loadable CDR/CMR File - cdr_StandAloneCluster_01_201011100918_358283
2010-12-09 13:46:24,297 DEBUG [DailyCdrLoad] services.CDRCMRDBLoader - loadFileToDB(): Incompatible but loadable CDR/CMR File - cdr_StandAloneCluster_02_201011100919_119522

All the incompatible files, needs to be deleted so that new files can get generated.

In order to collect all such traces, please make sure that you have set them to detailed and collect them from all nodes.
Click on this link to find out how to set traces to detailed.

Other references.

Comments

Popular posts from this blog

Status: Local Agent is not responding. This may be due to Master or Local Agent being down.

Understanding code yellow