locked
Initialize Data Issue RRS feed

  • Question

  • Hi,
    I have a simple run book Initialize Data --> .net script.

    Below is the first line in my script

    $ServerFQDN = "{Server Name from "Initialize Data"}"

    gives this error Unexpected token 'Initialize' in expression or statement.  

    Now I take the space out from Initialize Data control icon, and update the line in the power shell script this

    $ServerFQDN = "{Server Name from InitializeData}"

    gives this error

    One or more computer names is not valid. If you are trying to pass a Uri, use the -ConnectionUri parameter or pass Uri objects instead of strings.

    what's going on?


    • Edited by h5tech Wednesday, June 4, 2014 6:20 PM
    Wednesday, June 4, 2014 6:17 PM

Answers

  • Hi,

    you must not type the Published Data, you must Subscribe the Publish Data !

    http://technet.microsoft.com/en-us/library/hh403821.aspx

    To subscribe to Published Data of an earlier activity in the workflow

    1. Right-click an activity from your runbook to select Properties, and then click the Details tab to open the activity’s properties dialog box.

    2. To open a menu, in the text box, right-click to select Subscribe, and then click Published Data to open the Published Data dialog box.

    3. In the Activity list, select the activity that returns the data that you want to subscribe to. By default, the dialog box only displays Published Data that is specific to that activity. To include Published Data that is common to all activities, click Show common Published Data.

    4. Select the Published Data item that you want to use, and then click OK.

    Regards,

    Stefan


    www.sc-orchestrator.eu , Blog sc-orchestrator.eu

    Wednesday, June 4, 2014 7:40 PM
    Answerer

All replies

  • Hi,

    you must not type the Published Data, you must Subscribe the Publish Data !

    http://technet.microsoft.com/en-us/library/hh403821.aspx

    To subscribe to Published Data of an earlier activity in the workflow

    1. Right-click an activity from your runbook to select Properties, and then click the Details tab to open the activity’s properties dialog box.

    2. To open a menu, in the text box, right-click to select Subscribe, and then click Published Data to open the Published Data dialog box.

    3. In the Activity list, select the activity that returns the data that you want to subscribe to. By default, the dialog box only displays Published Data that is specific to that activity. To include Published Data that is common to all activities, click Show common Published Data.

    4. Select the Published Data item that you want to use, and then click OK.

    Regards,

    Stefan


    www.sc-orchestrator.eu , Blog sc-orchestrator.eu

    Wednesday, June 4, 2014 7:40 PM
    Answerer
  • Thank you Stefan for your help on this.
    It was so obvious and we couldn't find the solution to this.

    Best regards!
    Thursday, June 5, 2014 11:22 PM