System.Management.Automation.RemoteException when calling powershell via C# to Run Interworks plan
up vote
0
down vote
favorite
I am having an issue when calling powershell via C# to run an Interworks plan. The powershell script runs perfectly when I run it directly but gives an error when running from C#. I noticed this error happens when I try to run the Interworks plan that transfers many tableau workbooks but when I try to just transfer 1 workbook it works perfectly also from C#.
The Interworks install is in a remote computer which is why I first connect to a remote computer and then run the Interworks plan.
The Exact error I get is the following
Could not execute plan planName.edt Error: System.Management.Automation.RemoteException
But when I look at the error interworks throws it can be anything from error publishing workbook to nullReferenceException to OutOfMemoryException.
Note: I though this might be because of MaxMemoryPerShellMB being to small when connecting to a remote computer but adding this line "Set-Content .MaxMemoryPerShellMB 2048" doesn't seem to solve the problem.
Any help with this will be very helpful.
c# powershell tableau
add a comment |
up vote
0
down vote
favorite
I am having an issue when calling powershell via C# to run an Interworks plan. The powershell script runs perfectly when I run it directly but gives an error when running from C#. I noticed this error happens when I try to run the Interworks plan that transfers many tableau workbooks but when I try to just transfer 1 workbook it works perfectly also from C#.
The Interworks install is in a remote computer which is why I first connect to a remote computer and then run the Interworks plan.
The Exact error I get is the following
Could not execute plan planName.edt Error: System.Management.Automation.RemoteException
But when I look at the error interworks throws it can be anything from error publishing workbook to nullReferenceException to OutOfMemoryException.
Note: I though this might be because of MaxMemoryPerShellMB being to small when connecting to a remote computer but adding this line "Set-Content .MaxMemoryPerShellMB 2048" doesn't seem to solve the problem.
Any help with this will be very helpful.
c# powershell tableau
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am having an issue when calling powershell via C# to run an Interworks plan. The powershell script runs perfectly when I run it directly but gives an error when running from C#. I noticed this error happens when I try to run the Interworks plan that transfers many tableau workbooks but when I try to just transfer 1 workbook it works perfectly also from C#.
The Interworks install is in a remote computer which is why I first connect to a remote computer and then run the Interworks plan.
The Exact error I get is the following
Could not execute plan planName.edt Error: System.Management.Automation.RemoteException
But when I look at the error interworks throws it can be anything from error publishing workbook to nullReferenceException to OutOfMemoryException.
Note: I though this might be because of MaxMemoryPerShellMB being to small when connecting to a remote computer but adding this line "Set-Content .MaxMemoryPerShellMB 2048" doesn't seem to solve the problem.
Any help with this will be very helpful.
c# powershell tableau
I am having an issue when calling powershell via C# to run an Interworks plan. The powershell script runs perfectly when I run it directly but gives an error when running from C#. I noticed this error happens when I try to run the Interworks plan that transfers many tableau workbooks but when I try to just transfer 1 workbook it works perfectly also from C#.
The Interworks install is in a remote computer which is why I first connect to a remote computer and then run the Interworks plan.
The Exact error I get is the following
Could not execute plan planName.edt Error: System.Management.Automation.RemoteException
But when I look at the error interworks throws it can be anything from error publishing workbook to nullReferenceException to OutOfMemoryException.
Note: I though this might be because of MaxMemoryPerShellMB being to small when connecting to a remote computer but adding this line "Set-Content .MaxMemoryPerShellMB 2048" doesn't seem to solve the problem.
Any help with this will be very helpful.
c# powershell tableau
c# powershell tableau
asked Nov 7 at 18:20
Eliav Y
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53195491%2fsystem-management-automation-remoteexception-when-calling-powershell-via-c-sharp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown