Problems Publishing to a new site from webservice call through PowerShell


Badge +9

Most Workflows, List and Site, publish from the attached script.  I have found two that have been giving me problems.

I use this script to publish my workflows. The ones with no dependencies on other workflows are published first.

The PowerShell Line returns a True or False indicating whether it successfully published or not:

      $proxy.PublishFromNWFXml($NWFcontent, $null, $WorkflowName, $true)

The first problem workflow had to be published twice. Don't know why--worked the second time.

The second was more problematic and required a manual intervention. Two Items had exclamation points. All I had to do was to physically enter the configuration and exit it. I changed nothing. The workflow compiled.

I'm thinking that Nintex may have a problem with fieldname beginning with underscores.

186927_pastedImage_2.png

Just looking for a way to automate this.

thanks,

Stephan


3 replies

Badge +8

Hey Stephan,

Could you also add your nwf file, the zip only contains powershell file and there doesn't seem to be anything wrong in the PS file.

Regards,

Shrini

Badge +9

We figured out the problem. One workflow was dependent on another--First Case.

Second Case a column we were monitoring was dependent on a workflow being run.

Thanks,

Stephan

Badge +8

Hey Stephan,

Good to know your problem got resolved.

Regards,

Shrini

Reply