vijet
Jr. Member

Karma: 5
Posts: 56
|
 |
« Reply #2 on: January 13, 2009, 10:41:09 am » |
|
Hi All,
I identified the reason for the problem..... The jms queue was throwing the null pointer exception... Now there is one thing that i have come across while inserting the records into MXIN_INTER_TRANS table.. The action column in the table needs to be given some keyword like Add,Change,Delete,AddChange etc....
Add : Insert the data provided in the message. Delete: Delete the parent data, and any related child data, from the database. Change: Update parent and child data per the contents of the message, but do not delete existing child data not explicitly specified in the message. Replace: Replace the existing record(s) with the contents of the message and delete existing child data not referenced in the message. AddChange: If the primary record does not exist, process as Add action; otherwise, process as a Change action. Null: If the primary record does not exist, process as Add action; otherwise, process as a Replace action.
I initially tried the add action but i got the error that there was no record for the key value as in interface table in my business table...
Scenario: I have a developer table in maximo with developerid as key column. I have created the interface table for the same. Now if i specify the action as add in the MXIN_INTER_TRANS table, the record is picked from the MXIN_INTER_TRANS table and put in the queue. Now maximo checks for the record with the developerid specified in interface table to that in developer table. if it does not find any then it should insert the new record.. In my case its not happening... I am getting a null pointer exception.. But if i manually insert a record in developer table and then reload the crontask for inbound transaction then the record gets updated with the new values coming from interface tables... Dont know what is the problem in inserting the new record... The scenario is the same for Add, AddChange or if i leave the action column as null....
Can anybody give an idea how i can insert the new record.....
|