Update object problem

Hi!
I'm having some problems to update an object using TopLink with OracleXE.
I have been traying different things with the merge method in the UnitOfWork API. The code executes without problems, but the rows in the databaste keep untouched as before.
Any idea?
Thanks,
Claudio
This is my code:
Session sess=DBManager.getInstance().getSession();
          List objects=sess.readAllObjects(Sector.class);
          Sector sec=(Sector)objects.get(0);
          sec.setNombre("Contenedores"); //Changing name to "Contenedores"
          GrupoDeTrabajo grupo = (GrupoDeTrabajo) sec.getGruposDeTrabajo()
                    .get(0);
          sec.removeFromGruposDeTrabajo(grupo); //removing the first child
          grupo = (GrupoDeTrabajo) sec.getGruposDeTrabajo().get(0); //Retriving the next child
          grupo.setNombre("Other group"); //changing name of one child of sec
          UnitOfWork uow=DBManager.getInstance().getSession().acquireUnitOfWork();
          Object workingCopy = uow.readObject(Sector.class);
          if (workingCopy == null || workingCopy==sec) {
                    throw new DBException();
          uow.validateObjectSpace();
          uow.printRegisteredObjects();
          uow.mergeCloneWithReferences(sec);
          uow.writeChanges();
          uow.commit();
          uow.release();

You cannot change objects you read through the TopLink Session. These objects must be read-only. You can only modify registered clones in a UnitOfWork.
i.e.
Session sess=DBManager.getInstance().getSession();
List objects=sess.readAllObjects(Sector.class);
UnitOfWork uow=DBManager.getInstance().getSession().acquireUnitOfWork();
Sector sec=(Sector)uow.registerObject(objects.get(0));
sec.setNombre("Contenedores"); //Changing name to "Contenedores"
GrupoDeTrabajo grupo = (GrupoDeTrabajo) sec.getGruposDeTrabajo()
.get(0);
sec.removeFromGruposDeTrabajo(grupo); //removing the first child
grupo = (GrupoDeTrabajo) sec.getGruposDeTrabajo().get(0); //Retriving the next child
grupo.setNombre("Other group"); //changing name of one child of sec
uow.commit();
The merge API is for objects that are serialized to a remote client and back.

Similar Messages

  • Errors when 'Updating Objects' during migration from r2 to 3.1 FP1.8

    Has anyone seen errors like this the Update Objects error log file.  I've done 5 or 6 test migrations, and before it was normally working fine, but a couple of times I would get thousands and thousands of rows in the log file such as this:
    ID     Object     Path     Error
    1000023     1000023     ...     
    1000029     1000029     ...     
    1000036     1000036     ...     
    1000069     1000069     ...     
    1000070     1000070     ...     
    1000075     1000075     ...     
    1000107     1000107     ...     
    1000116     1000116     ...
    In testing, there doesn't seem to be much of an indication of any problems, except that recurring schedules don't work after the upgrade, which is a big deal for us as we have about 1000 of them.

    I can't tell what  the compiler is complaining about. I tried a version of your code sample:
    struct Error { Error(int); };
    struct Warning : public Error {
        Warning(void) : Error(-8) {}
    struct Warning_NoNewMilestones : public Warning {
        Warning_NoNewMilestones(void) { }
    int main()
        throw  Warning_NoNewMilestones();
    It compiled without complaint using C++ 5.12 (Studio 12.3).
    There are always two possibilities: The code is OK and you hit a compiler bug, or the code was always invalid but the earlier compiler did not catch the error. Since you seem to have a variety of error messages, the most likely scenario is that the new compiler is catching more errors in your code.
    In general, there is no option to have the compiler accept invalid code. In rare cases, where the error is harmless, or when other compilers typically accept the invalid code, we have an option to allow the code. Please review the list of compiler options in Appendix A of the C++ Users Guide.
    Oracle Solaris Studio 12.3 Information Library
    If the reason for an error message is not obvious, you can post a (preferably small) example that can be compiled to show the error message. Someone in the forum can then probably explain the error, or verify that you hit a compiler bug.
    Here is an example of the badbinaryop error message:
    % cat z.cc
    struct S { };
    int main()
        S s;
        int j = s + 3;
    % CC z.cc
    "z.cc", line 5: Error: The operation "S + int" is illegal.
    1 Error(s) detected.
    I hope the reason for the error is obvious in this case.

  • Flex/Air Update Object Issue...

    The following code is from the Air Employee Directory example
    to which I have added an Update Object, the app installs and
    updates with no problem, but as soon as the update is done and it's
    time for the app to start, the app just doesn't come up. It was
    working fine before I added the update object... Any idea on what I
    could be doing wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
    applicationComplete="onApplicationComplete()" height="100%"
    width="100%" frameRate="45"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    visible="false"
    showEffect="Fade" xmlns:local="*"
    creationComplete="checkUpdate()">
    <mx:Script>
    <![CDATA[
    import mx.logging.Log;
    import com.adobe.empdir.commands.ui.CloseApplicationCommand;
    import mx.binding.utils.BindingUtils;
    import mx.events.StateChangeEvent;
    import mx.events.ResizeEvent;
    private function onApplicationComplete() : void
    callLater( ui.init );
    // We listen to CLOSING fromboth the stage and the UI. If
    the user closes the app through the taskbar,
    // Event.CLOSING is emitted from the stage. Otherwise, it
    could be emitted from TitleConrols.mxml.
    ui.addEventListener( Event.CLOSING, onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSING,
    onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSE,
    onWindowClose );
    private function onWindowClose( evt:Event ) : void
    NativeApplication.nativeApplication.exit();
    private function onWindowClosing( evt:Event ) : void
    evt.preventDefault();
    var cmd : CloseApplicationCommand = new
    CloseApplicationCommand();
    cmd.execute();
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import air.update.events.UpdateEvent;
    import mx.controls.Alert;
    import flash.events.ErrorEvent;
    import air.update.ApplicationUpdaterUI;
    * @var the object that that handles the update related
    actions
    private var appUpdater:ApplicationUpdaterUI = new
    ApplicationUpdaterUI();
    * This function is triggered when the application finished
    to load;
    * Here we initialize <code>appUpdater</code> and
    set some properties
    private function checkUpdate():void {
    setApplicationVersion();
    // we set the URL for the update.xml file
    appUpdater.updateURL = "
    http://localhost/updater/update.xml";
    //we set the event handlers for INITIALIZED nad ERROR
    appUpdater.addEventListener(UpdateEvent.INITIALIZED,
    onUpdate);
    appUpdater.addEventListener(ErrorEvent.ERROR, onError);
    //we can hide the dialog asking for permission for checking
    for a new update;
    //if you want to see it just leave the default value (or set
    true).
    appUpdater.isCheckForUpdateVisible = false;
    //if isFileUpdateVisible is set to true, File Update, File
    No Update,
    //and File Error dialog boxes will be displayed
    appUpdater.isFileUpdateVisible = false;
    //if isInstallUpdateVisible is set to true, the dialog box
    for installing the update is visible
    appUpdater.isInstallUpdateVisible = false;
    //we initialize the updater
    appUpdater.initialize();
    * Handler function triggered by the
    ApplicationUpdater.initialize;
    * The updater was initialized and it is ready to take
    commands
    * (such as <code>checkNow()</code>
    * @param UpdateEvent
    private function onUpdate(event:UpdateEvent):void {
    //start the process of checking for a new update and to
    install
    appUpdater.checkNow();
    * Handler function for error events triggered by the
    ApplicationUpdater.initialize
    * @param ErrorEvent
    private function onError(event:ErrorEvent):void {
    Alert.show(event.toString());
    * A simple code just to read the current version of the
    application
    * and display it in a label.
    private function setApplicationVersion():void {
    var appXML:XML =
    NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    ]]>
    </mx:Script>
    <mx:TraceTarget level="0" includeDate="false"
    includeTime="false"
    includeCategory="true" includeLevel="true">
    <mx:filters>
    <mx:Array>
    <mx:String>*</mx:String>
    </mx:Array>
    </mx:filters>
    </mx:TraceTarget>
    <ui:ApplicationUI id="ui" width="100%" height="100%"
    />
    </mx:Application>

    The following code is from the Air Employee Directory example
    to which I have added an Update Object, the app installs and
    updates with no problem, but as soon as the update is done and it's
    time for the app to start, the app just doesn't come up. It was
    working fine before I added the update object... Any idea on what I
    could be doing wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
    applicationComplete="onApplicationComplete()" height="100%"
    width="100%" frameRate="45"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    visible="false"
    showEffect="Fade" xmlns:local="*"
    creationComplete="checkUpdate()">
    <mx:Script>
    <![CDATA[
    import mx.logging.Log;
    import com.adobe.empdir.commands.ui.CloseApplicationCommand;
    import mx.binding.utils.BindingUtils;
    import mx.events.StateChangeEvent;
    import mx.events.ResizeEvent;
    private function onApplicationComplete() : void
    callLater( ui.init );
    // We listen to CLOSING fromboth the stage and the UI. If
    the user closes the app through the taskbar,
    // Event.CLOSING is emitted from the stage. Otherwise, it
    could be emitted from TitleConrols.mxml.
    ui.addEventListener( Event.CLOSING, onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSING,
    onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSE,
    onWindowClose );
    private function onWindowClose( evt:Event ) : void
    NativeApplication.nativeApplication.exit();
    private function onWindowClosing( evt:Event ) : void
    evt.preventDefault();
    var cmd : CloseApplicationCommand = new
    CloseApplicationCommand();
    cmd.execute();
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import air.update.events.UpdateEvent;
    import mx.controls.Alert;
    import flash.events.ErrorEvent;
    import air.update.ApplicationUpdaterUI;
    * @var the object that that handles the update related
    actions
    private var appUpdater:ApplicationUpdaterUI = new
    ApplicationUpdaterUI();
    * This function is triggered when the application finished
    to load;
    * Here we initialize <code>appUpdater</code> and
    set some properties
    private function checkUpdate():void {
    setApplicationVersion();
    // we set the URL for the update.xml file
    appUpdater.updateURL = "
    http://localhost/updater/update.xml";
    //we set the event handlers for INITIALIZED nad ERROR
    appUpdater.addEventListener(UpdateEvent.INITIALIZED,
    onUpdate);
    appUpdater.addEventListener(ErrorEvent.ERROR, onError);
    //we can hide the dialog asking for permission for checking
    for a new update;
    //if you want to see it just leave the default value (or set
    true).
    appUpdater.isCheckForUpdateVisible = false;
    //if isFileUpdateVisible is set to true, File Update, File
    No Update,
    //and File Error dialog boxes will be displayed
    appUpdater.isFileUpdateVisible = false;
    //if isInstallUpdateVisible is set to true, the dialog box
    for installing the update is visible
    appUpdater.isInstallUpdateVisible = false;
    //we initialize the updater
    appUpdater.initialize();
    * Handler function triggered by the
    ApplicationUpdater.initialize;
    * The updater was initialized and it is ready to take
    commands
    * (such as <code>checkNow()</code>
    * @param UpdateEvent
    private function onUpdate(event:UpdateEvent):void {
    //start the process of checking for a new update and to
    install
    appUpdater.checkNow();
    * Handler function for error events triggered by the
    ApplicationUpdater.initialize
    * @param ErrorEvent
    private function onError(event:ErrorEvent):void {
    Alert.show(event.toString());
    * A simple code just to read the current version of the
    application
    * and display it in a label.
    private function setApplicationVersion():void {
    var appXML:XML =
    NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    ]]>
    </mx:Script>
    <mx:TraceTarget level="0" includeDate="false"
    includeTime="false"
    includeCategory="true" includeLevel="true">
    <mx:filters>
    <mx:Array>
    <mx:String>*</mx:String>
    </mx:Array>
    </mx:filters>
    </mx:TraceTarget>
    <ui:ApplicationUI id="ui" width="100%" height="100%"
    />
    </mx:Application>

  • Error in updating object SURVEY

    Hi Experts,
    The following error occurs not always but very rarely while updating the notes field or while saving an Activity.
    SAP Note
    The following error text was processed in the system P60:
    Error in updating object SURVEY
    The error occurred on the application server crmpcs2c_P60_09 and in the work process 6.
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:%_UPDATES_NO_UTASK of program SAPMSSY4
    Form: LOCAL_UPDATE_TASK of program SAPMSSY4
    START-OF-SELECTION of Program SAPMSSY4
    Could you help me in this regard.
    Thanks in Advance.
    I will reward full points to the expert.
    Regards,
    Madhura.

    Hi Gervase,
    No, but there was an associated dump in the transaction SM13.
    Here is the detail:
    Function Module: CRM_SURVEY_UPDATE_DU
    Status: Update was terminated
    Report: LCRM_SURVEY_DUU02
    Row: 94
    Error details   Class: CRM_ORDER_MISC Number: 002
    Error in updating object SURVEY
    Thanks in Advance.
    Regards,
    Gabriel.

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • 10.4.11 combo update install problem

    Has anyone else had trouble installing the combo update from 10.4 to 10.4.11?? Mine almost finishes and says it encounters an unknown error and cannot finish the install. Says it moves the update to trash and says try again from the finder...
    HELP!!

    Updating
    Certain steps appear to minimize the risk of an update producing problems.
    Number one is to make sure you have a bootable clone backup of your computer in case you do need to back out of it again. This is the only guaranteed way of not having to worry about the results of an update.
    Some like to boot from their installer discs or an external backup and verify (and if necessary repair) their internal drives as well as drive permissions. This is done with Disk Utility. You can verify a drive while booted from the same drive but sometimes this produces spurious errors. Repairing a drive (if necessary) has to be done while booted from another disk.
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions|http://docs.info.apple.com/article.html?artnum=25751]
    You can also go to the step of booting into safe mode to do the install.
    [Mac OS X: Starting up in Safe Mode|http://docs.info.apple.com/article.html?artnum=107393]
    [What is Safe Boot, Safe Mode? (Mac OS X)|http://docs.info.apple.com/article.html?artnum=107392]
    [Safe Boot takes longer than normal startup|http://docs.info.apple.com/article.html?artnum=107394]
    I like to download the update onto my computer and install it from there rather than let Software Update do it. I know a few people who had problems with doing the update via software updater found a manual install to work.
    Repair permissions again afterward.
    It helps to only install one update at a time and to run the computer for a while to make sure it is behaving well.
    The more cautious even like to unplug third party peripherals (see [comment by BDaqua|http://discussions.apple.com/message.jspa?messageID=9040746#9040746]).
    Almost all of the above steps (except backup) have been questioned (e.g., [Permissons repair|http://www.macworld.com/article/52220-3/2006/08/repairpermissions.html] as to necessity. Probably many people have done successful updates without doing them. I say they can't hurt, they can very likely do good (especially if your computer isn't regularly maintained), so why not do them to be safe?
    [BDaqua's comments on updating problems|http://discussions.apple.com/message.jspa?messageID=8948595#8948595]
    [Baby Boomer's comments on updating problems|http://discussions.apple.com/message.jspa?messageID=9025760#9025760]
    [Klaus1's post on updating and removing updates|http://discussions.apple.com/message.jspa?messageID=10257902] and [another one|http://discussions.apple.com/message.jspa?messageID=10402175]

  • SQL Server 2005 Update mechanism problem

    Hi Gurus,
          We're faced with one SQL Server 2005 update mechanism problem. Here is my problem:
          According to our requirement, an add_on interface program is designed to execute creation of production order by calling Bapi.
          There are 3 steps in this add_on program:
          Step 1: Create production order
          Step 2: Change the information of production.
          Step 3: Some other
          After the step 1 has finished immediately step 2 is called, Howerver the information which should have inserted into database table couldn't be found from database. (Maybe because the time between two steps is too short to finish inserting)
          In order to ensure the complete of the transaction, before the step 2 executed, the information in step 1 should have inserted into database.
           Is there any solution to solve this problem?
           I guess whether there is any parameter which control the time of writing buffer into database...
    Any advice is appreciated.
    Thanks & Best Regards,
    Derek Yang

    Hi
    I have the same problem, but that post didnt help me
    This is the error I have:
    My snapshot agent hangs.. waiting for a response from the server.. and timeouts.
    This only hapens for a publication that has a filter based on HOSTNAME()
    The other publications work fine
    Error messages:
    Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    Command Text: sp_MSsetup_partition_groups
    Parameters: @publication = XXXXXXX
    Stack: at Microsoft.SqlServer.Replication.AgentCore.ReMapSqlException(SqlException e, SqlCommand command)
    at Microsoft.SqlServer.Replication.AgentCore.AgentExecuteNonQuery(SqlCommand command, Int32 queryTimeout)
    at Microsoft.SqlServer.Replication.AgentCore.ExecuteDiscardResults(CommandSetupDelegate commandSetupDelegate, Int32 queryTimeout)
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.SetupPartitionGroups()
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.DoRegularMergeSnapshotPreparations()
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.DoPreArticleFilesGenerationProcessing()
    at Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.GenerateSnapshot()
    at Microsoft.SqlServer.Replication.SnapshotGenerationAgent.InternalRun()
    at Microsoft.SqlServer.Replication.AgentCore.Run() (Source: MSSQLServer, Error number: -2)
    Get help: http://help/-2
    Server XXXXXXXXX, Level 11, State 0, Procedure , Line 0
    Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Source: MSSQLServer, Error number: -2)
    Get help: http://help/-2

  • Update/Insert Problem with Oracle Warehouse Builder

    Hello,
    i have update/insert problem with owb.
    Situation: I have a source-table called s_account and a target table called w_account_d. In the target table are already data which was filled trough the source table inserts. Now anyone make changes on data on the target table. This changes should now give further on the source table with an update operation. But exactly here is the problem i can´t map back the data to source because that will create a loop.
    My idea was to set a trigger but i can´t find this component in owb or is anywhere hidden?
    Also i have already seen properties as CDC or conditonal loading in the property inspector of the table, but i have no idea how it works.
    Give it other possibilities to modeling this case? or can anyone me explain how i can implement this eventually with CDC?
    I look forward for your replies :)

    Hi
    thanks for your answer. I follow your suggestion and have set the constraints of both tables into the database directly.Nevertheless it doesn´t work to begin. In the next step i found by right click on a table the listpoint "configure" - I goes to "unique key" --> creation method and set here follow options: Constraint State = ENABLE, Constraint Validation = Validate. That error message that appears before by the deployment disappears yet. Now i start the job to test if the insert/update process works right. Finally it seems to work - but not really.
    My Testscenario
    1. Load the data from source table about the staging area to data warehouse table: Check - it works!
    2. Change one data record in source table
    3. Load the source table with changed data record once again to staging area: Check - it works!
    4. Load new staging area table with the changed data record to data warehouse table: Check it works! BUT, BUT i can not recognize if it is insert or update operation, then under the design window by jobs execution windows is reported "rows selected 98", Rows inserted" is empty and "rows updated" is empty. So i think works not correct, then my opinion if it works correct it should show be "rows updated" 1.
    What can yet now still be wrong or forgotten? Any ideas?
    *By the way think not 98 rows there is not important if you make an update or insert which performance. It is an example table the right tables have million of records.*
    I look forward for your answers :)

  • Account Update not returning the correct updated object

    I have a process that updates the Owner of the Account.
    The web service call works. I can see the owner change in OnDemand.
    The documentation tells me that the return from this call should be the updated object.
    However when I inspect the AccountUpdate_Output object the OwnerID is null.

    Hi,
    I don't think after update process siebel returns the updated object.
    according to my knowledge it return the status keys.that are
    1.all user keys
    2. all audit fields.
    Dinesh
    CRMIT

  • Tried to buy Aperture 3 and got an error message Aperture can't be installed on "Macintosh HD" because Mac OS X version 10.7.2 or later is required. You can update Mac OS X using Software Update.  Problem is, I had already updated my IMac to Lion OS

    Tried to buy Aperture 3 and got an error message Aperture can’t be installed on “Macintosh HD” because Mac OS X version 10.7.2 or later is required. You can update Mac OS X using Software Update.  Problem is, I had already updated my IMac to Lion OS

    iPhoto 9.3 requires OS X 10.7.4 now. You can use your actual version of iPhoto or upgrade to Lion (or wait to Mountain Lion)

  • Update installation Problems: Code U44M1P7 in Extension Manger 6.0.4 and Illustrator and PS CS6

    Hello,
    After the installation of several updates I find several errors in the error log:
    " Update installation Problems: Code U44M1P7 in Extension Manger 6.0.4 and Illustrator and PS CS6"
    I use a Mac Book Pro with Retina and MAC OSX 10.7.5.
    What is the problem and how can I solve it?
    Best regards
    Frank

    Follow the instruction given at the following link:
    http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • Update objects in prestore

    Hi
    I am using kodo version 3.3.2 and
    I am updating object x and using x prestore method to retrieve object y
    (different type) and update it.
    If the object y does not exist in datastore i am creating a new one and
    storing it.
    The result :
    when object y does not exist in datastore = object x is updated and object
    y is being created.
    when object y exist = only object x is being updated.
    i tried it several times with many additional tests and it seems that no
    updates to existing pc objects can be done in prestore.
    i also checked that
    I am in active transaction,
    I am using the same pm all the way.
    when i moved the code that in the prestore to before the commit, all
    worked properly.
    is there a way to fix it ?
    Thanks
    Dani

    Can you send a test case for this to [email protected]? We
    have recently invalidated the bug.
    Dani wrote:
    Thanks
    What is the target version for the fix ?
    Dani
    Stephen Kim wrote:
    We have logged a bug report for this:
    http://bugzilla.solarmetric.com/show_bug.cgi?id=1162
    Dani wrote:
    Hi
    I am using kodo version 3.3.2 and
    I am updating object x and using x prestore method to retrieve object y
    (different type) and update it.
    If the object y does not exist in datastore i am creating a new one and
    storing it.
    The result :
    when object y does not exist in datastore = object x is updated and object
    y is being created.
    when object y exist = only object x is being updated.
    i tried it several times with many additional tests and it seems that no
    updates to existing pc objects can be done in prestore.
    i also checked that
    I am in active transaction,
    I am using the same pm all the way.
    when i moved the code that in the prestore to before the commit, all
    worked properly.
    is there a way to fix it ?
    Thanks
    Dani
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • HT4561 10.6.8 printing results in paused printers. Have applied 10.6.8 supplemental update but problems remain. Are there other known fixes?

    After applying 10.6.8 Supplemental Update a network printer status turns to paused after a printing attempt. Have deleted and reinstalled printers after the 10.6.8 update but problem reoccurs. I have also installed the Repair10.6.8.dmg package but that suggested fix did not work either. Any other suggestions?

    Wuzradioaman,
    Thanks for your feedback.
    Let me first correct myself. My aunt had bought the MBP from apple store USA for me 1 year ago, but she could have only delivered it to me 2 months ago. Its' a brand new computer. I run OSX Snow Leopard 10.6.7 and keeps warning me to update to 10.6.8. As I said, by the time I have received my computer, I tried to learnd and update it but created problems. So I had to go back to the original version which is 10.6.7. Now, for Mountain Lion I am expected of updating to 10.6.8. I am scared the problem would repeat again.
    What can I do? Did Apple release any patch/update to fix the problem?

  • Apple TV after recent update has problems with Hulu Fall 2014 shows

    In specific, ONCE Season 4 from ABC. The shows play about 15-17 minutes, up to the 2nd commercial - which fails almost immediately, the screen goes black and nothing. (I did find that the SUBTITLES come through - of all things.) If you try and re-start the episode with RESUME PLAYING, you'll just stare at a blank screen for ever.
    I have notified HULU of this issue with their content - other shows (like Agents of Shield) play fine, just not ONCE Season 4.
    Obviously, something is broken and needs to be fixed.
    **** Update ****     The problem seems to be caused by the subtitles. Turning the sub-Titles off seems to work-around the problem.

    i dont have an ipad but ive had problems also, streaming music from my itunes off my macbook to my appleTV so i after seeing all these itunes 11 problems, im starting to think its the new itunes cuz my airplay was working fine until i updated also.

  • Update Termiante Problem in the VF02

    Dear SAP Technical Guru's,
    I am facing Update termiante problem in the VF02 Screen .
    MESSAGE
    Update was terminated
    *System ID.... MRD
    Client....... 100
    User..... PWC
    Transaction.. VF01
    Update key... BE944DDDC5AEF1338261001635B0CD06
    Generated.... 09.07.2008, 14:25:50
    Completed.... 09.07.2008, 14:25:50
    Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC*
    Also When I scroll through the Condition records in the billing screen the conditions are disapperaing.
    I have a Userexit attached to it RV60AFZC
    Please suggest the solutions of the problem.
    regards,
    Amlan Sarkar

    I am attaching the code of the userexits:
    ***INCLUDE RV60AFZC.
    This include is reserved for user modifications                      *
    Forms for invoicing                                                  *
    The name of modification modules should begin with 'ZZ'.             *
          USEREXIT_NUMBER_RANGE_INV_DATE                                 *
          USEREXIT_FILL_VBRK_VBRP                                        *
          FORM USEREXIT_NUMBER_RANGE_INV_DATE                           *
          This userexit can be used to determine the numberranges for   *
          the internal document number. This userexit can be used when  *
          the number_ranger should impact the invoice date via table    *
          TVFKD.                                                        *
          If this userexit is active the USEREXIT_NUMBER_RANGE is not   *
          processed anymore, that means this userexit has priority.     *
          US_RANGE_INTERN - internal number range                       *
          This form is called from form LV60AU02 and LV60AU11           *
    FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
    Example: Number range from TVFK like in standard
    US_RANGE_INTERN = TVFK-NUMKI.
    ENDFORM.
          FORM USEREXIT_FILL_VBRK_VBRP                                  *
          This userexit can be used to fill fields in VBRK and VBRP     *
          Be aware, that at this time the work areas KUAGV KURGV        *
          KUWEV and KUREV are not filled.                               *
          This form is called from FORM VBRK_VBRP_FUELLEN.              *
    FORM USEREXIT_FILL_VBRK_VBRP.
    Example: change Tax country
    VBRK-LANDTX = T001-LAND1.
    *{   INSERT         MRDK900206                                        1
    *if sy-tcode = 'VF01'.
    read table xkomv with key kschl = 'ZTOD'.
    if sy-subrc <> 0.
       clear xkomv.
       xkomv-kschl = 'ZTOD'.
       append xkomv.
    endif.
    *endif.
    *----Commented
    READ TABLE XKOMV WITH KEY KSCHL = 'ZTOD'.
    IF SY-SUBRC <> 0.
       CLEAR XKOMV.
       XKOMV-KSCHL = 'ZTOD'.
       APPEND XKOMV.
    ENDIF.
    *----End of comment
    *}   INSERT
    ENDFORM.
    *eject
    regards,
    Amlan Sarkar

Maybe you are looking for

  • Safari trouble after reinstalling OS X

    Hello people, thanks for looking. I have just reinstalled OS X on my ibook g4- I was having trouble with my cd drive and this has now been resolved, but when I went to open safari to post a response on the ibook discussion page I couldn't get a safar

  • Sync with Online calendars

    I use a number of online calendar applications. Primarily Google Calendar, and Remember the Milk. What I'd like to do, is synchronize with these services without having to go online (the online costs in Australia are insane). Right now, when I put my

  • Internet Explorer Script Error

    I am trying to download the newest Adobe Flash Player and I keep receiving an error. Line: 1 Char: 10823 Error: 'ActionGtbCheck' is undefined Code: 0 URL: http://127.0.0.1:2207/app/_js/adobe.js I have checked my internet options in both IE 8 and Fire

  • Advanced Predefined  Annotations used with EJB3.0

    Hi I want to tune my Application which is consisting of EJB3. I am using ejb3 Annotations on to my source files . I didn't found anything annotation related to pooling , except with jboss specific . Say for example i want to set max beans in pool as

  • Problem updating rows of recordset with repeat region

    Hi, So here's what I'm trying to do - I have a repeat region displaying a series of rows from a recordset. Each row has an "id" value and a "Votes" value. The id value is just an identifier, and the Votes value is the total number of votes. The rows