HELP! Random errors creating SAP documents via Add-On.

Hi,
We have a very odd situation.  Our add-on has been running for 4 years.  During this time, we've made several enhancements.  In the last couple of weeks, users are getting random errors during the code that posts SAP documents.  The error doesn't occur creating the same documents everytime but the error message is always the same.  I cannot get the add-on to crash in the development environment.  Furthermore, once a crash occurs, the users can immediately try again and the document will then be created successfully so it's baffling.  We thought we'd tracked it down to the fact that when restarting a users Windows session, we were retaining the user profile files that SAP creates to store the SQL Server settings.  We found that the problem went away once we started deleting these files upon logout, but, the problem just got less frequent, it didn't completely go away.  Here is the error information:
Error: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
Source: Interop.SAPbobsCOM
Stack Trace:    at SAPbobsCOM.FieldClass.set_Value(Object pVal)
I should say we've also uninstalled and reinstalled the DI API but that didn't help either.  We are running SAP 2007A SP01 P05 with users logging into Windows Server 2003 via Citrix.  Also note, this error is only occuring with documents being created through the add-on, no crashes occur creating documents direclty through SAP front end.
Thanks very much,
David

Hello David.
I have the exatly the same situation at Customer, only in 2007A version.
The Addon has been developed for 6.5 and was running perfect in last 4 years. After upgrade,  the users got the random messages. and the user try it again can sucessfully post the documents. Only at this company.
There is no citrix, and virtual server, onyl W2003 (32bit:) behind a firewall. (MS SQL 2005 SP2)
In my sample, and your error message is the common: YOu got the message when you are using User Defined Field in marketing documents.
I have found a note about change "coding" of update of User Defined Fields, it was not helped.
Note number: 1235603
Major change:
+
This issue results from using the following code:
SAPbobsCOM.Field f = oPOrders.Lines.UserFields.Fields.Item("U_test")
Instead of the above syntax, you should use the following:
SAPbobsCOM.ProductionOrders_Lines f1 = oPOrders.Lines
SAPbobsCOM.Field  f =  f1.UserFields.Fields.Item("U_test")
Using the suggested syntax lets you perform the operation correctly. The issue does not happen with a regular connection.
+
In Small DB-s i was unbale to reproduce this issue, but in that specific customer (>40GB) i always trouble with this.
My experience,
- that i have created some custom indexes over marketing documents, and the error message was not appears in frequently.
- changed 32 SQL Server Memory Allocation to EWA, the error message was not appears in frequently.
I think this is an SQL server issue.
I am intrested in the solution, SAP Support Center was unable to find any solution for this issue.
Regards,
János Nagy

Similar Messages

  • Error creating WEBI document in InfoView

    Hey all,
    I'm hoping there's someone out there that can help me with the issue I'm currently experiencing when trying to create a new WEBI document from within InfoView. 
    Environment: Windows Server 2003 SP2, BOE XIR3.1SP3, CR2008, MS SQL Server 2005
    Using the Designer I've created as simple a universe as I believe you can... ODBC connection to DB, one table, and no modifications to object properties (ie. field names, descriptions, etc.).  I saved the Universe in the Enterprise repository (have also tried saving to local disk) and exported the Universe.
    In the CMC I granted schedule rights to the Universe for UserA.
    When I logon to InfoView as UserA I am able to select the New | Web Intelligence menu option on the Document List screen and am presented with the Universe selection screen.  I select the universe created in the designer and the system attempts to create a new WEBI document.  It gets to the point where it is launching new document and I received the error below...
        An internal error occured while calling 'createDocument' API. (Error: ERR_WIS_30270)
    The preferences for WEBI in InfoView are:  View Format - Web;  Creation/Edit Tool - Advanced.
    Now for a couple of twists...
    1) When I first created a single table universe after the issue first appeared on a more complex universe, I was able to create new WEBI documents without issue.  When I tried adding an additional table to the simple universe I experienced the issue above and have been unsuccessful ever since even with new single table universes.
    2) If I logon to InfoView as an administrator (or make UserA an administrator) I can create new WEBI documents with no problems on any of my universes (simple or complex).
    I have read other posts related to this error and have tried the suggestions that have been put forth to no avail.  It appears to be an issue with security settings but I have been unsuccessful in identifying what those settings might be.  If anyone has any suggestions or can provide a breakdown of the security settings required to give users the necessary access to create WEBI documents from universes I would be grateful.
    As a side point, I have implemented complex universes at other clients without this issue appearing at other sites.
    Thanks!

    Hi,
    May be you can try with full control rights on universe and connection.After that check yor are getting error or not.this issue with one user or with all users except administrator.
    Thanks,
    Amit

  • Error creating TFSBuild.proj via Create Ant Build Configuration Wizard in Eclipse Team Explorer

    In Eclipse Team Explorer, when I try to create TFSBuild.proj via Create Ant Build Configuration Wizard, when I click Finish, I get this error:
    Error creating build configuration files: Invalid server path or the archive with the same name already exists on the server.
    I also get this error in the Console, plus a couple other messages:
    Specified argument was out of the range of valid values.
    Parameter name: pathLength
    Error creating build configuration files: Invalid server path or the archive with the same name already exists on the server.
    I am following the instructions here:
    https://www.visualstudio.com/en-us/setup-ci-build-in-eclipse.aspx
    I have already successfully created build definitions and queued and run builds using Visual Studio. I'm using that same build agent.
    Any ideas?
    By the way, I'm using Visual Studio Online with an on-premises build agent.
    Update: I also tried to delete my builds, delete the build agent, create a new build agent - still same problem.
    I tried this on another dev machine with no visual studio or workspaces previously installed - still same problem.
    I tried creating the version control folder where it was trying to store TFSBuild.proj. I tried using a build.xml that was in a shorter path. Still same problem.

    tomasr2 good evening.
    I believe the problem is the same that occurs when we have the name of the files in the build nomento exceeding 250 characters
    looking full name of TFSBuild.prj file (file directories +) with how many characters are getting?
    For example: $ / Project1 / Solution1 / BuildDefinition1 / TFSBuild.prj => 50 characters.
    I hope it helps.
    Att
    Guilherme Silva Cardoso

  • Error creating accounting document for a credit note

    Hi All,
    I am facing an issue while creating an accounting document for the credit note created.
    The scenario is as follows:
    Created a credit memo --> created credit note --> create accounting document
    While creating accounting document, i'm getting an error message as 'The G/L account XXXXXXXX requires an assignement to CO object'.
    Please let me know why i'm getting this error and how to overcome this issue.
    Thanks,
    Anil Kumar

    While creating accounting document,
      i'm getting an error message
    First of all, I am not clear on your above statement as in normal circumstances, once you generate a credit memo, in bacground an accounting document will also be generated.
    In your case, I believe while saving the credit memo, system throws the error to maintain CO object in which case, do the following:-
    Go to TCode KA02 enter the controlling area, give the G/L acoount No and click on Master data tab.  There  select  "Default Acc Assgmnt" tab  and enter Cost centr and save.
    Next Go to FS00, input the G/L Account and click on Edit Cost Element on top.  There click on Basic Data and for the field CElem category, maintain the required numeric value.  Now select the tab Default Acct Assgnmt and there maintain the required cost center and save.
    thanks
    G. Lakshmipathi

  • Create PDF document via Acrobat OLE/Automation?

    Hi,
    Is it possible to utilize the OLE/Automation feature of Acrobat Professional, instead of Acrobat SDK, to create a PDF document and add objects into it?
    Thanks

    OLE is a part of the SDK, not something different from it. 
    To use OLE you need the SDK as that is where it is documented.
    OLE is very limited but it can run Acrobat JavaScript. Even then, it probably won't do what you want. You can add form fields and annotations but not page content.

  • Error creating sales order via Interaction Center

    While creating a sales order via Interaction Center, I am getting an error "Error while creating member activity for order 5129793", as a result the points are not getting accrued for the account.
    Can anyone please help? I am very new to this
    Regards,
    Harsh

    Hi,
    Check the partner determination profile in spro for this activity. Try to use a standard profile and see what happens.
    Best regards,
    Caíque Escaler

  • Error creating sap db connection

    I am getting an error when I try to create a connection within my portal site to a sap r3 system. It happens as soon as I click on the tab.
    The server shuts down and in the logs I get the following error:  Warning         R3_DATASOURCE Data source is not initialized
    We are running win2k, sql2k, Portal 6.2 patch 4 hotfix 4.
    jdk1.3.1_10
    Everything else seems to be working fine.
    Keith

    Hi there,
    any errors on the server side (indexserver trace) ?
    regards,
    Lars

  • 2007A PL8 UOMs are missing when creating a document via DI-API

    If a document is created via DI-API the UOMs are missing.
    The behavior till PL8 was that UOMs were taken from the item master when creating a new document.
    Regards

    This is a confirmed Bug. The DI-Api always uses the Inventory UoM. As work around you have to put the Sales UoM into the Inventory UoM.
    I hope they we will fix this soon.
    Regards

  • Strange error, when query document via fn:doc by providing absolute path

    I do have put db file on /share/apps/servicesf
    [root@frontend bin]# ls /share/apps/servicesf
    /share/apps/servicesf
    [root@frontend bin]# du -smh /share/apps/servicesf
    1.7M /share/apps/servicesf
    [root@frontend bin]# ./dbxml
    dbxml> query doc("dbxml:////share/apps/servicesf/processor.xconf")//*
    stdin:1: query failed, Error: Cannot resolve container: /share/apps/servicesf. Container not open and auto-open is not enabled. Container may not exist.
    but it says "Cannot resolve container: /share/apps/servicesf." why
    Edited by: zws on 2009-11-10 上午12:36

    This is the way to access documents outside container.
    I am intended to access the document that always put into the container.
    In the above example, /share/apps/servicesf is my container, and
    processor.xconf is the document I put into the container in my program.

  • Powershell Script to create "custom" Document Library

    I have a powershell script which creates a Document Library for every user in AD.
    This works, but rather than using the default Document Library I want it use a custom Document Library.  However this isnt working.
    My script to create the default Document Library is this...
    [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
    $site = new-object Microsoft.SharePoint.SPSite("http://servername/sitename");
    $siteweb = $site.OpenWeb();
    $webs = $siteweb.Webs;
    $strFilter = "(&(objectCategory=User)(name=accountname))"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = $strFilter
    $objSearcher.SearchScope = "Subtree"
    $colProplist = "samaccountname"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults)
    $objItem = $objResult.Properties; $objItem.samaccountname
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    $listId = $siteweb.Lists.Add($objItem.samaccountname, "", $listtemplate);
    $list = $siteweb.Lists.GetList($listId, $true);
    $roleDef = $siteweb.RoleDefinitions.GetByType("Contributor");
    $user = "domain\" + $objItem.samaccountname;
    $rolAssign = new-object Microsoft.SharePoint.SPRoleAssignment($user, "email", "name", "notes");
    $rolAssign.RoleDefinitionBindings.Add($roleDef);
    if(!$list.HasUniqueRoleAssignments)
    {$list.BreakRoleInheritance($true);}
    for ($i = $list.roleAssignments.Count - 1; $i -gt -1; $i--)
    { $list.RoleAssignments.Remove($i) }
    $list.RoleAssignments.Add($rolAssign);
    $list.Update();
    Now I have a custom Document Library named "TESTLIB" so if I substitute the line:
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    with
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::TESTLIB
    Then it errors with this...
    How can I script powershell to create a "custom" Document Library?
    Thanks

    The below link should help you in creating custom document library using powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/23/use-powershell-cmdlets-to-manage-sharepoint-document-libraries.aspx
    Vinod H
    Thanks for the link but I cant see anything to assist creating a custom library?  Was there something in paticular you saw?

  • Cannot create billing document from sales document

    Hi,
    i am trying to create billing document from the created sales document.
    But the billing document is not generated. I was getting  the error - ' Document is blocked from billing'.
    SO, i changed the billing block and left it blank, and when  I tried to create the document again, I got another error " Create billing document" not allowed (uSER STATUS   ST01, Object VB006000071200000).
    Please help me out,

    Dear Priyam,
    Attached are the screen shots, go through them.
    I believe you need to change the status in the Sales order status(Object status).
    click on Object status
    Regards
    Shaik

  • Programmatically Attach a Document To a SAP Document

    Hi Experts,
    We would like to be able to automatically attach supporting documentation to a SAP document via our SAP content server so that the user do not have to open SAP. Is there any BAPI or RFC that would help us do that? If not, how would you approach this?
    Thanks
    Martin

    There are more than one ways to do this.
    You can use, BAPI_DOCUMENT_CREATE2 & pass following parameters to it:
    DOCUMENTYPE
    DOCUMENTNUMBER
    DOCUMENTVERSION
    DOCUMENTPART
    USERNAME
    STATUSEXTERN
    STATUSINTERN
    CADINDICATOR
    CREATEDATE
    Please refer Problem with BAPI_DOCUMENT_CREATE2 for more details
    Other way of achieving this is, use LSMW
    I hope this is useful for you.
    Regards
    Amaresh Makal

  • How to fill properly PA fields when creating FI document through BDC sessio

    Hello Guys,
    I got a problem filling PA fields properly when creating an FI document via FB01 with BDC session. There is no problem filling PA fields properly with bapi 'BAPI_ACC_DOCUMENT_POST' as background and document is being created succesfully but when I try to create FI document via Batch input session and when Profitibality segment screen comes , PA field values don't fill the appropriate PA fields in this screen and cannot be created document. There is no problem sending appropriate values to related fields in the program code because I debugged and seen it. Do you have any idea for solving this issue?

    mehmet gullu wrote:
    Hello Guys,
    > I got a problem filling PA fields properly when creating an FI document via FB01 with BDC session. There is no problem filling PA fields properly with bapi 'BAPI_ACC_DOCUMENT_POST' as background and document is being created succesfully but when I try to create FI document via Batch input session and when Profitibality segment screen comes , PA field values don't fill the appropriate PA fields in this screen and cannot be created document. There is no problem sending appropriate values to related fields in the program code because I debugged and seen it. Do you have any idea for solving this issue?
    In some scenarios when the program is run in the background then some screen numbers are different. Maybe you can try to simulate the program in background mode.

  • I have been creating a document in numbers on my iPhone and synced to iCloud. Now I cannot open it, and when trying to download via browser I get an error message. How can I recover this document?

    Dear all,
    I have created a document on my iPhone, and stored it on iCloud. I have updated the document both on my iPhone and on my iPad. Now, I cannot open the document on my iPhone anymore, even a reset of the phone did not help. Via iPad I also cannot open the file, and when I try to download it to my PC via icloud.com I get an error message.I suspect that the file has become corrupt as I have updated it on the iPhone while I did not have network connectivity.
    I have two questions:
    1.) Is it possible to recover an earlier version of the file?
    2.) What can I do to prevent this from happening again in the future?
    3.) Does the iPhone sync changes to iCloud in the background or does the application need to be active?
    Thank you,
    Niftan

    Welcome to the Apple Community.
    I have seen previous versions mentioned in a pop up message before on iCloud.com, but I'm not really sure at all how it would help, as I couldn't get it to do anything.
    The best advice I have at this time is to back up your work on your iOS device by regularly saving it to iTunes, if anything goes wrong you can then either load it into the numbers app again on the device or recover it via iTunes on your computer.
    My syncs are immediate, I never get chance to see if it works in the background, sorry.

  • Pages created a random password for my document on my iPad. I have no idea what it is and I can't open my document. HELP!!!

    Pages created a random password for my document on my iPad. I have no idea what it is and I can't open my document. HELP!!!

    How old is your son?
    Under the Spanner in Pages there is Set Password where you create a password with hint. You really have to deliberately dig this out to do it.
    Do you get a hint when you are asked for the password?
    The Password is very secure, if you can't remember what it is, you will have to recreate the document.
    Peter

Maybe you are looking for