Document update with DocumentDefinition not working

Hi
I would like to be able to update a PublicObject with new attributes and also reset the class name to which the object belongs.
I have written a small test program (see below) which compiles fine and, according to the APIs should work updating a PublicObject.
(Note that I haven't included the lines where I create a LibraryService and librarySession, but I am doing all that in an earlier part of the code. As input parameters (apart from username and pasword to start the session) I am supplying a path and filename for an existing document in IFS for which I want to do the update.)
Here is the code (note everything below is between try {  } catch { } statements but this is not shown here):
// First I set the Folder Object to the location the PublicObject resides in, then cast a Document Object from the existing file, where m_session is my librarysession.
FolderPathResolver fpr = new FolderPathResolver(m_session);
fpr.setRelativePath(destinationpath);
Folder f = fpr.getCurrentDirectory();
Document currentDoc = (Document) f.findPublicObjectByPath(filename);
// Now I am creating a DocumentDefinition, set the class and an attribute and try to update the document with these new values. The class METADATA exists and is a subclass of DOCUMENT.
String description = "This is a new description";
DocumentDefinition newDocDef = new DocumentDefinition(m_session);
newDocDef.setClassname("METADATA");
newDocDef.setAttribute("DESCRIPTION",AttributeValue.newAttributeValue(description));
currentDoc.update(newDocDef);
When I run this, nothing happens, i.e. the file in question retains its old class association and the description is not changed.
It would be greatly appreciated if someone could help and point out what is wrong with my code as having the ability to update documents is central to what we want to do.
Thanks very much.
Hugo

I had the same problem and solved it by doing this 2 stepa:
1. Run report CRMOST_CREATE_PACKAGE, because after upgrade, package $WS_BOL_GEN is missing.
2. Run report CRMOST_GENERATION to generate webservice again.
Regards.

Similar Messages

  • Document templates with reference not working anymore with CRM2007 on SP7

    Since we upgraded our CRM system(v 2007) to SP7 we are facing a serious problem with our document templates. The document templates do not contain any reference anymore (e.g. BP name and address details). This issue is a showstopper for the SP upgrade to go live in production.
    We have taken the following actions to get it work again but all without any success:
    - We have regenerated the webservice again (CRMOST_GENERATION);
    - Created the webservice again and generate it (CRMOST_GENERATION);
    - Run CRMOST_GENSTATUS_MONITOR for correponding webservice: status OK
        -> when debugging /CRMOST/Z_D007_READ I see in table LT_MESSAGES: "Invalid mainobject: GDCOIRoot
    Also, we investigated SAP note: 1329961 and notes related to CRM-BF-COM in SAPKU70007.
    It looks like a bug in the new programming. When using standard SAP mainobject GDCOI no reference is taking into account anymore.
    To visualize the issue for you, I will describe for you the steps how we can reproduce the issue:
    - Within Account ID we identify an account and confirm account;
    - Now when we create a service ticket we can enter some additional information in fields;
    - We save the ticket and select the "Create a new letter" icon and select a document template;
    - Now Word with XML is openened but WITHOUT taking any reference from confirmed account and service ticket.
    I can not imagine we are the only customer with CRM2007 on SP7 and is using document templates who is facing this issue.
    I really would appreciate it if anyone could help us in any way.
    Regards,
    Harrië

    I had the same problem and solved it by doing this 2 stepa:
    1. Run report CRMOST_CREATE_PACKAGE, because after upgrade, package $WS_BOL_GEN is missing.
    2. Run report CRMOST_GENERATION to generate webservice again.
    Regards.

  • My documents to go is not working with my ipad. Is in the same wi-fi net

    my documents to go is not working with my ipad. Is in the same wi-fi net. the intrener is ok, but i can to do synchronization?

    I just synced mine and it worked just fine. I have an iPad 2 and the desktop version is running on a win 8 laptop.
    Have you tried to unpair and re-pair your device? I've had to do that upon occasion.

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Update Panel is not working browsers other than IE

    In SharePoint 2013, Update Panel is not working for firefox, chrome etc.

    Hi,
    From your description, my understanding is that you use
    <asp:UpdatePanel>tag in your code, but it does not work well in browsers except
    IE.
    I have test
    <asp:UpdatePanel>tag with code below, and it works well in IE, chrome, Firefox
    as the screenshot.
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
    <ContentTemplate>
    <asp:Label ID="lbl" runat="server" Text="Loaded" Visible="true"></asp:Label>
    <asp:Button ID="btn" runat="server" OnClick="btn_Click"/>
    </ContentTemplate>
    </asp:UpdatePanel>
    protected void btn_Click(object sender, EventArgs e)
    lbl.Text = "BUTTON CLICKED !";
    lbl.Visible = true;
    The screenshot below is my result(the first is result in Chrome, second is in Firefox and last is in IE):
    And you also could refer to this article:
    http://sharepoint.stackexchange.com/questions/72928/update-panel-not-working-in-firefox-2013
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Update debugger is not working

    Hi All,
    My problem is "Update debugger is not working" is not working.
    In VA02,  I am creating a EDI output type, before saving it i am going into debug mode activating the 'Update Debugger'.
    But after that a message is coming as 'Update debugging has been triggered' but debugger screen is not coming up.
    Please let me if you have inputs on this.
    Thanks
    Satyamkumar Jha

    >
    Satyamkumar Jha wrote:
    > Hi Saravraj ,
    >
    > Even if 1 session is opened then also it is not going for update debugging.
    >
    > Thanks
    > Satyam
    Did you check if a COMMIT statement is getting triggered(you can do that by placing a break point in the debugger at the statement COMMIT)? Click on F5 once the control reaches COMMIT statment and wait for a new session to
    get opened for debugging.
    Not sure, about the debugger that you are using(classical/New),  lately, I have faced issues with update debugging while using new debugger, it would be a good idea to cross-check in classical debugger.
    -Rajesh.

  • HT4972 My ipad 1 is stuck on IOS 4 as the IOS 5 update instructions do not work. When I use itunes update the software looks for an update file and the apple site doesn't have one!

    My ipad 1 is stuck on IOS 4 as these IOS 5 update instructions do not work. When I use itunes update the software looks for an IOS 5 software update file and the apple site doesn't seem have one anywhere!

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • How do I uninstall the iPhoto update which does not work on maverick?

    How do I uninstall the iphoto update which does not work. ie it tells me my library is locked out and the recommended action by apple does not open the phot library first aid. ? i need to go back to the old iphoto.

    Terence, I was trying a way to message you directly - jumping on a recent thread seemed to be the only way (sorry, DEW45). 
    Terence, you seem to be the foremost expert on apeture and iphoto and have helped me many times in the past (thanks).  I have a question that you may be able to help with (anyone also feel free to take a stab).  I use blogger to upload my photos and host my blog (www.sippingespresso.com).  I spend hours organzing and editing photos - namely, I will enhance and sometimes alter an image in Apeture.  It always saves over the orginal file (at least for viewing purposes), which is fine by me.  But then when I go to upload the photos onto blogger it seems to always pull my dull, original image.  Obviously, I want the newer, bright, enhanced photo.
    I'm one step away from importing them, dragging them out of iphoto and into Photoshop, then editing the files and dragging them back into iphoto, deleting the originals and uploading from there.  There HAS to be a better way - please help!!  I've already posted far too many boring images without the beauty of Apeture's "auto enhance".
    Thanks in advance, Terence or anyone else. 

  • App store, Safari, software updates, icloud, do not work in Mavericks 10.9 using a proxy server

    App store, Safari, software updates, icloud, do not work in Mavericks 10.9. these problems are interrelated I am sure. Apple apps were working fine in 10.8.5 I could do software updates through a proxy server using password authentication. I reinstalled a new system 10.9 on another partition and it won't let me use Safari or update software using a proxy server. Firefox works fine (I am using it to post). I am very disappointed that this wasn not fully tested BEFORE releasing Mavericks. Any solutions would be greatly appreciated.

    I had this problem myself.
    Checked the system log with Console, and I found the entry:-
    Nov 11 11:16:41 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    For some unknown reason, Mavericks seems to be looking in the System keychain, when these credentials are actually held in the Login keychain.
    So, I tried "Copy & Paste"  - copying the https user name & password from the Login keychain and pasting into the System keychain, which worked but it's not quite as straightforward as I initially thought.
    Pasting into the System Keychain was, I found a not-very-intuitive process:
    Having opened your Login Keychain, click once on the item to be copied and when it's highlighted, select "Copy" from the Edit menu or, of course, cmd+c.
    Select the System Keychain:- DO NOT CLICK THE PADLOCK IN THE TOP LEFT TO UNLOCK IT.
    From the Edit menu, select "Paste" or cmd+v.
    You will then get a dialogue box,, enter your administrator's password and select "Modify Keychain" or just hit return, as it's the default entry.
    I found a restart was in order before it recognised everything and would accept https pages without alert boxes, but YMMV.
    Funnily enough - and this is where it seems counter-intuitive, if you do click on the padlock and unlock the System Keychain, "Paste" is greyed out in the Edit menu and cmd+v has no effect.
    Exactly the opposite to what I'd expect..

  • 3?'s: Message today warning lack of memory when using Word (files in Documents) something about "idisc not working" 2. Message week ago "Files not being backed up to Time Capsule"; 3. When using Mac Mail I'm prompted for password but none work TKS - J

    3 ?'s:
    1  Message today warning lack of memory when using Word (files in Documents) something about "idisc not working"
    2. Message week ago "Files not being backed up to Time Capsule";                                                                                                                                             
    3. When using Mac Mail I'm prompted for password but none work
    Thanks - J

    Thanks Allan for your quick response to my amateur questions.
    Allan:     I'm running version Mac OS X Version 10.6.8     PS Processor is 2.4 GHz Intel core 15 
    Memory  4 gb  1067   MHz  DDr3  TN And @ 1983-2011 Apple Inc.
    I just "Updated Software" as prompted.
    Thanks for helping me!    - John Garrett
    PS.
    Hardware Overview:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro6,2
      Processor Name:          Intel Core i5
      Processor Speed:          2.4 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache (per core):          256 KB
      L3 Cache:          3 MB
      Memory:          4 GB
      Processor Interconnect Speed:          4.8 GT/s
      Boot ROM Version:          MBP61.0057.B0C
      SMC Version (system):          1.58f17
      Serial Number (system):          W8*****AGU
      Hardware UUID:          *****
      Sudden Motion Sensor:
      State:          Enabled
    <Edited By Host>

  • Looks like updates via the App. store update option is not working again. Comments?

    Looks like updates via the App. store update option is not working again. Comments?

    There are a number of other threads from people reporting a problem with a blank Updates tab in the App Store app - it looks like there is a problem at Apple's end which they need to fix.
    Some posts are suggesting that you if you go into the Purchased tab in the App Store app you might be able to update the apps from there, though you will need to scroll through the list to find those with updates and individually update them.

  • After doing a widows update itunes will not work at all

    after doing a widows update itunes will not work at all

    hiya!
    I get the itunes has encounterd a problem and needs to close, sorry for the inconvenience error, no specific error number. I do not have QT installed,
    not having QT installed is what will be causing your itunes error message at the moment. let's try a careful standalone QT 7.1 install.
    download and save a copy of the QT 7.1 standalone installer to your hard drive. (we'll run the install from there rather than online.) switch off antivirus and antispyware applications prior to the install.
    Quicktime 7.1 Standalone Installer
    if that install goes through okay, does your itunes launch properly again?
    (if you get an error message on the QT standalone reinstall, let us know what it says. include error message numbers if you're getting any.)
    love, b

  • Axis bank net secure with webpin not working on ipad2

    Hi,
    Axis bank net secure with webpin not working on ipad2
    Lt me know how to proceed

    Try using their App:
    https://itunes.apple.com/in/app/axis-bank-mobile-application/id517266358?mt=8

  • Since installing Yosemite, Airplay with Freebox not working

    Since installing Yosemite, Airplay with Freebox not working
    With Maverick Airplay working well

    If you haven't done so already, try resetting the printing system.
    OS X Mavericks: Reset the printing system  also Yosemite
    Try deleting the printer and scanner and add them back.
    Also try Applications/Image Capture to see if it can find the printer and scanner.

  • Wifi connection with 4s not working after installing new software ios6

    wifi connection with 4s not working after installing ios 6.

    Go to Settings > WiFi > Select your network and hit the right arrow to "Forget Network"
    Then go to Settings > General > Reset Network Settings  and try connecting again when the phone restarts.

Maybe you are looking for

  • How can i change the settings to have a prompt massage when I want to download a duplicate file

    When I download a file, if a same file name already exists in the same download folder, firefox downloads the file and renames it by adding numeric (1) to the file name. I want the firebox to give me a prompt when same file already exist, rather than

  • ITunes has stopped working/SyncServer has stooped working

    iTunes boots up and about 5-10 seconds later I receive the iTunes has stopped working message. When I click on the "Check online for solution and close the program" button it tells me that SQLite 3 has stopped working properly and a new version is av

  • Mail report question

    Hi there, This may be a crazt question but I was curious if there was a way to get information from apple mail in report format. I would like to create report showing waht folder the email is in. My reason for doing this I seem tobe missing emails. 

  • My Photo Booth is hazey and not bright anymore

    I am having a problem with the PhotoBooth, it is very fogey and not clear, at the upper right is very little bright spot left...Would appreciate someone who can help with this issue..

  • "Bing" has become default search engin, want "Google" back, how 2 do it.

    I have "google" as my default search engine in IE preferences, USED to be in firefox also, a few days ago, "bing" shows up as search engine. I cannot find "bing" under ANY program stuff anywhere to remove it. What happened, and how do I get "google"