Flow Desinger JDBC Step Output doesn't display correct rows

MisterSimon
Tera Expert

I've been trying to setup a Data Stream with a JDBC Step to get my data.
While testing my JDBC Step everything works out and i get my desired data.

BigBoy_1-1706087438919.png

I click "Use Result" to set the Output to these Values
but when i test the Datastream as a whole only 3 Fields of the data get displayed and the rest is missing

BigBoy_2-1706087881517.png

I've tried to set them in a Transform scirpt, or add a custom output but none of these every get displayed in the actual Output. Im not sure what todo here. 

Thank you in Advance

3 REPLIES 3

Ahana 01
Tera Expert

The issue you're facing could be due to several reasons. Here are some troubleshooting steps and solutions:

1. Check the JDBC Connection:
- Ensure that the JDBC connection is properly configured and is able to connect to the database.
- Test the connection to make sure it's working as expected.

2. Verify the Query:
- Make sure the SQL query you're using in the JDBC step is correct and returns the expected results when run directly on the database.
- Check for any syntax errors or incorrect table/column names.

3. Check the Data:
- The issue might be due to the data in the database. Make sure the data is as expected and there are no null or unexpected values.

4. Review the Flow:
- Check the flow logic and make sure the JDBC step is correctly placed and the flow is able to reach it.
- Make sure there are no errors in the flow that might be causing it to exit before reaching the JDBC step.

5. Debug the Flow:
- Use the debug feature in Flow Designer to step through the flow and see what's happening at each step.
- Check the logs for any errors or warnings related to the JDBC step.

6. Update the JDBC Step:
- If the JDBC step is not working as expected, you might need to update it or replace it with a different step that can achieve the desired result.

7. Contact ServiceNow Support:
- If you're still unable to resolve the issue, consider reaching out to ServiceNow support for further assistance. They might be able to identify the issue and provide a solution.

Remember, always test your changes in a non-production environment before applying them to production.


nowKB.com

For a good and optimistic result, and solving ServiceNow-related issues please visit this website.https://nowkb.com/home
Kindly mark correct and helpful if applicable

Henrique Costa
Tera Expert

Hi @MisterSimon,
did you find the solution?I'm running the same issue.

Henrique Costa
Tera Expert

Well, I'm runnig in the same issue.

Test JDBC step working fine. Calling the action throughout scripts background shows the sanitization error.
should be '123' but appears "'123'" (double quoted)

I tried:

  • sanitization identifier;
  • sanitization value;
  • importing just input value directly to JDBC step (to use in where clause) concatenating it in JDBC step
  • importing the whole sql statement from script step to JDBC step