New coverage line created when update item instance

Hi,
Does anyone know why when I'm performing update item instance (CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE) somehow it will create a new coverage/contract record?
This item initially is like to a coverage/contract but after perform update item instance it somehow create a new coverage/contract which is identical in most of the column info.
Could someone let me know why and how CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE would relate to creating coverage/contract ?
Thanks

Todd
The issue seems to because this:
x_instance_rec.inventory_item_id := ib_rec3.inventory_item_id;
You are selecting the item id from your staging table. But the serial number in the csi_item_instances is associated with the instance is a different item id than ib_rec3.inventory_item_id. Hence this error. You cannot change the item in the IB once the instance is created.
You have two choices: comment this out or change the inventory_item_id in staging table to match with the csi_item_instances.
Also a lot depends on what is your serial number uniqueness. If you are using the same serial number for two different items (uniqueness with item_Id) you need to be careful which one you are picking (based on serial number).
Thanks
Nagamohan

Similar Messages

  • How adl lines created when expenditure item is splitted

    We are using Oracle Grants Accounting module that is built on top of Projects. When expenditure item is splitted in Expenditure Inquiry form, there are lines created in pa_expenditure_items_all table and gms_award_distributions(ADL) table. Does anyone know how the ADL lines are created by the Expenditure Inquiry form? We try to create a custom concurrent program to do the split without using Expenditure Inquiry form. Thanks a lot.

    Look in GMS.pld ... search by PAXTREPE (Expendityre inquiry form name) in GMS.pld.
    I am sure u will get logic thr.

  • How to update item instance in oracle install base?

    Hi,
    I have a doubt in updating item instance in oracle install base.
    I am using a API named csi_item_instance_pub.update_item_instance for this. I want to update Party OWNER, party contacts, Current location,Install location, bill_to address,ship_to address..etc. When i try to update party owner, it is updating in csi_i_parties(col:party_id) as well as updating in csi_item_instance(owner_party_id). In csi_item_instance table,owner_party_id column is updated. but corresponding owner_party_account_id is not changed. I have given party_account_id to update in csi_ip_accounts table. It has changed in csi_ip_accounts table. But in csi_item_instance table(owner_party_account_id) is not changing. Can anybody help on how to change owner_party_account_id in csi_item_instance table please? Thanks in advance.
    --Muruga
    Edited by: Murugeshapps on Jul 1, 2009 12:07 AM

    Out of the box, I don't think that there is any API or program to delete the records from csi_item_instances because deleting IB record affects many modules (like Inventory, Order, Service Contracts etc). IB records should be expired if they are created incorrectly and you can run Transaction History Purge program to delete all history records related to that item.
    Thanks
    Shree

  • The new event are created when i import photo in the top. Before they where put in the end. All my event are classified. Where i can set the event at the end ? Thank's.

    The new event are created when i import photo in the top.
    Before they where put in the end.
    All my event (around 600) are classified on the top the old and a the end the new.
    Where i can set the event at the end ?
    Thank's.

    View menu  ==> sort events
    LN

  • Schedule and Items program is not picking the new Billing lines created PN

    Hi Gurus,
    I am using version 11.5.10. I am populating the data into Property manager billing lines of lease thru API.
    Once the Lines are inserted I am calling the Schedule and items program to for authorizatio.
    My program is not picking up lines created thru API, I am trying copying the same line and inserting in billing tab and it works fine.
    Looking forward to your suggestion/solution....

    Hi,
    I don't know but I think you call of the Schedule and items program is in a new session.
    Then you must commit the data before you call the Schedule and items program

  • No change log is created when updating the customer master using LSMW

    Hi Gurus,
         I am a bit confused on why no change log is created when I use the LSMW to update the customer master. What I update is the customer partner of the customers. For example I have a sold-to 1000 then a customer representative (Z3) 50001, now when I use the LSMW to change the customer representative to 50002 it is correctly updated however no change log is found if you check for the changes on that specific customer. This is a bother for me since I want to send all the customer changes through IDOC and the processing needs to access the change log.
    Thank you.

    Hello,
    What process are you using object, BAPI, etc.
    Regards
    Waza

  • Stitch lines created when transparency flattened in PDF/X1a export from ID

    Has there been any sure fire methods to avoid the digital stitch lines created in a PDF/X-1a due to transparency flattening during export from InDesign? Currently using CC and have done the usual things in an attempt to avoid the lines such as all text above transparent objects on a separate layer and 'Clip-Complex-Region' on export.
    Thanks in Advance!

    Hi Tony ,
    This seems to be an InDesign issue .
    Please report the same on the below mentioned  link .
    InDesign
    Regards
    Sukrit Dhingra

  • Strange red line created when generating pdf from illustraot , why? need help to remove this

    I have created file in illustrator (CS2 and CS5 no matter which one), then saved it as pdf file.
    when I open the pdfs, there is a red line around the slides and I would like to remove it. It's annoying when viewing the slides.
    How do I do this?

    Yes, I would try to create a new master document and import the separate files. Even if you have saved all files to CS5.5 spec, there might still be some lingering meta data from the previous version and a fresh import might at least reveal such conflicts or ideally provide a clean slate by dismissing this outdated legacy stuff on import. If you are happy with CS5.5 and everything works, you can get rid of CS3, but I recommend to keep it around, even if you don't use it actively (maening löeave it installed, only deactivate it). Especially the CS3 installer is a fragile creature and a uninstall gone wrong might cause you more trouble than just letting it catch dust on your harddrive. See this article and the other ones related to it on my site for some considerations.
    Mylenium

  • ITunes DID recognize new iPad mini, error when updating, now doesn't. Please help. I have a 700 dollar paperweight now.

    Today I bought a brand new iPad mini 2, 32 gb. First, I backed up my old ipad mini to my hard drive. Then, I updated iTunes to the newest version. Then, I plugged in the new iPad mini, went through the set up, iTunes was working fine. I registered the iPad, then it suggested i update the iOS on the iPad. This is where things went south. After a few minutes, it stated "cannot update iOS 7 at this time" or something to that effect. Since that point, iTunes will not recognize the iPad. The iPad shows the "connect to iTunes" screen. When I plug it in, I hear the tone suggesting a new device is connected, but nothing happens. I've tried it in DFU mode, no results. I've tried putting it in recovery mode, nothing happens, just the same screen. I've uninstalled iTunes and reinstalled it, following every step suggested through this site/apple support. I even uninstalled and installed an older version of iTunes (10.7) but same result. I've followed all troubleshooting steps, and nothing is working, so please don't suggest the same olf "iOS: Device not recognized in iTunes for Windows" page.
    What should I do? Do I have to take this to the geniuses at the store? Will they even be able to help without having access to my computer?

    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iTunes for Windows: iTunes can’t contact the iPhone, iPad, or iPod software update server
    http://support.apple.com/kb/ts1814
    iTunes for Windows: Device Sync Tests
    http://support.apple.com/kb/HT4235
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    http://support.apple.com/kb/ts4062
    iOS: “Not enough free space” alert when trying to sync
    http://support.apple.com/kb/ts1503
    You may need to delete iTunes on your computer and then reinstall.
    How To Completely Uninstall and Remove All Traces of iTunes
    http://zardozz.com/zz/2008/04/how-to-completely-uninstall-and-remove-all-traces- of-itunes.html/
     Cheers, Tom

  • Item does not exist error when updating item

    Hi,
    I have a list called "Deal" and I have a ItemUpdated event to update the item permission based on a list field "Owner".
    I find the code run well with site collection administrator account. If I use a regular user account to edit the item, it throws "Item does not exist" error after clicking save button. But the item is actually updated.
    I run the code under debug mode and it does not throw any exception. But the page shows "Item doex not exist" error.
    If I retract the solution, the item can be updated normally without any error.
    My code and the error message:
    public override void ItemUpdated(SPItemEventProperties properties)
    if (properties.ListTitle.Equals("Deal"))
    base.ItemUpdated(properties);
    try
    SPSecurity.RunWithElevatedPrivileges(delegate
    using (SPSite elevatedSite = new SPSite(properties.SiteId))
    using (SPWeb elevatedWeb = elevatedSite.OpenWeb())
    SPList elevatedList = elevatedWeb.Lists[properties.ListId];
    SPListItem elevatedListItem = elevatedList.Items.GetItemById(properties.ListItem.ID);
    // Get Lead owner
    SPFieldUserValue uValue = (SPFieldUserValue)elevatedListItem.Fields["Owner"].GetFieldValue(elevatedListItem["Owner"].ToString());
    SPUser owner = uValue.User;
    bool oldValue = elevatedWeb.AllowUnsafeUpdates;
    elevatedWeb.AllowUnsafeUpdates = true;
    elevatedListItem.ResetRoleInheritance();
    // Break inheritance and clear permissions on list item
    if (!properties.ListItem.HasUniqueRoleAssignments)
    elevatedListItem.BreakRoleInheritance(false);
    // Add permissions for current user
    this.SetPermissionsForUser(elevatedWeb, elevatedListItem, owner, "LeadsOwnerPermission");
    this.EventFiringEnabled = false;
    elevatedListItem.SystemUpdate();
    this.EventFiringEnabled = true;
    elevatedWeb.AllowUnsafeUpdates = oldValue;
    catch (Exception ex)
    COMException (0x81020016): Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.<nativehr>0x81020016</nativehr><nativestack></nativestack>]
    Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +0
    Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +256
    [SPException: Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.]
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) +24356360
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +4064980
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +378
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +24
    Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +727
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

    Can you try removing user permissions iteratively.
    The sample code will look like this.
    //get usernames
    string tempFieldValue = listItem["Assigned To"].ToString();
    string[] userNameArray = listItem["Assigned To"].ToString().Split(';');
    //remove permissions first
    web.AllowUnsafeUpdates = true;
    listItem.BreakRoleInheritance(false);
    SPRoleAssignmentCollection raCollection = listItem.RoleAssignments;
    //remove exisiting permissions one by one
    for (int a = raCollection.Count - 1; a >= 0; a--)
    raCollection.Remove(a);
    for (int i = 1; i < userNameArray.Length; i++)
    tempFieldValue = userNameArray[i].Replace("#", "");
    userName = web.AllUsers[tempFieldValue];
    toAddress = userName.Email;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    //EMAIL USER
    bool result = SPUtility.SendEmail(web, appendHtmlTag, htmlEncode, toAddress, subject, message);
    //PERMISSIONS
    //grant permissions for specific list item
    SPRoleDefinition roleDefintion = web.RoleDefinitions.GetByType(SPRoleType.Contributor);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(userName);
    roleAssignment.RoleDefinitionBindings.Add(roleDefintion);
    listItem.RoleAssignments.Add(roleAssignment);
    listItem.Update();
    i++;
    jaik

  • DTW Error when updating items

    I'm trying to update all items with pricing and min/max.
    DTW returns all in error:
    "Server violation of PRIMARY KEY constraint "OITW" PRIMARY
    cannot insert duplicate key in object "OITW"
    Any help would be appreciated.
    regards,
    m. Jenkins

    Hi,
    Were your objects Not Updated or Not Created?
    I encountered the same error. I'm currently doing a second import with no rollback. I think the problem is specific to a field.  I will troubleshoot and update with any positive findings.
    Thanks!
    Francois

  • New Layer Being Created When Timeline Effect Added

    I am working on a Flash file in which I am adding a Timeline
    Effect (5 frame fade out). Recently, instead of the transition
    being applied to the layer, in the frame length specified, Flash
    adds another layer with the standard 30 frames and it deletes the
    content from the 5 frames where I'm trying to add the fade out. It
    doesn't always do this. I had already successfully created a couple
    of fade-ins at the beginning of the timeline, but once it starts
    adding and deleting this stuff, it never goes back to normal. On
    the layer in question, I have a keyframe with a graphic, the
    graphic is stationary for 20 frames, then I inserted another
    keyframe and tried to apply the Timeline Effect beginning there.
    Help!!

    Change contentDelivery* of the popup to lazyUncached*. Default is lazy .Refer
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_popup.html
    Also in addition , you might need to refresh the region (try the above standalone 1st) when you invoke the popup. Use refresh="ifNeeded" in the taskFlowBinding alongwith change of some input param . See why and more here
    http://www.adftips.com/2010/11/adf-ui-region-interaction-interaction.html
    Example simialr to your usecase here -
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/53-taskflow-in-popup-169196.pdf
    Edited by: Sudipto Desmukh on May 9, 2012 5:20 PM

  • Updating to new iTunes, error message when updated and restarted computer.. trying to uninstall, wont work.

    I updated my iTunes on my windows 7 laptop. I restarted the computer to relaunch iTunes and get it back running and it said that there was an error updating. Trying to uninstall and reinstall,comp wont uninstall programs -.- what do?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"? Ones with a green checkmark are solved.

  • New user account created when transferring  iTunes

    Ive just succeeded in transferring my active iTunes from my XP PC to my Mac Book using Migration Assistant however, it has been placed in a new User Account. I don't really want another User Account and so need to know if there is anyway I can merge the User Accounts so that I can use my main iTunes account in my main User Account?

    See especially step 9 of "Use Migration Assistant after your Mac has started up" here:
    http://support.apple.com/kb/ht4796
    This deals with getting the information into the correct user account.

  • Inserting type of Number when updating database.

    Hi,
    I have what seems to me like a simple problem, but I just do not know the way to solve it. I have a page which the user creates accounts for new users in the database. When the new account is created, it updates the Users table in the database and then also the Users_In_Roles table which assigns each user to a role using that user's ID number and the ID for the role they are being assigned to. In my app module method, I have an if statement that checks to see if the current logged in user is of role ID 1 or 2 using the ExternalContext.isUserInRole() method. If the logged in user is 1, the user account being created is automatically set to 2, and if the logged in user is 2, the created account is automatically set to 3, in other words, the new user is set to one role level below the user creating them.
    Here is my problem. In the if statement that checks the role of the logged in user, I'm setting a variable roleID to the number of the role I want the new user to be, however when I try to pass this number into the Users_In_Roles table, I get an error since the roleID column is a data type of Number, I can not pass an Integer type variable to that column. I've tried declaring the roleID variable to type Number, but then I can't set it to 2 or 3 in the If statement because it won't accept integers. Does anyone know how I can set the roleID variable to the correct "Number" so that I can pass it into the table?
    Thanks in advance.

    Use the Number(int i) constructor. that is, instead of setting the attribute to
    yourIntValue
    set the attribute to
    new Number(yourIntValue)

Maybe you are looking for

  • Auto Ken Burns effect changes each time I preview.

    I like most of the auto KB effect, but sometimes it just pans the person's head right off the screen. I've found that each time I preview, however, the auto KB settings are different, i.e., the pan direction and zoom levels seem to be randomly genera

  • Shuffle wont update on windows

    Hi i just bought my shuffle today...i can connect it to my computer fine but as soon as i try to move data onto it i get an unknown error saying that i cant write to or get data from the ipod. I have uninstalled itunes 7.0.2, reinstalled it, rebooted

  • Import Folder With Songs Without Show Them In Albums

    Good day to you all I have 2 qustions i would like to ask ( sorry about my english) 1. I have a folder i made on my desktop with many songs from lots of artists. i want to make a playlist with all of this songs. i can drag all of them to the playlist

  • SAP Screen Personas: Restgui not working _ URGENT

    Hi Expert, I am having trouble configuring SAP Screen Personas, I have done all the configuration provided in the Personas Config Guide. Please see blew: 1. Activated all the following services in SICF    /sap/persos_app    /sap/bc/bsp/persos/mainapp

  • After update to IOS 7 there is no prompting on the lockscreen of how many digits I have entered allready

    Hi, after I have updated my IPhone 4 from IOS 6 to IOS 7.0.2 there is no propting of the entered PIN digits. On the Product videos the propting should be shown above the keypad on the lockscreen but only "Code eingeben" is hown there. Any Ideas? I ha