ID 350368 - Nodes that are defined as Macros cannot be created within Batch or Shell mode

Follow

Problem summary
Macros throw a '[ERROR python.NodegraphAPI]: Error creating node of type' exception when created in Batch or Shell mode.

For example, calling the following in the Python tab will usually create a PrmanHoldoutCreate within Interactive mode. but will error in Batch or Shell mode:

NodegraphAPI.CreateNode('PrmanHoldoutCreate', NodegraphAPI.GetRootNode())
Shell mode error:


Editing the call to create a CameraCreate node, works as expected.

Customer reported version
3.0__3.0v1_beta

Customer reported platform
centos7

Steps to reproduce

1) Open Cmd or Terminal and enter the following: ( replace %PathToKatanaDirectory% with your Katana directory path )
​" %PathToKatanaDirectory% \bin\katanaBin.exe" --shell

Katana should launch in Shell mode.


2)  Within Katana Shell mode, enter the following snippet: ( If you do not have Renderman installed, use or create another macro for the snippet )
NodegraphAPI.CreateNode('PrmanHoldoutCreate', NodegraphAPI.GetRootNode())​

Result: Nuke will throw the following exception and not create the Macro:
[ERROR python.NodegraphAPI]: Error creating node of type "PrmanHoldoutCreate"

Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Katana2.6v4 - Windows 7 - CentOS6.9
Katana2.6v1 - Windows 7 - CentOS6.9
Katana2.5v7 - Windows 7 - CentOS6.9
Katana2.5v1 - Windows 7 - CentOS6.9
Katana2.1v6 - CentOS6.9
Katana2.1v1 - CentOS6.9
Katana2.0v1 - CentOS6.9

Earliest version tested
- This issue appears to be in all versions of the product

Expected behaviour
Macro should be created in Shell or Batch mode, or display a warning that it cannot be done.

Actual behaviour
When creating a Macro, Katana will throw an exception saying that it could not create the node.

    We're sorry to hear that

    Please tell us why