How can I create a directory on a network shared drive from a business operation

5 views
Skip to first unread message

mullaghmeen

unread,
Apr 10, 2018, 4:40:27 PM4/10/18
to InterSystems: Ensemble in Healthcare
Hi All,

I have a line of mumps code that creates a folder on a network shared drive.

Example:

d ##class($Library.File).CreateDirectory("\\share\folder\newfolder")

If I run this line of code from terminal it works fine and creates the folder without problems.

However If I create a very simple business operation in a production in the same namespace that simply runs this one line of code then the code fails.

Anybody encountered this issue in the past and If so how did you overcome the problem.


Thanks in advance,

Kenneth Poindexter

unread,
Apr 10, 2018, 4:44:24 PM4/10/18
to Ensemble-in...@googlegroups.com
I believe the user that Ensembke/HealthShare runs under must have permissions.

When running from Terminal it is using your identity.

Ken



Sent from my Verizon, Samsung Galaxy smartphone
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Branagan

unread,
Apr 10, 2018, 5:02:47 PM4/10/18
to Ensemble-in...@googlegroups.com
Thanks for the response Kenneth.
At the moment i log on to my Ensemble Server with my windows username and I log on to terminal with Ensemble "admin"
I can create the folder on the network drive from terminal. When I run from my production is it using a different credential?

I've given the folder that I'm trying to create the sub-directory on full permissions to everyone.

Thanks,

On 10 April 2018 at 21:44, Kenneth Poindexter <Kenneth.P...@intersystems.com> wrote:
I believe the user that Ensembke/HealthShare runs under must have permissions.

When running from Terminal it is using your identity.

Ken



Sent from my Verizon, Samsung Galaxy smartphone


-------- Original message --------
From: mullaghmeen <it.m...@gmail.com>
Date: 4/10/18 16:40 (GMT-05:00)
To: "InterSystems: Ensemble in Healthcare" <Ensemble-in-Healthcare@googlegroups.com>
Subject: [InterSystems-EnsHlth] How can I create a directory on a network shared drive from a business operation

Hi All,

I have a line of mumps code that creates a folder on a network shared drive.

Example:

d ##class($Library.File).CreateDirectory("\\share\folder\newfolder")

If I run this line of code from terminal it works fine and creates the folder without problems.

However If I create a very simple business operation in a production in the same namespace that simply runs this one line of code then the code fails.

Anybody encountered this issue in the past and If so how did you overcome the problem.


Thanks in advance,

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in-Healthcare@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in-Healthcare@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/Ensemble-in-Healthcare/yK68HMNGojM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.

Kenneth Poindexter

unread,
Apr 10, 2018, 5:36:59 PM4/10/18
to Ensemble-in...@googlegroups.com
Yes

I believe that it is using the identity specified in the Windows Service Manager.   It is that user that must have windows level  permissions to create the directory on the share.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages