Tibco call Stored Procedure (date parameter) memo

Source: Internet
Author: User

Tibco version is 5.5

1. tibco calls the stored procedure of the database. If the type of parameter A is date and the value passed to parameter A is a Null String, an error of input data invalid is reported.

This is because parameter A requires a date parameter, even if it is a null string or null!

To solve this problem, you can createOptional's date variable BYou do not need to assign any value to this variable. You need the B type of this variable.

Judge whether the value passed to parameter A in the stored procedure is null. If it is null, assign variable B to parameter A because variable B is of the date type, there will be no input data invalid problem.

PS: Pay attention to the statement settings of parameter A. Generally, the icon of parameter A is as follows (there is a red circle in the lower right corner). If not, edit the statement of parameter A and click, edit the statement of parameter,
For example:

Another processing method: If this field is not necessary, we can add a "If judgment" on it, as shown in

In "If judgment", the system checks whether the parameter is null, whether the value of Count (parameter) is greater than 0, or whether the value of string-length (parameter) is greater than 0.

Then you can directly enter parameters or convert parameters with no scrubs.

2. tibco calls the stored procedure of the database. There is a bug in the timeout setting. If the setting exceeds 6 seconds (this time is still to be verified), it is invalid.

    • If timeout is set to 4, the execution of the stored procedure is 5 seconds, and a timeout exception is thrown.
    • If timeout is set to 6, the execution of the stored procedure is 5 seconds,ProgramSmooth execution.
    • If timeout is set to 6 seconds and the stored procedure is executed for 7 seconds, the program gets stuck.
    • If timeout is set to 10 seconds and the stored procedure is executed for 7 seconds, the program runs smoothly.
    • If timeout is set to 10 seconds and the stored procedure is executed for 15 seconds, the program gets stuck.
    • If timeout is set to 20 seconds and the stored procedure is executed for 15 seconds, the program runs smoothly.

Let's not talk about anything else. In a word, the larger the value of timeout, the better. You don't have to count on timeout settings.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.