"Save operation failed" in HTML client screen

Some users of my Lightswitch application are getting an error: "SAVE OPERATION FAILED - Data in the Candidate Basic record is invalid".
Unfortunately I can't see their screens, however I've tried to replicate it myself with their user account and I can't. Does anyone have any idea what is causing this? The application is 3-tier and is hosted on Azure.

You can refer to https://msdn.microsoft.com/en-us/library/vstudio/jj733572.aspx#validate for custom validations.
This does not include validating mandatory entities. For that, go to your property post render and try something along these lines:
contentItem.screen.getMyEntity().then(function (MyEntity) { // just making sure that your entity was loaded
contentItem.dataBind("value", function (newValue) {
if (newValue != null && newValue != undefined) {
contentItem.validationResults = [];
} else {
contentItem.validationResults = [new msls.ValidationResult(contentItem.screen.findContentItem("myPropertyonScreen"), "This field is mandatory")];

Similar Messages

  • LS HTML Client Screen Behavior

    I have a home screen. From this screen I am calling another (Screen2).
    In the "Screen 2" I have a tile view. When I click on a Tile: An "Edit Dialog Screen" is displayed to allow the users to edit that record. Everything is working, but when I close the Edit dialog. The application goes back to my home
    Page.
    The application should go back to My "Screen 2"; since that screen created the dialog.
    Is there any idea to prevent this, I have not seen this before. I have no code forcing that navigation to the home page. Any help would be appreciated.

    Use an "afterClosed" function to show any screen you want once the dialog closes.  You create the afterClosed function on the original screen (Screen 2) by overriding the code for the button that launches the dialog. 

  • 6280 videos freeze camera operation failed camera ...

    Noticed a couple of other threads similar but does anyone have any fixing suggestions ?
    Phone has worked fine for a couple of months but now if I try to playback a video the phone freezes then sort of re-boots after about 10 secs. Also if I try to switch camera on, phone freezes again for a bout 10 secs, then 'operation failed' is displayed, then screen shows 'camera in standby' and the only next move is to exit.

    For Nokia to take a look into it they need to know about it.
    I would suggest going back to the repair centre and telling them that the FW update has not resolved it. Maybe there is a higher level repair centre they can send it to.
    (just editing my bad spelling)Message Edited by sosul on 23-Nov-2006
    01:46 PM

  • No way to publish a workflow, I get this error: System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope ... is not in an active state. Its current state is 'Unregistering'

    Hi,
    I'm using Project Server 2013 and I'm not able to publish a workflow in SharePoint Designer 2013, I get this error:
    System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope '/SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777' is not in an active state. Its current
    state is 'Unregistering'. HTTP headers received from the server - ActivityId: c47ef567-8c54-4ae0-9a1a-1e4fb51320d8. NodeId: TestServer. Scope: /SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777. Client ActivityId : c6e5979c-20f8-e042-1f9d-2cb2a25d7f9e.
    ---> System.Net.WebExceptio
    The thing is that I transferred the databases from a Prod.Env. to the Test Env. and from that moment on the Test Env. stopped working (only workflows), then I
    was thinking that maybe the workflow is not working in the Test Environment because when I transferred the databases from Prod Env to Test Env I didn’t transfer the databases related to workflow, I only transferred:
    WSS_Content
    PWA_ServiceDB
    But I didn’t transfer:
    SBGatewayDatabase
    SBManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    I didn’t transfer them because, before, when I transferred DB’s in version 2010, these DB’s were not needed, as the workflows were done using another method.
    So, I tried to create a new workflow in the Test Env. but there is no way, I always get that error.
    I've tried to Register again the workflow, and the result looks ok, but it doesn't solve the problem:
    Register-SPWorkflowService
    –SPSite "http://whatever/PWA"
    –WorkflowHostUri "http://TestServer:12291"
    –AllowOAuthHttp -Force
    Do you know how to solve this issue or have an idea to give me some light?
    Thank you for your help and regards,
    José Espases

    Looks like you haven't defined the WF scope or the site where you are trying to deploy the workflow to isn't included in the scope
    Check this article
    http://fangdahai.blogspot.in/2013/04/on-premise-windows-workflow-server.html
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Can't scan a collection using endpoint, "Failed to initiate client side operation."

    i'm trying to do a quick endpoint scan of a collection and get the error, "failed to initiate client side operation."   I click the details button and I get this:
    Not found
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException
    The SMS Provider reported an error.
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String methodClass, String methodName, Dictionary`2 methodParameters, Boolean traceParameters)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String methodClass, String methodName, Dictionary`2 methodParameters)
       at Microsoft.ConfigurationManagement.AdminConsole.ClientOperation.Utilities.ExecuteClientOperation(ConnectionManagerBase connectionManager, ClientActionType operationType, String collectionId, String collectionName, List`1 validMachineIds, IResultObject
    selectedMachines)
    System.Management.ManagementException
    Not found
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String methodClass, String methodName, Dictionary`2 methodParameters, Boolean traceParameters)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String methodClass, String methodName, Dictionary`2 methodParameters)
       at Microsoft.ConfigurationManagement.AdminConsole.ClientOperation.Utilities.ExecuteClientOperation(ConnectionManagerBase connectionManager, ClientActionType operationType, String collectionId, String collectionName, List`1 validMachineIds, IResultObject
    selectedMachines)
    I have absolutely no idea how to fix it.  I've tried resetting the site, uninstalling and reinstalling the SCCM console from the SP1 media, verifying that WMI is set up correctly, reinstalling the SCCM client on my server, restarting the server... I've
    got nothing.   Does anyone have any suggestions?

    What version is the client running? Do you also have Cu1 installed, if so, did you also upgrade the clients?
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • Error 'no local web solution for html engine installed. operation failed'

    Hi all
    I am trying to install JD Edwards EnterpriseOne.
    I have done the installation in one machine according to this queue:
    1) Installed the Oracle DB 11g
    2) Installed the Enterprise and Database Server
    3) Installed the Deployment Server and the installation finished successfully
    But when i try to navigate to the EntepriseOne menu I have the following message:
    "no local web solution for html engine installed. operation failed". Can you please suggest for any solution for this?
    I also did not install the html web server yet. Is this mandatory? Is this error related with this?
    Thank you and best regards

    Hi Bruno
    During installation I didn't enter any port, so could you please tell me if there is any default port for this isntallation.
    I red on the internet that port 6010 is the default port for EnterpriseOne so I entered the url: http://192.168.223.167:6010/jde/E1Menu.maf
    where this(192.168.223.167) is the IP of my server but still the page did not open.
    Do I have to start any service or something. Please help me to solve this issue.
    Thank you and best regards

  • Operation failed when trying to Save a Custom Function to the Repository

    When attempting to save a Custom Function to the Repository in Crystal Reports XI R2, I get the following error message:
    "Operation failed: You do not have edit right on: "Default folder for custom functions".
    Where is the default folder for custom functions and how do I grant it the "Edit" right?
    Thanks,
    Jim

    Hi Jim,
    To give rights to a user or a group to save custom function in the Repository:
    1. Open the Business View Manager
    2. Logon to your BusinessObjects Enterprise as the Administrator
    3. In the "Repository Explorer",  right click on the "Custom Functions" folder, and in the contextual menu, select "Edit Rights"
    4. In the "Edit Rights" window, add the user or group that you want to give the right to save a custom function to the repository, and set the "Edit" right to "Granted". Finally, click on the "OK" button to accept the change.
    The user will then be able to save a Custom Function to the Repository in Crystal Reports XI R2.
    Also, note that it is important that the "Everyone" group "Edit" right isn't set to "Denied" as every user is part of the "Everyone" group.
    If the group "Everyone" is set to denied, it will take precedence to the user rights, so nobody will be able to save custom function. So ensure the "Everyone" group right is either set to "Inherited" or "Granted".

  • Extending Screens for Multi-Select in the LightSwitch HTML Client

    Hi i
    read Mike Droney's article of 
    Extending Screens for Multi-Select in the LightSwitch HTML Client
    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    Thanks  

    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    The '__isSelected' property is a private member of the class msls.ContentItem related to the backing data for the selected item.  That is to say, it would be a private member if JavaScript actually had encapsulation and information hiding like a typical
    object-oriented language. I like to reference David Herman's description from his book
    Effective JavaScript:
    Often, JavaScript programmers resort to coding conventions rather than any absolute enforcement mechanism for private properties. For example, some programmers use naming conventions such as prefixing or suffixing private property names with an underscore
    character (_). This does nothing to enforce information hiding, but it suggests to well-behaved users of an object that they should not inspect or modify the property so that the object can remain free to change its implementation.
    ...which means that it's generally not recommended to directly get or set backing data properties like __isSelected, instead working with the public property 'selectedItem', although it may work fine in certain cases like this one.
    To make _canExecute fire only when an item in the list is selected to enable a button method, try:
    return (screen.Contacts.selectedItem !== null);

  • Error on nexus 7k series " operation failed.the fabric is already locked"

    getting following error on nexus 7k series switch: error is " operation failed.the fabric is already locked", while removing ntp commands (no ntp server 10.101.1.1) from switch. Please help.

    I had the same error message, only in my situation Outlook would only open successfully every 4 or 5 attempts. When Outlook would open (versus just hanging at the splash screen), I would get two dialog boxes with the warning/error message. 
    After I clicked okay I could get into Outlook.
    Previously I experienced this problem running my Office 2010 client with my Exchange 2007 mailbox on my old laptop.  The problem followed my mailbox through an Exchange 2010 migration (so new Exchange org), client upgrade to Outlook 2013, and a new
    laptop (so I knew it wasn't a corrupt profile).  This led me to the conclusion that it was a corrupt item(s) in my mailbox.
    To resolve the issue, I archived *everything* in my mailbox to a PST file, ran SCANPST to fix the corruption, and then uploaded everything back into my Exchange mailbox one folder at a time, stopping after each folder to close and restart Outlook so I could
    narrow down which folder had the corrupt item if the problem recurred.  I'm happy to say my issue is now resolved.

  • Error message when opening Outlook: The operation failed. The messaging interfaces have returned an unknown error. If the problem persists, restart Outlook.

    In an Exchange 2010 server/Outlook 2013 environment, one of our users is getting an error message every time they start Outlook. The error message says: "The operation failed. The messaging interfaces have returned an unknown error. If the problem
    persists, restart Outlook."
    The error log message details are as follow:
    System
    Provider
    [ Name]
    Microsoft Office 15 Alerts
    EventID
    300
    [ Qualifiers]
    0
    Level
    4
    Task
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2013-01-08T15:54:49.000000000Z
    EventRecordID
    655
    Channel
    OAlerts
    Computer
    Computer-Name.domain.local
    Security
    EventData
    Microsoft Outlook
    The operation failed. The messaging interfaces have returned an unknown error. If the problem persists, restart Outlook.
    301670
    15.0.4420.1017
    xyfc
    0x8004011B
    The system is as follows:
    Size of .pst file: 2.3 GB (Unicode format so there should be plenty of space left)
    OS: Windows 7 (64-Bit)
    Application: Outlook 2013 (32-Bit)
    The user upgraded from Outlook 2010 a few months ago and the error message has only recently started appearing on startup. I thought it was a corrupt mail profile, so I have already tried creating a new mail profile, as well as the repairing tool in Outlook.
    I even tested another email account and that worked just fine. So apparently it is something wrong with the specific user's account/profile and not something wrong with the computer - since my email account worked fine on his computer.
    Any help would be greatly appreciated.

    I had the same error message, only in my situation Outlook would only open successfully every 4 or 5 attempts. When Outlook would open (versus just hanging at the splash screen), I would get two dialog boxes with the warning/error message. 
    After I clicked okay I could get into Outlook.
    Previously I experienced this problem running my Office 2010 client with my Exchange 2007 mailbox on my old laptop.  The problem followed my mailbox through an Exchange 2010 migration (so new Exchange org), client upgrade to Outlook 2013, and a new
    laptop (so I knew it wasn't a corrupt profile).  This led me to the conclusion that it was a corrupt item(s) in my mailbox.
    To resolve the issue, I archived *everything* in my mailbox to a PST file, ran SCANPST to fix the corruption, and then uploaded everything back into my Exchange mailbox one folder at a time, stopping after each folder to close and restart Outlook so I could
    narrow down which folder had the corrupt item if the problem recurred.  I'm happy to say my issue is now resolved.

  • Verify Operation Failed and Other Issues

    Adobe Reader X 10.1.1 is not working correctly on my computer which is running Windows XP Professional Service Pack 3. I have several symptoms.
    1. If I am able to open a pdf file on my hard drive I get this error message:
       “Verify operation failed.”
        I hit OK and can read the document fine.
    2. Many pdf files on my hard drive will not open. I get the error message:
       “There was an error opening this document. There was a problem reading this document (57).”
        I doubt the document is corrupt because I can email them to my coworkers and they can open it.
    3. I can open any document inside of Internet Explorer 8. I get the error message:
       “There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again (0:104)”
        It wasn’t running and trying again won’t help. Usually I download the file and try to open it and if I can't I email to a co-worker and continue on. But now I need to fill out a form online that uses a pdf but I can't download it. What can I do now?
    I have uninstalled and reinstalled twice with no success.  I suspect the root problem is the “Verify operation failed.”
    Any ideas.

    I found a work around. It requires Foxit Reader, which is free.
    Option 1: If you can't open a (.pdf) file in Internet Explorer because it insists on using Adobe Reader which fails on your computer for whatever reason, sometimes you can right click on the link itself and select “Save Target As” which will save the (.pdf) to your hard drive and then you can open it with Foxit Reader. If the file that it tries to save is something other than a (.pdf) such as an (.htm) then try option 2 below.
    Option 2: If the “Save Target As” option isn't available, or it tries to save a file type (.htm), then click on the link anyway and let Adobe Reader try and open it. If it fails, the URL to the (.pdf) file should be in the Internet Explorer/Adobe Reader address bar. Copy the URL, open Foxit reader, go to File - Open, then paste the URL of the (.pdf) into the File Name textbox on the Open File pop-up screen and hit "Open".
    I've tried changing the default (.pdf) reader to Foxit but sometimes the link to the (.pdf) still insists on using Adobe. Even if I try to use FireFox and Foxit together, there are some (.pdf) links that won't use anything but Adobe.
    Sorry Adobe but I don't think it's your software, I think something is wrong with Windows on this computer.

  • Outlook error "The Delegate settings were not saved correctly. cannot activate send-on-behalf-of list. The operation failed"

    Hi,
    Re: "The Delegate settings were not saved correctly. cannot activate send-on-behalf-of list.  The operation failed" 
    I have a client who is getting the above error when attempting to change delegate permissions in Outlook 2010.
    She is also getting this error when she tries to remove a delegate.
    I have tried recreating her mail profile.
    I have also tried kb2593557. The auto fix didn't work at all and the registry fix only removes the error message and not the problem. This client would like to be able to edit her delegate permissions.
    She is on Exchange 2010
    Any assistance would be appreciated.

    The article you provided is not related to the error message that the user is getting it.
    Can you please provide better solution? I know this answer and this post is old but I am having same issue.
    The error message is only (The Delegates settings were not saved correctly. cannot activate send-on-behalf-of list. The operation failed) I was not able to attach screen shot.

  • Runtime Error in VS2012 (Update4) LightSwitch HTML Client

    I have a desktop (Silverlight) application, I upgraded the project to add the HTML Client. Now when I run the HTML Client, it shows this message box on the browser:
    "The application could not be loaded. Please try refreshing the page. Failed to load model: failed to parse the model JSON string. Failure reason: syntax error."
    I started my desktop application in VS2012 Update 2, and now it is in the Update 4. The interesting thing is that when I make new Project and then add HTML Client, I will not receive this error and it works fine.
    It shows this error only on that specific project (Which I started on VS2012 Update2, later Update3 and now Update4) and that project is very big (more than 100 tables and screens), therefore I can not make that from scratch again.
    I have to add HTML Client to my project. I really appreciate if someone can help me.

    "The application could not be loaded. Please try refreshing the page. Failed to load model: failed to parse the model JSON string. Failure reason: syntax error."
    Hi Keysen,
    First you need install Microsoft.LightSwitch.Client.JavaScript.Runtime 2.5.2. This update can be downloaded from the NuGet Gallery, see:
    http://www.nuget.org/packages/Microsoft.LightSwitch.Client.JavaScript.Runtime/
    Because this issue is project specific, you can also turn the build output, in the
    Options window, find Projects and Solutions >> 
    Build and Run. Find Diagnostic in the drop-down for MSBuild project build output verbosity. It will give detailed information why this happens.
    Please let me know if there is anything that I can do to help.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Operation Failed. The resource is not a directory, or there might be a permission problem"

    I am trying to edit a role setting but when i click on "Edit
    Role Settings" it pops up a message:
    "Operation Failed. The resource is not a directory, or there
    might be a permission problem"
    As suggested in a previous thread, I ran FTPServerChecker and
    only received two errors. Neither of them applied to me as I am
    using contribute 3 and one error was for contribute 2. The other
    said to ignore the error if you are using a windows server, which I
    am. What can I do to get this working? Thanks. Here is the log from
    FTPServerChecker if that helps:
    NOTE: "Serv-U FTP server" has been detected.
    There is a known issue reported with Contribute 2.0 and
    Serv-U server.
    If you are using Contribute 2.0, please download a patch from
    here
    http://www.macromedia.com/support/contribute/ts/documents/servu.htm
    Login: SUCCESS!
    Directory Listing Test: SUCCESS!
    Make Directory Test: SUCCESS!
    Change Directory Test: SUCCESS!
    Upload a File Test: SUCCESS!
    Fallback Test for Optimization: SUCCESS!
    Server State Test: SUCCESS!
    File/Directory NameExists Test: SUCCESS!
    File/Directory NOT Exists Test: SUCCESS!
    TimeStamp Test: SUCCESS!
    Rename Test: SUCCESS!
    Move File To Sub Dir Test: SUCCESS!
    Move File To Parent Dir Test: SUCCESS!
    Change Permission test: Error.
    If your FTP server runs on windows operating system, you may
    ignore this error.
    If your FTP server runs on UNIX based operating system,
    please check file/directory
    permissions.
    If you are using an anonymous or guest account, you might not
    have privileges to
    change permissions. Please check with your server
    administrator.
    -------------------------------- FTP log from the last
    operation -------------------------------
    > CWD /c:/websites/aaa/mm_diagnose
    < 250 Directory changed to /c:/websites/aaa/mm_diagnose
    > SITE CHMOD 755 rename_test3_parent_.mm
    < 501 SITE option not supported.
    > CWD
    /c:/websites/aaa/mm_diagnose/rename_test3_parent_.mm
    < 550
    /c:/websites/aaa/mm_diagnose/rename_test3_parent_.mm: No such file
    or directory.
    > CWD /c:/websites/aaa/mm_diagnose
    < 250 Directory changed to /c:/websites/aaa/mm_diagnose
    > RNFR rename_test3_parent_.mm
    < 350 File or directory exists, ready for destination
    name
    > ABOR
    < 226 ABOR command successful.
    Cleaning Test File: SUCCESS!
    Cleaning Test Directory: SUCCESS!
    Cleaning Test Directory: SUCCESS!

    Ken Jacobs wrote:
    > One of our clients is receiving this error message when
    using Contribute 3 to
    > publish any page on their website.
    >
    > I followed the instructions in the support center to
    enable logging. When I
    > looked at the log I noticed that there was an
    ACCESS_DENIED message when trying
    > to retrieve the file /www/home/news.html.LCK
    >
    > I checked the FTP server and I cannot find any trace of
    the lock file that is
    > mentioned in the error message.
    >
    > What is causing this message?
    >
    Not sure why this is happening... Try to create a copy of
    this page and
    try using it as a work around until then. Further more, look
    at the
    access privileges for the folder on your site.. you should
    have proper
    privileges..

  • HTML Client Progress Bar

    Within my HTML Client application the user will trigger a longer running process server side...
      msls.showProgress(msls.promiseOperation(function 
    (operation)
            $.post("../api/Command/DoStuff",
    ReqParam:
    "SomeParameter",
              .done(function()
                  operation.complete("DONEZO!!!");
                  screen.ReportstoRecords.refresh();
    This process may act on 50,100,1000 records and I would like to show the "total progress" to the user (possibly replacing the default "ShowProgress" overlay w/ a real-time process bar.
    Could someone nudge me in the right direction?  Seem like a simple thing to wire up, but I just can't seem to find any examples...
    Thanks in advance!!!!!

    Here are code snippet to use ShowProgress in Lightswitch application
    msls.showProgress(msls.promiseOperation(function (operation) {
            $.getJSON(url,
    function (data) {
                operation.complete(data);
    //Operation completed successfully
            }).error(function (args) {
                operation.error(args);
    //Operation completed with error.
        }) .then(function (result) {
            msls.showMessageBox(result);

Maybe you are looking for