on 12-10-2014 7:42 AM
Mapping fail saying that unparseable date exists. The payload size is too big. When I download the payload and take part of it and test in message mapping it executes so the mapping is fine..
Is it possible to cut the payload and take it in instalments usng JDBC sender cc?
Or can I use date in select statement and update flag in update so that those values won't be picked ever
How to reduce data pcked from database?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
For Unparseable date issue, I suppose you might have used TransformDate function, and some records from the table may not have the date value in the field. Thus, you will need to correct the mapping by adding a condition to check if the date filed value exists.
For selecting records in limited number, depending on the database that you are interfacing with, there can be different SQL functions. As correctly pointed in Dheeraj's blog by Suhale Sheik.
You can also try using the WHERE clause with the FLAG field and the date field in your table.
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Is it possible to cut the payload and take it in instalments usng JDBC sender cc?
Yes, you can limit the number of records fetched by the Select query by including rownum ( less than 1000 records or so) at the end of the query.
Or can I use date in select statement and update flag in update so that those values won't be picked ever
Yes you can do this and update the update flag.
How to reduce data pcked from database?
You can restrict the number of records fetched by sender JDBC by using the rownum fucntion in Select Query.
Regards,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh and Midhun,
The rownum is a bad idea, the UPDATE sentence has not the possibility of using the rownum function (at least in Oracle).
You would need the SELECT with the rownum and later a stored procedure with the same SELECT and ulterior UPDATE with the records picked up in the SELECT cursor and to have you DB table seriarizable.
Regards,
Message was edited by: Iñaki Vila
select EmpNum, EmpName, Date, PIN from Tablename where rownum <= 10
update is <test>
--------------------------------------------------------------------------------------------------------
initially I used these queries
select EmpNum, EmpName, Date, PIN from Tablename where Flag is null
update tablename set flag = 'x' where Flag is null
this was failing with the heavy load. I took part of payload, tested in Message Mapping and Operation Mapping, both are working so my mapping should be fine.
Hi Midhun,
Please check the below link :
http://scn.sap.com/thread/1040406
You have to use an update query when using rownum. otherwise if you just use <test> then the same set of records are fetched everytime from table using the select query.
I think you need to use sub query in the update statement. For which you have to identify Primary key and based on that you have to update. Check the above link.
Regards,
Ramesh.
Hi Midhun,
As said by Inaki Check that using stored procedure or else go to the point no 6 the link which given by Inaki.
I am pasting it here please look into it.
6.Specify additional Parameter Names and Parameter Values in the table.
Due to messages of large size, it is possible that there could be out of memory errors, which could lead to JEE server node failures.
Following are the parameters to be set in the table to limit the message size:
Regards,
Suhale Shaik.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
In addition, can you check the date field that is causing this error and try to convert it to required format at target side (using DateTrans Function) in your MM & check if it helps..
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
When i have that problem with huge payloads from sender jdbc i usually do a stored procedure in the database (you can ask for help to your DB team), in that stored procedure you can do the SELECT and the UPDATE and in the the UPDATE field you set the sentence TEST. Check the point 7 of Defining Processing Parameters in the documentation: http://help.sap.com/saphelp_nw73/helpdata/en/7E/5DF96381EC72468A00815DD80F8B63/frameset.htm
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.