The first app is running correctly and the 2nd app displays the questions correctly. The 2nd app when running throws the following error: 500 Server Error ServiceData stream ended without being properly closed. I also do not get an entry in the job results in Gallery so even though it does do a portion of the workflow (since it does successfully create an output halfway through the workflow), this error prevents me from seeing what's happening. The 1st app does modify the XML of the 2nd workflow before running it as the chained app.
Solved! Go to Solution.
It sounds like you're encountering a 500 Server Error with your second app, which is preventing the workflow from completing and showing results in the Gallery. This error often indicates a server-side issue, which could be due to various reasons such as misconfigurations, resource limitations, or issues with the server itself.
Here are a few steps you can take to troubleshoot this issue: Official Site
Check Server Logs: Review the server logs for any detailed error messages or stack traces that might give more insight into what's causing the error.
Verify Configuration: Ensure that all configurations for the second app and the workflow are correct and consistent with the first app.
Resource Allocation: Make sure that the server has sufficient resources (CPU, memory, etc.) to handle the workflow.
Dependencies: Check if there are any dependencies or external services that the second app relies on and ensure they are functioning correctly.
Re-run with Debugging: Try running the workflow with debugging enabled to capture more detailed information about where the error might be occurring.
So after a lot of trial and error, the issue was to do with the chained app having a batch script in the workflow with no records in the batch file. Fixed this by putting in an echo line.