Workflow Soluiton

 View Only
  • 1.  Zero Patch Day Error "The request failed with an empty response."

    Posted May 18, 2017 10:23 AM

    Hi @ all,

    i have a problem with Custom 0 Patch Day Workflow.
    I will update a existing patch policy with an additional target GUID.

    Error Message: The request failed with an empty response.
    Stack Trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at PatchWorkflowSvcDynamicService.PatchWorkflowSvc.SetSoftwareUpdatePolicyTargets(String policyGuids, String targetGuids) at PatchWorkflowSvcDynamicService.SetSoftwareUpdatePolicyTargets.Run(IData data) at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp)
    Report Process ID: Patch-0Day-000362
    Model ID: 4336c255-0f43-11e2-85c7-005056a27acc
    Last Component: Set Software Update Policy Targets
    

    Unbenannt_2.JPG

    in CurrentPolicy.GUID is exact 1 GUID from an existing Patchpolicy

    in TestResourceTargetString is exact 1 GUID from an Target wich was not already added to the Policy

     

    What i make wrong?



  • 2.  RE: Zero Patch Day Error "The request failed with an empty response."

    Posted May 18, 2017 12:12 PM

    How are you getting CurrentPolicy, what component gets this value?

     

    ---

    That is just a Web Service call to SetSoftwareUpdatePolicyTargets

    https://localhost/altiris/patchmanagementcore/patchworkflowsvc.asmx

     



  • 3.  RE: Zero Patch Day Error "The request failed with an empty response."

    Posted May 19, 2017 03:46 AM

    Hi Alex,

    thank you for the response.

    1. Array of all bulletins that have existing policy
      1. prepair policy name
      2. get policy GUID by Name
      3. For each Policy do
        1. export xml config to string
        2. get existing targets by pattern
        3. check if my target is already added
        4. if yes -> next Policy / if no -> move to point 5
        5. Set Software Update Policy Target
        6. Policy Update
        7. Policy Collection
      4. Finish
    2. finish

    Unbenannt_3.JPG

     

    The second problem is that the auto start not work.
    How i can debug that?

     

    Thank you very much and best reguards,

    Stephan



  • 4.  RE: Zero Patch Day Error "The request failed with an empty response."
    Best Answer

    Posted May 19, 2017 06:26 AM

    I've just tested this with a hardcoded Policy and Target Guid and works for me.

    Try unticking "Can Return Null" - Did you tick this?

     

    I'd add a "Create SMP Credentials" to the start of the workflow and use that in the Security Token input too - "[[Global].NSAuthenticationToken]"



  • 5.  RE: Zero Patch Day Error "The request failed with an empty response."

    Posted May 19, 2017 09:02 AM

    I tick the "Can Return Null". It doesn't change anything.

    If i use the webcall i get a true
    <?xml version="1.0" encoding="UTF-8"?>
    <boolean xmlns="http://symantec.com/ns7/patch">true</boolean>

    I use the "Create SMP Credentials" but i did not use the secure token in component settings!
    Thank you that was the solution!

     

    Have a nice weekend.



  • 6.  RE: Zero Patch Day Error "The request failed with an empty response."

    Posted May 19, 2017 09:06 AM

    Happy to help, glad you got it working.

    You too!