Works within Automator, fails as service

I'm still struggling to get Automator variables working correctly. Below actions work perfectly within Automator but fail when run as Service ("The action “Run AppleScript” encountered an error."). Myvar is a Storage Variable. I looked at dozens of posts on forum but unable to find a resolution.
Run AppleScript 1:
tell application "Automator"
set value of variable "myvar" in front workflow to "woooha"
end tell
Run AppleScript 2:
tell application "Automator"
set msg to get value of variable "myvar" of front workflow
end tell
tell application "System Events"
activate
display dialog msg
end tell

Apple has a AppleScript Studio Terminology Reference (Legacy) document (pdf) available. You can look up terminology from Automator and *Automator Runner* - the usage should be similar to the reference.
Following is a user defaults example - note that this should be saved as an application, otherwise the defaults will get saved to Automator's com.apple.Automator.plist instead of your application's plist. One test you can make is to get the *path to me*, and if it is the Automator application (e.g. Automator.app is in the path) then you are running from a workflow.
Example workflow (save as application):
1) *Get Specified Text* -- enter a few words separated by returns, for example:
          this
          is
          some
          testing
          text
2) *FIlter Paragraphs* { Return paragraphs that are not empty }
3) *Choose from List* -- when run, choose a few words to pass on to the script
4) *Run AppleScript*
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #DAFFB6;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">-- the defaults are saved in the com.apple.Automator.plist for a workflow (try not to do this)
-- the defaults are saved in com.apple.automator.YourApplicationNameHere.plist for an application
on run {input, parameters} -- user defaults example
-- format the input list (should be a few text items)
set tempTID to text item delimiters
set text item delimiters to space
set theInput to (input as text)
set text item delimiters to tempTID
-- some initial values
set someText to "some testing text this is" -- this will be the input text
set someNumber to 0 -- this number doesn't change
set anotherNumber to 0 -- 5 digits with leading zeros that increments each run
set theTime to time string of (current date) -- this will be the time the app was run last
tell user defaults
tell default entries
-- set up initial defaults entries
make new default entry at end with properties {name:"someText", contents:someText}
make new default entry at end with properties {name:"someNumber", contents:someNumber}
make new default entry at end with properties {name:"anotherNumber", contents:anotherNumber}
make new default entry at end with properties {name:"theTime", contents:theTime}
end tell
-- read current values
set someText to contents of default entry "someText"
set anotherNumber to contents of default entry "anotherNumber"
set theTime to contents of default entry "theTime"
end tell
display alert "default values read" message "someText:   " & someText & return & "someNumber:   " & someNumber & return & "prefix & time:   " & anotherNumber & tab & theTime
-- do something  (for this example, just change some values)
set someText to theInput
set anotherNumber to text -5 thru -1 of ((100000 + anotherNumber + 1) as text) -- leading zeros
set theTime to time string of (current date)
tell user defaults
-- save new values
set contents of default entry "someText" to someText
set contents of default entry "anotherNumber" to anotherNumber
set contents of default entry "theTime" to time string of (current date)
end tell
call method "synchronize" of object user defaults -- make sure everything updates
display alert "default values written" message "someText:   " & someText & return & "someNumber:   " & someNumber & return & "prefix & time:   " & anotherNumber & tab & theTime
return input
end run
</pre>
The above workflow will let you select a few words to input to the action, which will save them to the user defaults. Also saved is a number that gets incremented each run and the current time. To reset the defaults after experimenting, just delete the plist for your application - the plist will be recreated with default values as needed.

Similar Messages

  • ReportViewer & IReportServerCredentials WORKS within Domain; FAILS with Cross-Domain request:HTTP status 401: Unauthorized

    The IReportServerCredentials approach with the ReportViewer control is working fine within a domain, but I get a 401 not authorized error for a Web IIS server trying to call a SSRS server in another domain. I've see plenty of helpful postings on the use
    of IReportServerCredentials but nothing that provides suggestions for this cross domain issue. Hope someone has some ideas on this one. Thanking you in advance for your response.
    Using VS 2008 VB.NET web app with ReportViewer control Version=8.0.0.0.
    Outside domainA Web Server IIS 8. OS = Windows NT 6.2;
    Inside domainA Windows 7 desktop; Inside domainA Windows Server 2003
    SSRS using windows authentication and on SQL Server 2012. OS = Windows NT 6.2
    The processing described below successfully produces a report when the web server app runs on a machine in the same domain as the SSRS server. For the "same domain" web app, both Win 7 desktop VS 2008 development server and Windows 2003 IIS 6 have
    been tested successfully.
    The report fails with error "The request failed with HTTP status 401: not authorized " when the web app is run from a windows IIS 8 machine (outward or Internet facing web server) that is not in the domain of the SSRS server. The ReportViewer control
    credentials (provided by IReportServerCredentials and taken from the web.config file) match a domain account in the same domain as the SSRS
    server and one that has browser permission on the report folder. The same credentials are used successfully for reports requested from within the SSRS domain.
    One interesting thing is that on the Internet facing web server, I can access the report via a browser request. So it is possible to have a user request coming from the Internet facing machine get through the SSRS windows authentication. Just does not
    work for the ReportViewer.
    Using IReportServerCredentials interface per example provided by Microsoft msdn site. Code listed below.
    IReportServerCredentials would appear to be a viable approach because it can pass credentials of a windows account known to the SSRS server, but not known to the client machine. By the way, database calls to SQL Server in domainA using a SQL Server
    native login account work fine. So the network support communication to a domain that the web server does not belong to.
    <Serializable()> _
    Public NotInheritable Class MyReportServerCredentials
        Implements IReportServerCredentials
        Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity _
            Implements IReportServerCredentials.ImpersonationUser
            Get
                'Use the default windows user.  Credentials will be
                'provided by the NetworkCredentials property.
                Return Nothing
            End Get
        End Property
        Public ReadOnly Property NetworkCredentials() As ICredentials _
                Implements IReportServerCredentials.NetworkCredentials
            Get
                'Read the user information from the web.config file. 
                'By reading the information on demand instead of storing
                'it, the credentials will not be stored in session,
                'reducing the vulnerable surface area to the web.config
                'file, which can be secured with an ACL.
                'User name
                Dim userName As String = _
                    ConfigurationManager.AppSettings("MyReportViewerUser")
                If (String.IsNullOrEmpty(userName)) Then
                    Throw New Exception("Missing user name from web.config file")
                End If
                'Password
                Dim password As String = _
                    ConfigurationManager.AppSettings("MyReportViewerPassword")
                If (String.IsNullOrEmpty(password)) Then
                    Throw New Exception("Missing password from web.config file")
                End If
                'Domain
                Dim domain As String = _
                    ConfigurationManager.AppSettings("MyReportViewerDomain")
                If (String.IsNullOrEmpty(domain)) Then
                    Throw New Exception("Missing domain from web.config file")
                End If
                Return New NetworkCredential(userName, password, domain)
            End Get
        End Property
        Public Function GetFormsCredentials(ByRef authCookie As Cookie, _
                       ByRef userName As String, _
                       ByRef password As String, _
                       ByRef authority As String) As Boolean _
            Implements IReportServerCredentials.GetFormsCredentials
            authCookie = Nothing
            userName = Nothing
            password = Nothing
            authority = Nothing
            'Not using form credentials
            Return False
        End Function
    End Class
    'Set the ReportViewer values and retrieve the report from the SSRS server into a pdf file on the client machine.
    ProposalRptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
    ' Set the ReportViewer ReportServerCredentials from the MyReportServerCredentials Class.
    ' Note the credentials are for a domain account defined in the same domain that the SSRS server belongs to and one that has browser permission on the report folder.
    ProposalRptViewer.ServerReport.ReportServerCredentials = _
         New MyReportServerCredentials()
    ProposalRptViewer.ServerReport.ReportServerUrl = New Uri(System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportServerURL))
    ProposalRptViewer.ServerReport.ReportPath = System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportPathProposal)
    ProposalRptViewer.ShowCredentialPrompts = False     ' disable prompting for data source credentials
    Dim paramList As New Generic.List(Of ReportParameter)
    Dim pInfo As ReportParameterInfoCollection
    pInfo = ProposalRptViewer.ServerReport.GetParameters()
    paramList.Add(New ReportParameter("ProposalID", ProposalID, True))paramList.Add(New ReportParameter("Entity", Entity, True))
    paramList.Add(New ReportParameter("intRatesPage", intRatesPage1, True))
    ProposalRptViewer.ServerReport.SetParameters(paramList)
    ' Process and render the report
    ProposalRptViewer.ServerReport.Refresh()
    Dim mimeType As String = Nothing
    Dim encoding As String = Nothing
    Dim streams As String() = Nothing
    Dim extension As String = Nothing
    Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
    Dim returnValue As Byte()
    ' Render the proposal Rate Page 1 report to a Byte Array output in pdf file format.
    returnValue = ProposalRptViewer.ServerReport.Render("PDF", Nothing, mimeType, encoding, extension, streams, warnings)
    An error only occurs for web server not in the domain of SSRS Server:
    The request failed with HTTP status 401: Unauthorized.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack
    trace below.
    Stack Trace:
    [WebException: The request failed with HTTP status 401: Unauthorized.]
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +236
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +58
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +16
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +226
       Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +192
       Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +136
       DeltaRater.Web.ViewRates.btnCreateProposal_Click(Object sender, EventArgs e) in C:\alex\~~_____Rapid_Rater\SourceDir_VS2008_Jan17_2014\DRR\ViewRates.aspx.vb:911
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010

    I got the answer to my question by following suggestions by Irb on another technical forum.
    From web server (not on same domain), I was passing credentials of a domain account on the SSRS server. Irb suggested I create a local account on the SSRS server and pass those credentials. I tried this but got the same results.
    This approach worked for web server in SSRS domain, but failed with 401 Unauthorized for web server outside the SSRS domain. Per suggestion for local account on SSRS server, I tried passing empty string "" as the domain via IReportServerCredentials.
    Again this works for web server in the same domain as SSRS. But I get the 401 Unauthorized error when the web server is outside the domain. In testing and checking similar posts, I discovered an additional piece was required for the report request to work
    across domains. The default user did not have authority to send the request and/or receive the report. Adding the following in <system.web> section of web.config file was needed.
    <identity impersonate="true" userName="localwindowsuser" password="#########"/>          where "localwindowsuser" is a windows user defined on the web server.
    I never needed this extra piece when the web server ran in the same domain as the SSRS server. I thank Irb for making me go through the details of additional tests because that is how I stumbled across an identity comment and ultimately got things working.

  • Applescript works in Automator but not as Application workflow

    I have a pretty simple Application workflow in automator that runs this applescript:
    set front_app to (path to frontmost application as Unicode text)
    tell application front_app
    activate
    set bounds of window 1 to {0, 0, 1280, 800}
    end tell
    as you can see all it does is it maximizes the current window. it works when I run the script from within automator, but when i save it as an application and run that it says the applescript errored.
    Why is my simple automator not working as an application?
    Message was edited by: Pyrolistical

    When you run that script as an application it comes to the front and is therefore the frontmost application: it doesn't have a window to be maximised.
    You would need to specify the actual application to have its window maximised:
    tell application "Safari"
    activate
    set bounds of window 1 to {0, 0, 1280, 800}
    end tell
    Trying to find out which was the frontmost application before you launched the AppleScript application is going to to be difficult.

  • Function module to release a work permit attached to a service order.

    Hi,
    We have a requirement of automating the process of work permit release attached to service order.
    I am looking for a function module / BAPI for releasing the work permit attached to a service order by passing service order number and permit ID/Name.
    If any of you have come accrose such one please share.
    Thanks
    Achuthanandan

    Hello Philip
    The following function modules should be useful:
       - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
       - CY_SECONDARY_SELECTION          - Check for additional criteria
       - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
       - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
       - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
       - CY_LOAD_DISTRIBUTION            - Distribution key
    Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
    BR
    Caetano

  • Anyone been able to get the sap.ca.ui.FileUpload control working with a Gateway OData service?

    Hi,
    I have been trying to get the sap.ca.ui.FileUpload control working with an OData Gateway service, specifically /IWPGW/TASKPROCESSING which is the service used by both Fiori Approve Requests and the Unified Inbox.
    I have looked at the sample application in the Explored at SAPUI5 Explored
    I have managed to replicate that and get it to work, but as soon as I switch it from a JSONModel to an ODataModel I get javascript errors from within the setModel method of the control. I have redefined that method and corrected the errors, which enables me to get a bit further, but then I hit more errors, and other strange behaviour.
    Either I am doing something completely wrong, or to me it appears as if this control is still extremely buggy and maybe either not designed to work with an ODataModel, or just hasn't been tested using an ODataModel. I'm hoping it is my mistake.
    So has anybody out there successfully managed to use this control connecting it to a Gateway OData service? If so please share your experience.
    Thanks,
    Brad

    Hi Pauline,
    Same issue I had, I switched to using a sap.m.list and handling the press as follows:
    attachmentsList.bindItems(workItemPath + "/Attachments", new sap.m.StandardListItem({
                               type: sap.m.ListType.Active,
                               title: "{FileName}",
                               description: "{CreatedByName}",
                               icon: "sap-icon://doc-attachment",
    //                         counter: "{FileSize}",
                          info: {path : "CreatedAt", formatter: dateTimeFormatter},
                          tap: function(oEvent){
                                var oContext = oEvent.getSource().getBindingContext();
                                var media_src = oContext.getProperty().__metadata.media_src;
                                sap.m.URLHelper.redirect(media_src, true);
                        }), new sap.ui.model.Sorter("CreatedAt", true));
    So sap.m.URLHelper.redirect(media_src, true); is what loads the attachment.
    See the full function handler:
    function(oEvent){
    function(oEvent){
                  var oContext = oEvent.getSource().getBindingContext();
                  var media_src = oContext.getProperty().__metadata.media_src;
            sap.m.URLHelper.redirect(media_src, true);
    This should be enough if you only want to list and display the attachments, then you don't really need the FileUploader control as that is more advanced and handles upload, display, change and deletion of files.
    I only needed to upload and display files, so I used a list to display it and created a separate upload button using the sap.ui.unified.FileUploader control.
    Hope that helps.
    Cheers,
    Brad

  • Spotlight not working within program. Please HELP!

    Spotlight not working within programs. Cannot not locate files on network volumes.
    For example: if I am using Photoshop or MultiAd Creator Pro, and want to open a file, I will do File>Open and  use spotlight in the "Open" dialog, and it doesn't ever find anything? I can see the files but if I search it fails to locate. Same thing happens if I try to "Place Graphic" In MultiAd and other programs. It appears to be a universal issue regardless of program.
    I tried re-indexing spot light via the system preferences (privacy, drag in volume, remove volume). I also tried re-indexing via terminal.
    I tried mounting the volumes via afp, smb, cifs and nothing works!!
    This issue is handicapping production.
    Anyone??
    Thank you in advance RR

    Spotlight alternatives.
    EasyFind – Spotlight Replacement
    Find Any File

  • Automation failing in OSM clustered env and getting -unread block data

    One of the customer is getting following exceptions while trying to place orders on the clustered environment. The same issue is also reported by other two and is discussed in communities (https://communities.oracle.com/portal/server.pt?open=514&objID=187443&mode=2&threadid=367195)
    <04-Jun-2012 11:20:11,369 ICT AM> <ERROR> <message.ClusterMessageHandlerBean> <ExecuteThread: '37' for queue: 'oms.automation'> <Failed to process cluster request for order ID [100739]>
    java.lang.IllegalStateException: unread block data
         at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
         at weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:261)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:166)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
         at com.mslv.oms.security.base.OMSRequestBalancer_y7pdy3_EOImpl_1033_WLStub.routeRequestToRemoteJMSDestination(Unknown Source)
         at com.mslv.oms.automation.plugin.l.a(Unknown Source)
         at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
         at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    <Jun 4, 2012 11:20:11 AM ICT> <Error> <oms> <BEA-000000> <message.ClusterMessageHandlerBean: Failed to process cluster request for order ID [100739]
    java.lang.IllegalStateException: unread block data
         at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         Truncated. see log file for complete stacktrace
    >

    Logs clearly indicates that OSM is running in legacy mode. “OMSRequestBalancer_y7pdy3_EOImpl_1033_WLStub.routeRequestToRemoteJMSDestination” will not come in picture in case of optimized mode.
    Please make sure below settings:
    1)     Studio – optimized mode.
    2)     Cartridge target version 7.0.3

  • How to retrieve error message(s) after failed web service call

    Hi!
    I tried to create an item using the web service ego_item_pub.process_item and it worked ok (version 12.1.1). Sending the same request again, I got an error which should be ok since the item id already exists. The thing is, that I only get an "E" as return status:
    <X_RETURN_STATUS>E</X_RETURN_STATUS>
    <X_MSG_COUNT>1</X_MSG_COUNT>
    As described in the integration repository, there should be a parameter called msg_data which should contain the message if there is exactly 1 message, but I cannot find it.
    So, I tried to get the message using fnd_message.get, but the response of my web service call is:
    AuthorizationFailure : User not authorized to execute service. (I use sysadmin/sysadmin as ws security user).
    I use the following grant details:
    All Users     Direct     GLOBAL     Revoke Action Enabled
    SYSADMIN SYSADMIN     Direct     USER
    What else can I do or how can I retrieve error messages for a failed web service call?
    Thanks a lot,
    Konrad

    Hi Konrad,
    As we've found out, search the Integration Repository for internal name ERROR_HANDLER and use that. Letting the general public know the answer for this one!
    Regards,
    Gareth
    http://garethroberts.blogspot.com

  • Application Server job failed for service instance Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance

    Hi 
    in our shaepoint farm we have a application server,one wfe server and one reporting server
    and we are using BI solutions and running performance point service 
    i keep getting below error in wfe server and reporting server as well also.
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Server
    Date:          01/09/35 02:23:34 م
    Event ID:      6481
    Task Category: Shared Services
    Level:         Error
    Keywords:     
    User:          XYZPORTAL\spfarm
    Computer:      XYZWFE02.XYZportal.com
    Description:
    Application Server job failed for service instance Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance (b340454e-ab06-4981-80f7-81d2326a1b32).
    Reason: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by XYZPORTAL\spfarm, in the OWSTIMER (7296)
    process, on machine XYZWFE02.  View the tracing log for more information about the conflict.
    Technical Support Details:
    Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance
    was updated by XYZPORTAL\spfarm, in the OWSTIMER (7296) process, on machine XYZWFE02.  View the tracing log for more information about the conflict.
       at Microsoft.SharePoint.Administration.SPConfigurationDatabase.StoreObject(SPPersistedObject obj, Boolean storeClassIfNecessary, Boolean ensure)
       at Microsoft.SharePoint.Administration.SPConfigurationDatabase.Microsoft.SharePoint.Administration.ISPPersistedStoreProvider.PutObject(SPPersistedObject persistedObject,
    Boolean ensure)
       at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()
       at Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance.Synchronize(Boolean calledFromSearchServiceInstance)
       at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-SharePoint Server" Guid="{C33B4F2A-64E9-4B39-BD72-F0C2F27A619A}" />
        <EventID>6481</EventID>
        <Version>14</Version>
        <Level>2</Level>
        <Task>3</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2014-06-28T11:23:34.565108900Z" />
        <EventRecordID>1419864</EventRecordID>
        <Correlation ActivityID="{CEACAABB-34A0-41F6-88B0-0834929B654C}" />
        <Execution ProcessID="14104" ThreadID="19380" />
        <Channel>Application</Channel>
        <Computer>XYZWFE02.XYZportal.com</Computer>
        <Security UserID="S-1-5-21-681022615-1803309023-368063384-1108" />
      </System>
      <EventData>
        <Data Name="string0">Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance</Data>
        <Data Name="string1">b340454e-ab06-4981-80f7-81d2326a1b32</Data>
        <Data Name="string2">An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was
    updated by XYZPORTAL\spfarm, in the OWSTIMER (7296) process, on machine XYZWFE02.  View the tracing log for more information about the conflict.</Data>
        <Data Name="string3">Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must
    re-try this action. The object SearchDataAccessServiceInstance was updated by XYZPORTAL\spfarm, in the OWSTIMER (7296) process, on machine XYZWFE02.  View the tracing log for more information about the conflict.
       at Microsoft.SharePoint.Administration.SPConfigurationDatabase.StoreObject(SPPersistedObject obj, Boolean storeClassIfNecessary, Boolean ensure)
       at Microsoft.SharePoint.Administration.SPConfigurationDatabase.Microsoft.SharePoint.Administration.ISPPersistedStoreProvider.PutObject(SPPersistedObject persistedObject,
    Boolean ensure)
       at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()
       at Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance.Synchronize(Boolean calledFromSearchServiceInstance)
       at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)</Data>
      </EventData>
    </Event>
    adil

    HI
    I cleared the configuration cache and restarted the Reporting server ,
    and performance point service, 
    and bi Pointers working fine and after some time it stopped to render data,
    and received below error messge in wfe server
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-PerformancePoint Service
    Date:          04/09/35 01:44:58
    م
    Event ID:      1
    Task Category: PerformancePoint Services
    Level:         Error
    Keywords:     
    User:          NT AUTHORITY\IUSR
    Computer:      XYZWFE02.XYZportal.com
    Description:
    An exception occurred while the width of the Web. Diagnostic information that may help determine the cause of the following in this issue:
    Microsoft.PerformancePoint.Scorecards.BpmException: There is a problem in the preparation of a Web Part for display.
    Error code "Services PerformancePoint" is 20700.Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-PerformancePoint Service" Guid="{A7CD5295-CBBA-4DCA-8B67-D5BE061B6FAE}" />
        <EventID>1</EventID>
        <Version>14</Version>
        <Level>2</Level>
        <Task>1</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2014-07-01T10:44:58.277694100Z" />
        <EventRecordID>1426175</EventRecordID>
        <Correlation ActivityID="{C4FDF79F-347D-48C5-8F2D-B732D353F20E}" />
        <Execution ProcessID="17088" ThreadID="18964" />
        <Channel>Application</Channel>
        <Computer>XYZWFE02.XYZportal.com</Computer>
        <Security UserID="S-1-5-17" />
      </System>
    </Event>
    adil

  • Folder action not working outside automator

    I have a folder action to convert and move all mkv files from within the downloads folder. The folder action included (among other) the following script:
    on run {input, parameters}
              set filename to POSIX path of input
              do shell script "/usr/local/bin/mkvdts2ac3.sh -n " & quoted form of filename user name "white" password "*****)" with administrator privileges
      #do shell script "mount -t smbfs //panos:z2kdft50@nas/internal internal" user name "white" password "******)" with administrator privileges
              do shell script "mv " & quoted form of filename & " /Users/white/internal/library/" user name "white" password "****)" with administrator privileges
              do shell script "rm -rf /Users/white/Downloads/*.dts" user name "white" password "*****)" with administrator privileges
              set message to "File " & filename
              return message
    end run
    The total workflow runs perfectly from within automator.
    The problem is that when the folder action is triggered from the system (regular usage, ouside automator) the workflow executes up to the point that the applescript is implemented (I ghave installed growl notifications at various points to know how far the script has run)
    Does anybody have any idea why could this be happening?
    I  have looked around but found no answers.
    Thanks.
    <Edited by Host>

    Thanks.
    I replaced the applescript with the following shell script:
    /usr/local/bin/mkvdts2ac3.sh -n $@
    mv $@ /Users/white/internal/library/
    rm -rf /Users/white/Downloads/$@
    It works.
    I had tried a shell script in the very begining, but I could not get it to work so I resorted to Applescript instead. I felt myself too that applescript was an unnecessary complicated procedure just to run shell commands.
    Anyway, now, each time a dts download finishes, it gets transcoded to dolby digital so that it can be played on my samsung tv (it's media player does not support dts).

  • Connection to license service failed; license service address is not valid...

    Connection to license service failed; license service address is not valid, or license service is stopped (or does not respond), ConnectToCompanyReturn = -131 in ConnectToCompany()
    This is the error I received from an addon.  It works running it on the server where the SAP license is but as soon as a SAP client starts and the addon tries to connect I receive the error but I don't understand there's no different about the SAP code given to connect an addon.
    Here's the method in which it fails
    private int ConnectToCompany()
        int ConnectToCompanyReturn = 0;
        // // Establish the connection to the company database.
        ConnectToCompanyReturn = oCompany.Connect();
        if (ConnectToCompanyReturn != 0)
            string Message = oCompany.GetLastErrorDescription() + ", ConnectToCompanyReturn = " + ConnectToCompanyReturn.ToString() + " in ConnectToCompany()";
            System.Windows.Forms.MessageBox.Show(Message);
            System.Threading.Thread.CurrentThread.Abort();
        return ConnectToCompanyReturn;
    It just hangs on the ConnectToCompanyReturn = oCompany.Connect();
    I did addons for about 8 years.  This is the first time I see an addon not connecting like that.  Any ideas ?
    SAP 9 PL09 Hotfix 1
    The SAP client works fine,  Coresuit addon connects all right so I'm lost here !

    Here's the code used in the addon which is the same since 2005 followed by the code that calls these methods from the constructor.  These methods are called the same way.
    private bool SetApplication()
        //  Use an SboGuiApi object to establish connection
        //  with the SAP Business One application and return an
        //  initialized appliction object
        string sConnectionString = "";
        SAPbouiCOM.SboGuiApi SboGuiApi = null;
        try
            if (System.Diagnostics.Debugger.IsAttached && System.Environment.GetCommandLineArgs().Length < 2)
                System.Windows.Forms.MessageBox.Show("SAP isn't running or you're trying to debug in Release mode...");
                return false;
            SboGuiApi = new SAPbouiCOM.SboGuiApi();
            //  By following the steps specified above, the following
            //  statment should be suficient for either development or run mode
            sConnectionString = System.Environment.GetCommandLineArgs().GetValue(1).ToString().Trim();
            // Connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString);
            //  Get an initialized application object
            SBO_Application = SboGuiApi.GetApplication(-1);
            return true;
        catch (Exception ex)
            throw new Exception(ex.Message);
    private int SetConnectionContext()
        int setConnectionContextReturn = 0;
        try
            string sCookie = null;
            string sConnectionContext = null;
            // First initialize the Company object
            oCompany = new SAPbobsCOM.Company();
            // Acquire the connection context cookie from the DI API.
            sCookie = oCompany.GetContextCookie();
            // Retrieve the connection context string from the UI API using the
            // acquired cookie.
            sConnectionContext = SBO_Application.Company.GetConnectionContext(sCookie);
            // Before setting the SBO Login Context make sure the company is not
            // connected
            if (oCompany.Connected == true)
                oCompany.Disconnect();
            // Set the connection context information to the DI API.
            setConnectionContextReturn = oCompany.SetSboLoginContext(sConnectionContext);
            return setConnectionContextReturn;
        catch (Exception ex)
            throw new Exception(ex.Message);
    private int ConnectToCompany()
        int Result = 0;
        // Establish the connection to the company database.
        Result = oCompany.Connect();
        if (Result != 0)
            string Message = oCompany.GetLastErrorDescription() + ", ConnectToCompanyReturn = " + Result.ToString();
            System.Windows.Forms.MessageBox.Show(Message);
            System.Threading.Thread.CurrentThread.Abort();
        return Result;
    This is in the Constructor
    public Addon()
        //  set SBO_Application with an initialized application object
        SetApplication();
        SetFilters();
        if ((SetConnectionContext() == 0))
            if (ConnectToCompany() == 0)
                SBO_Application.AppEvent += new SAPbouiCOM._IApplicationEvents_AppEventEventHandler(SBO_Application_AppEvent);
                SBO_Application.MenuEvent += new SAPbouiCOM._IApplicationEvents_MenuEventEventHandler(SBO_Application_MenuEvent);
                SBO_Application.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(SBO_Application_ItemEvent);
                SBO_Application.FormDataEvent += new _IApplicationEvents_FormDataEventEventHandler(SBO_Application_FormDataEvent);
            if (SBO_Application.Language == BoLanguages.ln_French)
                SBO_Application.StatusBar.SetText("Addon Wizard de prix activé...", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success);
            else
                SBO_Application.StatusBar.SetText("Addon Price Wizard actived...", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success);

  • Database Services Engine Failed, SQL Server Replication Failed, Full Text Search Failed, Reporting Services Failed

    Hello,
    I am trying to install Microsoft SQL Server 2008 R2. I get the error bellow (Database Services Engine Failed, SQL Server Replication Failed, Full Text Search Failed, Reporting Services Failed). I already have a copy of SQL Server 2008 R2 on the machine.
    I want to create a new named instance of SQL Server for some software I'm installing.
    The error is below.
    Any help would be much appreciated, thanks!
    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
    rerun SQL Server Setup.
      Exit code (Decimal):           -595541211
      Exit facility code:            1152
      Exit error code:               49957
      Exit message:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
    rerun SQL Server Setup.
      Start time:                    2014-02-06 09:14:09
      End time:                      2014-02-06 11:18:16
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.2500.0%26EvtType%3d0x44D4F75E%400xDC80C325
    Machine Properties:
      Machine name:                  BAHPBZ52TY
      Machine processor count:       4
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Sql Server 2008 R2   SQLEXPRESS           MSSQL10_50.SQLEXPRESS          Database Engine Services                
    1033                 Express Edition      10.50.1600.1    No        
      Sql Server 2008 R2                                                      
    Management Tools - Basic                 1033                 Express Edition     
    10.50.1600.1    No        
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      Installation location:         c:\c7ced2c86d6b9813b28186cc831c2054\x64\setup\
      Installation edition:          EXPRESS_ADVANCED
      Slipstream:                    True
      SP Level                       1
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      True
      AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CONFIGURATIONFILE:             
      CUSOURCE:                      
      ENABLERANU:                    True
      ENU:                           True
      ERRORREPORTING:                False
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FEATURES:                      SQLENGINE,REPLICATION,FULLTEXT,RS,SSMS,SNAC_SDK,OCS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT AUTHORITY\LOCAL SERVICE
      FTSVCPASSWORD:                 *****
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              c:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           c:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    aedt2bSQL
      INSTANCENAME:                  AEDT2BSQL
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      NPENABLED:                     0
      PASSPHRASE:                    *****
      PCUSOURCE:                     c:\c7ced2c86d6b9813b28186cc831c2054\PCUSOURCE
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      ROLE:                          AllFeatures_WithDefaults
      RSINSTALLMODE:                 DefaultNativeMode
      RSSVCACCOUNT:                  NT AUTHORITY\NETWORK SERVICE
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           BAH\568385
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    0
      UIMODE:                        AutoAdvance
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       SQL Client Connectivity SDK
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Full-Text Search
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Reporting Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Management Tools - Basic
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Microsoft Sync Framework
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\SystemConfigurationCheck_Report.htm

    Hello,
    If you see error descriptioon it gives access denied so basically it is because of some access issue.I guess You must be using some domin account for installation make sure it is  added as local administrator also instead of using NT Authority network
    service  as SQL server service account use local system account .
    Below link would help
    http://serverfault.com/questions/212135/access-is-denied-error-installing-sql-server-2008-on-windows-7
    You can also browse to setup.exe file and RK on it and select run as administrator
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Adobe Bridge (CS6) Stopped Working & Application Manager Fails No Matter What

    Adobe Bridge (CS6) Stopped Working & Application Manager Fails No Matter What I do.
    I have uninsalled, ran the cleaner, installed, and Bridge will not open, Application manager will not run.
    It
    Win 7 x64 Pro
    CS6
    Thanks

    Good luck with that, and don't forget to deactivate CS6. 
    My system is slowing down after nearly two years, and I am dreading a reinstall - there always seems to be something you have forgotten!  What really worries me is what happens to existing raid0 arrays seeing as the mainboard needs drivers.   They are backed up, but I just don't trust a single level backup, and will have to add a further 3Tb of drive space to make a straight copy of the raid0 arrays.  I also like the idea of Windows 8.1, but dread finding out that the drivers don't work!
    The Premiere Pro hardware forum is the perfect place to ask about stuff like that.  Harm, Bill, Erik etc. are super clued up on such things, so I shall run my concerns past them before committing. 
    So I wish you good luck again, and I know you'll make a plan before going ahead with it.

  • The screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    the screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    Have you tried a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • Javascript For loop not working within a function

    Hi all,
    I'm a beginner to LiveCycle and I cant seem to get a loop working within a function.  The function is being called successfully because when I manually create the code it works but I am trying to clean things up.
    So here is my working example:
    function hideContent() {
            MainFlowedSub.LevelsSub.Table1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table2.presence = "hidden";
           ... and so on....
             MainFlowedSub.LevelsSub.Table8.Row1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table8.Row2.presence = "hidden";
           ... and so on....
    However when I try and creat a loop instead of listing every sing table/row nothing happens. this is important to my project as there will be alot of different rows depending on radio button selections earlier in the form.  Below is the current state of my code:
    function hideContent() {
        var i=0;
         for (i=1;i<=5;i++)
             MainFlowedSub.LevelsSub.Table[i].presence = "hidden";
        var j=0;
         for (j=1;j<=23;j++)
             MainFlowedSub.LevelsSub.Table8.Row[j].presence = "hidden";
        var k=0;
         for (k=24;k<=88;k++)
             MainFlowedSub.LevelsSub.Table8.Row[k].presence = "hidden";
    this will then continue as there will be hundreds of rows.
    Any help will be greatly appreciated and I am sure I am making a basic error  so thanks in advance.
    j

    thanks for your help paul.  Again, really appreciated as I know very little about all this.
    Unfortunately its still not working... One thing I am sure of is that I am doing something very basic wrong. So here is my code, I have applied your suggestion above which will cover all my data:
    To give an understanding, I have 5 tables of content, each has i amount of rows. and I am running this script to clear/remove all items being displayed.
    function hideContent() {
        for (var i=1;i<=5;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table[" + i + "]").presence = "hidden";
        for (var i=1;i<=71;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table8.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=93;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table9.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=99;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table10.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=101;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table11.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=87;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table12.Row[" + i + "]").presence = "hidden";
    It has to be something to do with my For loops because if I manually insert each line it works perfectly.
    Thanks again,
    johnny

Maybe you are looking for