Rated CDR Loaded Twice Once Through pin rel and then through batch controller

Hi All,
I have a rated CDR in data/out/telephony/directory. I have loaded the CDR thrugh pin_rel while batch controller was not up. I left the CDR in the same directory. When batch controller was started, the same CDR was loaded again, applying the same balance impact twice in teh same account. Is this behaviour normal or there is any configuration which can help batch controller to identify the CDR loaded through pin_rel. Though batch controller calles pin_rel through sampleRELhandler, I noticed that the extension of the file loaded through batch controller is '.out.bc' and the same while loaded directly through pin_rel is '.out' Is this causing the problem? In that case what is the solution

pin_rel uses the file name you gave (including the path if you use absolute paths) to check if the files has been loaded before.
It seems that you've used different paths to load the file. you can you backout only pipeline to unload the events.

Whereas, if i run pin_rel alone, it loads the rated cdr file cdr.out into BRM DB from .../out/telephony/directory (definitely i have to give the complete path name of the file to pin_rel). However it does not convert it into cdr.out.bc and does not move it to ../apps/pin_rel/archive/ directory after the file has been loaded.

From above observation, i understood that if a rated cdr is loaded into BRM DB using pin_rel and then left in the same directory, batch controller can not identify that this file has already been loaded into BRM DB though batch controller loads the rated cdr through pin_rel.

My question is that am I missing any configuration due to which same pin_rel can not identify the rated cdr which already has been loaded into BRM DB.

The only difference in the above two cases is that when pin_rel is run stand alone it loads the file cdr.out while it is called through batch controller, it loads the file cdr.out.bc

In your reply you also told to use back out pipeline to remove the duplicate event from BRM database. As per my understanding, back out pipeline will re-rate te CDR once they are extracted from BRM DB using pin_event_extract and load them back again to BRM DB. My requirement is to remove those events from BRM DB and not to rate and load the same again.Can I use pin_event_extract utility and back out pipeline to achieve this?

For pin_rel as I mentioned before, it can identify duplicate files only if they have the same name (and path if files are not in the current working directory). you can check INPUT_FILE_NAME field in BATCH_REL_T.

The .out.bc extension used by batch controller for identified files, files are loaded by the handler from $PROCESSING directory.

There is a difference between backout-only rerating , and rerating.
backout-only rerate pipeline rate the event with negative value, so when loaded the total is zero.
rerating , adds a packet with the difference between old rate and new rate, so to total is the new rate. You can also refer to the documentation to the difference.

pin_event_extract does not remove the events from the database it just write them to a file.

I have configured the back out pipe line and was able to extract the events from BRM DB. However, when the extracted file is sent to backout pipline, i am getting an error 'ERR_INPUT_MAPPING_FAILED' and 'ERR_DATABLOCK_NOT_FOUND'. Is this because incorrect input grammer file or due to events extracted incorrectly.

I am not sure about which grammer file should I use for ifw.pipelines.ALL_BCKOUT.DataDescription.InputMapp i ng and also for

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.