on 06-22-2015 12:20 PM
Hi,
I am getting the following error in receiver jdbc communication channel:-
Unable to execute statement for table or stored procedure. 'SCMSalesGRFromSAP' (Structure 'Details') due to com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ZEILE', table 'SAPMASTERDB.dbo.SCMSalesGRFromSAP'; column does not allow nulls. INSERT fails.
JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'SCMSalesGRFromSAP' (structure 'Details'): com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ZEILE', table 'SAPMASTERDB.dbo.SCMSalesGRFromSAP'; column does not allow nulls. INSERT fails.
MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SCMSalesGRFromSAP' (structure 'Details'): com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ZEILE', table 'SAPMASTERDB.dbo.SCMSalesGRFromSAP'; column does not allow nulls. INSERT fails
As ZEILE is a primary key value in db. We need to add this field in access and map. Once, done check whether any restriction are there or not for the particular field in Database Table.
access
...........ZEILE
Key
............ZEILE
Finally, resolved. Thanks for supporting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
Can you check what is the value that is getting populated in target field ZEILE for the failed message instance.
Since this field is a primary key, the database server might not allow empty or null values.
Please check with the database team whether is it fine with them if ZEILE field contains Empty value or not.
Regards
Vishnu.
Hi Ram,
Seems you are trying to insert Null value in the DB. Please check your output XML Payload & confirm if the values are correct in the structure.
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 Ram,
I assume you did like this and activated the channel. Also, please check the cache status to avoid any cache issues.
In you receiver channel configuration, please maintain the Interpretation of Empty string as EMPTY instead of NULL.
Can you please let us know what is the actual value present in the target field ZEILE?
Regards
Vishnu
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.