cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating package having environment variable

MohanlalArakkal
Level 3
Hi All,

We are using version 6.4.1 while creating the package we are getting below error and we have provided basic permission to extract and release package . Some of the packages published successfully , please advise which permission is missing .


Error details
Exception Details:
An error occurred while attempting to create the release: Failed writing XML for type: releaseout; ID: ; Name: Test Release; Error message: Failed writing XML for type: environment-variable; ID: xxxx - xxxxxxx URL; Name: xxxxxxxxxxxxx Error message: Unauthorized - user does not have permission.
BluePrism.BPCoreLib.BluePrismException: Failed writing XML for type: releaseout; ID: ; Name: Test Release; Error message: Failed writing XML for type: environment-variable; ID: xxxxxxxx Prep URL; Name: xxxxxxxxxx; Error message: Unauthorized - user does not have permission. ---> BluePrism.BPCoreLib.BluePrismException: Failed writing XML for type: environment-variable; ID: xxxxxxxxxURL; Name: xxxxxxxxxxxx; Error message: Unauthorized - user does not have permission. ---> BluePrism.BPCoreLib.PermissionException: Unauthorized - user does not have permission.
Server stack trace:
   at BluePrism.AutomateAppCore.PermissionValidator.EnsurePermissions(ServerPermissionsContext context)
   at BluePrism.AutomateAppCore.clsServer.GetEnvironmentVariable(String name)
   at SyncInvokeGetEnvironmentVariable(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
  at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at BluePrism.BPCoreLib.Extensions.RethrowWithStackTrace(Exception this)
   at BluePrism.AutomateAppCore.MyExceptionHandlingMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
   at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at BluePrism.AutomateAppCore.IServer.GetEnvironmentVariable(String name)
   at BluePrism.AutomateAppCore.EnvironmentVariableComponent.LoadData()
   at BluePrism.AutomateAppCore.PackageComponent.get_AssociatedData()
   at BluePrism.AutomateAppCore.EnvironmentVariableComponent.WriteXmlBody(XmlWriter writer)
   at BluePrism.AutomateAppCore.PackageComponent.ToXml(XmlWriter writer)
   --- End of inner exception stack trace ---
   at BluePrism.AutomateAppCore.PackageComponent.ToXml(XmlWriter writer)
   at BluePrism.AutomateAppCore.clsRelease.WriteXmlBody(XmlWriter writer)
   at BluePrism.AutomateAppCore.PackageComponent.ToXml(XmlWriter writer)
   --- End of inner exception stack trace ---
   at BluePrism.AutomateAppCore.PackageComponent.ToXml(XmlWriter writer)
   at BluePrism.AutomateAppCore.clsRelease.Export(Stream stream, clsProgressMonitor mon)
   at BluePrism.AutomateAppCore.clsRelease.Export(FileInfo file, Boolean compress, clsProgressMonitor mon)
   at BluePrism.AutomateAppCore.clsRelease.Export(FileInfo file, clsProgressMonitor mon)
   at AutomateUI.frmCreateRelease.HandleDoWork(Object sender, DoWorkEventArgs e)
   at AutomateUI.BackgroundWorkerStage.HandleWorkerDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


------------------------------
Mohanlal Arakkal
Specialist Operations delivery lead
commonwealth bank of australia
Australia/Sydney
------------------------------
3 REPLIES 3

GopalBhaire
Level 10
Try giving access to BO and Process - Configure Environment Variables under System Manager access (for the user role)

------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

Thanks Gopal , It worked .

------------------------------
Mohanlal Arakkal
Specialist Operations delivery lead
commonwealth bank of australia
Australia/Sydney
------------------------------

Well said, Sir!!

------------------------------
Steve Waters
Platform Consultant
Blue Prism Professional Services
America/Chicago
------------------------------