Query fails in SAP

hello
i have a query that runs file in SQL but when i copy it to SAp, it runs once, then gets an internal error[131-183] when I want to execute it again. can anyone please advice
thanks
janice
WITH Invoices AS  --Get invoices per item
(SELECT I1.[ItemCode],
        I1.[Dscription],
        SUM(I1.[Quantity]) AS Qty ,DATEDIFF(month, '2006-06-01',getdate()) AS ItemMonths
   FROM OINV I0  INNER JOIN INV1 I1 ON I0.DocEntry = I1.DocEntry
  WHERE I0.[DocDate] >= '2006-06-01'
    AND I0.DocType <> 'S'
  GROUP BY I1.[ItemCode], I1.[Dscription]
Credit AS               -- Get credit notes per item
(      SELECT C1.[ItemCode],
                C1.[Dscription],
                SUM(C1.[Quantity]) AS Qty
          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry
       WHERE C0.[DocDate] >= '2006-06-01'
             AND C0.DocType <> 'S'
      GROUP BY C1.[ItemCode], C1.[Dscription]
ItemInfo As
(SELECT T0.ItemCode[SearchCode], T0.FRGNName[Description], cast (cast ((T1.OnHand- T1.IsCommited) as decimal (5,0)) as nvarchar (10))[Available], cast (cast (T1.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
(case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec], T0.U_WIEGHTM[KgMetre], 
(T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
OCRD T3
WHERE T3.CardName = '@urservice'
and LEFT(T0.ITEMCODE,1)<>'L'
and t0.itmsgrpcod <> '105'
and t0.itmsgrpcod <> '101'
and t0.itmsgrpcod <> '112'
and t0.itmsgrpcod <> '113'
and t0.itmsgrpcod <> '111'
and t0.itmsgrpcod<>'114'
and T2.[PriceList] = T3.[ListNum]
and T3.CardType = 'C'
SELECT
ITEMINFO.SearchCode,
ITEMINFO.Description,
ITEMINFO.Available,
((Inv.[Qty] - Crn.[Qty]) / Inv.ItemMonths) AS [Avg per Month],
(case when ITEMINFO.Expected is null then '0' else ITEMINFO.Expected end ) as 'Expected',
(case when ITEMINFO.InputTube is null then '0' else ITEMINFO.InputTube end) as 'InputTube',
(case when ITEMINFO.KgLength is null then '0' else ITEMINFO.KgLength end) as 'KgLength',
(case when ITEMINFO.PriceL is null then '0' else ITEMINFO.PriceL end) as 'PriceL' ,
(case when ITEMINFO.Spec is null then '0' else ITEMINFO.Spec end) as 'Spec',
(case when ITEMINFO.KgMetre is null then '0' else ITEMINFO.KgMetre end) as 'KgMetre',
(case when Iteminfo.PriceM is null then '0' else Iteminfo.PriceM end) as 'PriceM'
FROM Invoices Inv left outer JOIN Credit Crn ON Inv.[ItemCode] = Crn.[ItemCode]
                  full outer join ItemInfo  ON Inv.[ItemCode] =ItemInfo.[SearchCode]

WITH Invoices AS  --Get invoices per item
(SELECT I1.[ItemCode],
        I1.[Dscription],
        SUM(I1.[Quantity]) AS Qty ,DATEDIFF(month, '2006-06-01',getdate()) AS ItemMonths
   FROM OINV I0  INNER JOIN INV1 I1 ON I0.DocEntry = I1.DocEntry
  WHERE I0.[DocDate] >= '2006-06-01'
    AND I0.DocType <> 'S'
  GROUP BY I1.[ItemCode], I1.[Dscription]
Credit AS               -- Get credit notes per item
(      SELECT C1.[ItemCode],
                C1.[Dscription],
                SUM(C1.[Quantity]) AS Qty
          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry
       WHERE C0.[DocDate] >= '2006-06-01'
             AND C0.DocType <> 'S'
      GROUP BY C1.[ItemCode], C1.[Dscription]
ItemInfo As
(SELECT T0.ItemCode[SearchCode], T0.FRGNName[Description],
cast (cast ((T1.OnHand- T1.IsCommited) as decimal (5,0)) as nvarchar (10))[Available],
cast (cast (T1.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
(case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec], T0.U_WIEGHTM[KgMetre], 
(T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
OCRD T3
WHERE T3.CardName = '@urservice'
and LEFT(T0.ITEMCODE,1)<>'L'
and t0.itmsgrpcod <> '105'  and t0.itmsgrpcod <> '101' and t0.itmsgrpcod <> '112' and t0.itmsgrpcod <> '113' 
and t0.itmsgrpcod <> '111'  and t0.itmsgrpcod<>'114'
and T2.[PriceList] = T3.[ListNum]
and T3.CardType = 'C'
Edited by: Janice Middleton on Jul 20, 2009 1:18 PM

Similar Messages

  • How to build a WEBI query on a SAP NANA OLAP connection?

    hi fellows,
    we all know that a relational connection can be built to SAP HANA database, and we build data foundation, biz layer to publish it to the repository, so that we can create a WEBI report based on a query to visit the universe.
    However, does anybody know how to create a WEBI query on a SAP HANA OLAP connection?  Since we don't need to build any data foundation on it.
    I created a sap hana olap connection, but failed to find anywhere to publish it?  Can anybody help?
    thanks,
    Jennifer

    Hi Jennifer,
    Check SCN thread http://scn.sap.com/thread/3493857.
    Also check below for Creating a SAP Universe on HANA: Best Practics.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00922ede-de2f-2f10-c2aa-f9b0f6495d34?overridelayout=t…
    Regards,
    JC

  • How to create a query view in sap bw?

    can any one please tell me how to create a query view in sap bw 3.5?

    Hi,
    you can do this by using Bex analyzer and WAD ..
    gop through this link ..
    http://help.sap.com/saphelp_nw70/helpdata/en/0e/1339427f82b26be10000000a155106/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    hope this helps you ..
    Reagrds,
    shikha

  • Call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException

    hello
    I am running an interface RFC2WS sync and recieve this message in the RFC. the message does not get out of the XI and rich the target (WS).
    the XI been upgraded lately, and I think this might be the cuase to the problem, becuase the interface been worked before, and still working in PROD environment as is.
    what could be the problem and how can I start investigate it to find the problem?
    this is what the SAP recieves
    call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException
    Thanks
    Kfir

    Hi Kfir,
    just check in RWB, in component monitoring, the status of integration server and adapter engine.......if it is red, then ask your basis guys to remove that error................just check your comm channels, i think your comm channels are in error, if they are just edit them, save and activate them again..........i think then your this issue will be resolved.'
    Regards,
    Rajeev Gupta

  • "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio

    Hello XI guru,
    I am configuring RFC to File scneario where i am using BAPI as Source. When i run this BAPI in se37 it gives me short dump stating "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:
    Please help.
    Also I want to know is it necessary to write wrapper for BAPI before configuring. This bapi list all orders created in SCM system.
    awaiting ur advises and help
    Thanx
    Anu

    Hello guys,
    I am sorry but kind of confuse, please be with me.
    I have RFC with following structure:
    'Z_BAPI_MOSRVAPS_GETLIST2'
    importing parameters
          LOGICAL_SYSTEM = T_LOGICAL_SYSTEM
          START_TIME = T_START_TIME
    TABLES
          PRODUCT_SELECTION = T_PRODUCT_SELECTION
          LOCATION_SELECTION = T_LOCATION_SELECTION
          LOCTYPE_SELECTION = T_LOCTYPE_SELECTION
          ORDER_HEADS  =  T_ORDER_HEADS
          OUTPUT_NODES  = T_OUTPUT_NODES.
    I put values in logical system/start_time/
    product_selection/location_selection/loctype_selection
    based on these values order_heads and output_nodes is populated. I want value of these to tables to be sent as file.
    Data structure for file is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
    - <ORDER_HEADS>
    - <ITEM>
      <ORDER_NUMBER />
      <ORDER_TYPE />
      </ITEM>
      </ORDER_HEADS>
    - <OUTPUT_NODES>
    - <ITEM>
      <MASTER_PRODUCT />
      <MASTER_PLANT />
      </ITEM>
      </OUTPUT_NODES>
      </ns0:ORDER_MT>
    But the payload has value
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
    remaining is not seen in sxmb_moni and payload cannot be read error is given.
    file structure is dummy structure, please tell me know if it is right or i need to change.
    Thanx
    Anu

  • Getting Rest Query failed error.

    Hi,
    I have integrated my app with facebook. I am able to post my reviews and comments on FB but when I click on link in FB post, its redirectign me to the required url but not loading the review.
    Can any body tell me why this happens.
    here are logs:
    2013-05-22 18:29:17,281 [http-bio-8090-exec-10] ERROR com.fatwire.wsdk.rest.WidgetSDKResource - Failed to execute method feed in widget wsdk.reviews
    com.fatwire.cos.ex.CoSServerException: com.fatwire.cos.ex.CoSServerException: REST query failed
         at com.fatwire.cos.core.jpa.query.CoSJpaQuery.getSingleResult(CoSJpaQuery.java:161)
         at com.fatwire.cos.records.RecordManager.countRecords(RecordManager.java:462)
         at com.fatwire.wsdk.cos.records.processors.feed.RecordListReadProcessor.calculatePageNo(RecordListReadProcessor.java:229)
         at com.fatwire.wsdk.cos.records.processors.feed.RecordListReadProcessor.getPageNo(RecordListReadProcessor.java:186)
         at com.fatwire.wsdk.cos.records.processors.feed.RecordListReadProcessor.process(RecordListReadProcessor.java:62)
         at com.fatwire.cos.core.monitor.MonitoredMethodInterceptor.invoke(MonitoredMethodInterceptor.java:68)
         at com.fatwire.wsdk.pipeline.impl.PipelineImpl.execute(PipelineImpl.java:60)
         at com.fatwire.cos.core.monitor.MonitoredMethodInterceptor.invoke(MonitoredMethodInterceptor.java:68)
         at com.fatwire.wsdk.rest.WidgetSDKResource.executeWidgetMethod(WidgetSDKResource.java:183)
         at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
         at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
         at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
         at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
         at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
         at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
         at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
         at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.cos.comments.service.filters.RestFilter.doFilter(RestFilter.java:141)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.cos.core.i18n.ResourceFilter.doFilter(ResourceFilter.java:45)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.cos.core.sso.SSOContextFilter.doFilter(SSOContextFilter.java:64)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:219)
         at com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.cos.core.sso.GeneralPreparationsFilter.doFilter(GeneralPreparationsFilter.java:68)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.fatwire.cos.core.util.web.StartupGuardFilter.doFilter(StartupGuardFilter.java:42)
         at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
         at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
         at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
         at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: com.fatwire.cos.ex.CoSServerException: REST query failed
         at com.fatwire.cos.core.jpa.cmd.wem.WemCommandManager.execREST(WemCommandManager.java:356)
         at com.fatwire.cos.core.jpa.cmd.wem.WemCommandManager.execGET(WemCommandManager.java:192)
         at com.fatwire.cos.core.jpa.cmd.wem.WemCountQueryCommand.findResult(WemCountQueryCommand.java:79)
         at com.fatwire.cos.core.jpa.cmd.wem.WemCountQueryCommand.executeSingle(WemCountQueryCommand.java:68)
         at com.fatwire.cos.core.monitor.MonitoredMethodInterceptor.invoke(MonitoredMethodInterceptor.java:68)
         at com.fatwire.cos.core.jpa.query.CoSJpaQuery.getSingleResult(CoSJpaQuery.java:156)
         ... 104 more
    Thanks in advance.
    Thanks,
    Nelash jindal

    Hi There,
    Please try the below steps and check if it helps :
    Go to C:/programfiles/Adobe/Adobe Captivate(version)/AdobeCaptivate.ini           
    Open the file with notepad and add the line Use32BitJVMForPublish=1 
    Save it and Try to publish the project .
    Regards,
    Mayank

  • Query related to SAP

    I have a query relating to SAP, specifically when using the Create New Session button. In the past when using this button, it has always created a new SAP session with the window displaying the SAP Easy Access  User Menu... front end, with all my favourite transactions listed. However, recently this user menu has disappeared and the window is blank, meaning I have to type the transaction in the top left box, which, whilst not preventing use, is a little annoying and awkward!
    I dont believe I have changed any options recently and can find no settings that look like they would bring the user menu back but it would be really useful if it did! (It is probably worth mentioning that this only occurs when creating a new session; when starting a new SAP session in the first instance, the user menu appears...)
    Please help me out
    Many Thanks,
    Sunny

    Hi,
    SAP GUI version - 7.10
    i am using a desktop, tried logging in another desktop ,same problem.
    Recently there is a HARDWARE migration occured , might be this also effects the settings ?
    please Advise.
    Sunny

  • The following query failed: GetUserProfileByName - with the wrong username

    I have 2 users (out of 800), who run into this issue on occasion. Their username is 'fccs\user1' in the profile db, and in every UserInfo table in the system. But when they try to go to certain sites or open an infopath form, this error gets thrown:
    The following query failed: GetUserProfileByName (User: FCCS\[email protected], Form Name: Template, IP: , Connection Target: , Request: http://fccsteams/sites/DataManagement/Tasks/Lists/Tasks/Folders1.aspx?RootFolder=/sites/DataManagement/Tasks/Lists/Tasks/2013/11&, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2013-08-05T23:14:53:458Z Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.  Operation Failure ---> Access Denied: To create a user profile, you must be an administrator, or create your own profile and have personal features rights.  UnauthorizedAccessAccess Denied: To create a user profile, you must be an administrator, or create your own profile and have personal features rights. The remote server returned an error: (500) Internal Server Error.)
    Notice how the username is now the entire email address and not just the username. I have no idea why it thinks that that is their username. Any ideas?

    Hi,
    According to your post, my understanding is that you got query failed error.
    Melick had written a blog said that the form access the user profile web service (Userprofileservice.asmx) using  UDC
    file.
    You can check whether the UDC connection was still pointing to root site.
    You can change this file to match with the sub site collection. Otherwise there may be a cross domain access issue.
    There are similar threads for your reference.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9c2f7f4c-0fa9-43bd-94b1-1d7075e35841/5566-error-with-getuserprofilebyname-and-infopah-browser-forms-using-claims-based-authentication
    http://social.msdn.microsoft.com/Forums/en-US/49753330-40c0-4327-9a9b-2c3304a74e67/sharepoint-infopath-and-populating-forms-with-ad-data?forum=sharepointcustomizationlegacy
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • Lo-Extraction Job Failed in SAP ECC 6.0

    Hello,
    My Lo-extraction job failed yesterday because of this I'm unable to extract the delta data from SAP ECC 6.0 to BI. When I extract the Delta data from 2LIS_11_VAITM to BI there is no data because of Job failed in SAP ECC 6.0.
    How to get the data back to 2LIS_11_VAITM data source?
    Thanks

    Error log display as follows
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLMCEX" or "LMCEXU14"
    "MCEX_UPDATE_11"
    Actually I add ZZ fields to structure if that is the case do i need to delete the  data  from MCEX11 ?
    I delete the data from setup tables but i did not delete the LUW entries?
    When do we delete the LUW entries?
    If the structure changes do I need to cancel the old job and re-schedule job?
    Thanks

  • WSA - Report Query Failed

    Hi all,
    Recently, I'm receiving these two alerts from one WSA S370:
    Report Query Failed
          query_id: wsa_monitor_overview_web_proxy_summary
          data_source: WSASimpleTotalRDS
          error: <type 'type'> ('egg/command_client.py send_message|555', "<class 'Commandment.DaemonUnresponsiveError'>", 'S370B.NAME.net: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|265] [reportdatasource/CounterReportDataSource.py _parse_overall_interval|581] [query/merged_result.py range|85] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    AND
    Report Query Failed
          query_id: wsa_monitor_overview_clients_by_blocked_transactions
          data_source: WSACommonRDS
          error: <type 'type'> ('egg/command_client.py call|238', "<class 'reporting.query.exceptions.DatabaseQueryFailure'>", '', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|251] [reportdatasource/CounterReportDataSource.py _run_api_query|482] [query/client.py time_merge_query|454] [query/client.py _call|235] [egg/command_client.py call|238]')
    The code I'm using is 7.1.1-038
    I started receiving the alerts only after upgrading to this code. Have you noticed something similar?
    Thanks a lot for your help!!!
    Fernando

    Hello Everyone,
    I am in Australia (Melbourne) and i am using ironport s160 web security appliance version: 7.1.2-80. Reecently i have started receiving the following warning from ironport proxy.
    The Warning message is:
    Report Query Failed
                    query_id: wsa_monitor_overview_malware_categories
                    data_source: WSACommonRDS
                    error: ('egg/command_client.py send_message|555', "", 'proxymel3.sportsbet.com.au: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|265] [reportdatasource/CounterReportDataSource.py _parse_overall_interval|581] [query/merged_result.py range|85] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    Report Query Failed
                    query_id: wsa_monitor_overview_suspect_transactions_detected
                    data_source: CounterReportDataSource
                    error: ('egg/command_client.py send_message|555', "", 'proxymel3.sportsbet.com.au: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|272] [reportdatasource/CounterReportDataSource.py _parse_api_results|506] [reportdatasource/CounterReportDataSource.py _parse_interval_result_set|525] [query/result.py next|112] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    Report Query Failed
                    query_id: wsa_monitor_overview_suspect_transactions_summary
                    data_source: WSASimpleTotalRDS
                    error: ('egg/command_client.py send_message|555', "", 'proxymel3.sportsbet.com.au: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|265] [reportdatasource/CounterReportDataSource.py _parse_overall_interval|581] [query/merged_result.py range|85] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    Report Query Failed
                    query_id: wsa_monitor_overview_top_application_types
                    data_source: CounterReportDataSource
                    error: ('egg/command_client.py send_message|555', "", 'proxymel3.sportsbet.com.au: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|265] [reportdatasource/CounterReportDataSource.py _parse_overall_interval|581] [query/merged_result.py range|85] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    Report Query Failed
                    query_id: wsa_monitor_overview_top_url_categories
                    data_source: CounterReportDataSource
                    error: ('egg/command_client.py send_message|555', "", 'proxymel3.sportsbet.com.au: The daemon is not responding.', '[database/ReportCatalog.py run_report_queries|332] [reportdatasource/CounterReportDataSource.py query|265] [reportdatasource/CounterReportDataSource.py _parse_overall_interval|581] [query/merged_result.py range|85] [query/client.py _call|235] [egg/command_client.py call|233] [egg/command_client.py send_message|555]')
    Product: IronPort S160 Web Security Appliance
    Model: S160
    Version: 7.1.2-080
    Serial Number: 0025643CFD42-4GQYHL1
    Timestamp: 14 Jun 2012 14:00:21 +1000
    Thank you for your help.
    Lovedeep

  • Is there any query analyser in sap

    Hi,
    I would like to know if is any query analyser in SAP like the we have in MS-Sql Server, so that I could paste a query from abap program and check the results instead of using abap debugger.
    regards
    Balaji

    Hi,
    I think such a tool is not there in SAP. But yes if you want to analyse performance of a Query, you can do so by using Transactions ST05. SE30 is also for performace analysis.
    Check these trasactions once. May be of some use to you.
    Incase you need some assitance in analysing these transactions, please revert back.
    Reward if helpful.
    Regards,
    Lalit

  • 451 4.4.0 DNS query failed. The error was: SMTPSEND.DNS.NonExistentDomain

    Hi,
    I have two Exchange 2010 servers running on Windows 2008 Ent R2.
    These mail servers have been running fine for a few years.
    Today I noticed two things.
    1. users were telling me they were having delays receiving emails from outside of our own domain. The mail gets sent out, but it takes about 15-30 mins for users outside our our domain to get their mail. Mail sent from inside our domain gets delivered right
    away.
    2. An error message that I see when I go to Tools->Queue Viewer in EMC. The error is: 451 4.4.0 DNS query failed. The error was: SMTPSEND.DNS.NonExistentDomain. This error  shows up when you click on the "Queues" tab and then look at the
    "hub version 14" under "next hop domain" column. 
    I'm assuming these two things are related. I don't understand why the problem is just showing up now. As I said, mail delivery has been fine for a while and I haven't done any major updates to the server in a few months.
    Thanks for any ideas and suggestions as to what might be causing it and where I can look.
    Mike

    Hi,
    1. I replaced my Cert with the same exact cert from GoDaddy, just an updated expire date.
    2. We have two exchange servers.
    3. The message I am seeing now, is under "Last Error" for every queue (not individual messages).
    That error message is:  451 4.4.0 Primary Target IP address responded with 421 4.2.1 Unable to connect. Attempted failover to alternate host but that did not succeed.
    OR
    451 4.4.0 DNS query failed. The error was: SMTPSEND.DNS.NonExistentDomain. (This is the same error I mentioned earlier.
    I ran some tests on mxmailbox.com for my domain name.I got the following alerts back when running a DNS check.
    SOA Serial Number format is invalid. ns.rackspace.com Serial XXXXXXXX : Suggested serial format year was 1402 which is before 1970
    AND
    SOA Expire value out of recommended range.  ns.rackspace reported Expire 604800. Expire is recommeded to be between 1209600 and 2419200
    I use Rackspace DNS servers for External lookups.
    Does this point my mail delay problem to Rackspace or something local on my own machine?
    Thanks!
    Mike

  • ERROR: Cannot create authcontext with null org-Naming query failed  code:21

    I use OpenSSO Enterprise 8.0 Update 1 Patch1 Build 6.1(2009-June-9 12:56)
    I try to evaluate the Apache 2.2 web agent.
    It's been installed without errors, and both the OpenSSO and Apache server restarted.
    The agent profile's been created. Also, I use the default (OpenDS) configuration repository
    for OpenSSO, but an external (DSEE) user data directory.
    I think I did all the required steps with regards to both directories, since I don't see any error
    in the LDAP logs, each entry seems to be found as expected, the BIND operations are all
    successfull.
    Also, I use a sub-realm rather than the default top realm, and thus, I've modified the agent configuration
    (in the agent profile) so that the login URL is now ... /UI/Login?realm=myrealm
    When I try to access the Apache homepage, I get an error 500. The most recent OpenSSO server log file
    (...../opensso/debug/Authentication) contains the following message:
    ERROR: Cannot create authcontext with null org
    The most recent agent log file (....../apache22_agent/Agent_001/logs/debug/amAgent) has the following error:
    2009-07-07 17:08:11.992 Error 10513:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
    I don't know what else I can do to debug this problem and find a solution. Any idea ?

    Thank you Shubba,
    With all available log details enabled, I now have the following messages on the agent side:
    2009-07-09 10:14:51.731MaxDebug 5613:80149a50 all: No value specified for key com.sun.identity.agents.config.profile.attribute.mapping, using default value .
    2009-07-09 10:14:51.731 Debug 5613:80149a50 NamingService: BaseService::doRequest(): Using server: http://portable.antibes.net:8080/opensso/namingservice.
    2009-07-09 10:14:51.731MaxDebug 5613:80149a50 NamingService:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <RequestSet vers="1.0" svcid="com.iplanet.am.naming" reqid="10">
    <Request><![CDATA[                                                                                                                      
      <NamingRequest vers="3.0" reqid="2" sessid=""AQIC5wM2LY4SfcyaGFgc5h9Y7/kpf4f//ml82oVfNlbWxQE=@AAJTSQACMDE=#"">                             <GetNamingProfile>                                                                                                                         </GetNamingProfile>                                                                                                                        </NamingRequest>]]> </Request>
    </RequestSet>
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest Request line: POST /opensso/namingservice HTTP/1.0
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Cookie and Headers =Host: portable.antibes.net
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Content-Length =Content-Length: 334
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Header Suffix =Accept: text/xml
    Content-Type: text/xml; charset=UTF-8
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Total chunks: 7.
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Sent 7 chunks.
    2009-07-09 10:14:51.728 Debug 5613:80149a50 NamingService: HTTP Status = 500 (Internal Server Error)
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading headers.
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Server: Apache-Coyote/1.1
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Content-Type: text/html;charset=utf-8
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Date: Thu, 09 Jul 2009 08:14:51 GMT
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Connection: close
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading body content of length: 13830487939496281954
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 all: Connection::waitForReply(): returns with status success.
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Completed processing the response with status: success
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: <html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: AMSetupFilter.doFilter
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:117)
    </pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
    com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
    com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
    com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
    com.iplanet.services.comm.server.PLLRequestServlet.doPost(PLLRequestServlet.java:134)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91)
    </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
    2009-07-09 10:14:51.729 Warning 5613:80149a50 NamingService: BaseService::doHttpPost() failed, HTTP error = 500
    2009-07-09 10:14:51.729 Debug 5613:80149a50 NamingService: NamingService()::getProfile() returning with error code HTTP error.
    2009-07-09 10:14:51.729 Error 5613:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
    In my Tomcat server (OpenSSO server web container), I have the following errors:
    Jul 9, 2009 10:12:35 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 22746 ms
    [Fatal Error] :2:46: Element type "NamingRequest" must be followed by either attribute specifications, ">" or "/>".
    java.lang.NullPointerException
    at com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
    at com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
    at com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
    at ...
    It seems like the problem comes from the couple of closing square brackets in the NamingRequest tag:
    </NamingRequest>]]>
    I don't know where it comes from, so if you've an idea I'd enjoy .
    Cheers,

  • Database Query Failed

    I got this error message instead of weekly report.
    Anybody ever experienced this? How to fix it?
    The Warning message is:
    Report Query Failed
    query_id: mga_overview_incoming_mail_over_time
    data_source: CounterReportDataSource
    error: <type 'type'> ('command_manager/command_client.py call|242', "<class 'reporting.query.exceptions.DatabaseQueryFailure'>", '', '[database/ReportCatalog.py run_report_queries|234] [reportdatasource/CounterReportDataSource.py query|131] [reportdatasource/CounterReportDataSource.py _parse_api_results|216] [reportdatasource/CounterReportDataSource.py _parse_interval_result_set|251] [reportdatasource/CounterReportDataSource.py _parse_interval_result|317] [reportdatasource/CounterReportDataSource.py _parse_standard_interval_result|326] [query/result.py next|239] [query/client.py _call|212] [command_manager/command_client.py call|242]')
    Version: 5.5.1-011

    Yes, I did. Instead of a graph, I got this error message:
    Error while receiving data.
    There may have been an intermittent timeout during the database query.
    Have you tried going onto the GUI interface and going to "Monitor > Incoming Mail", switching the Time range to display a Week and then clicking on the Printable button on the right hand corner.
    I got this error message instead of weekly report.
    Anybody ever experienced this? How to fix it?
    The Warning message is:
    Report Query Failed
    query_id: mga_overview_incoming_mail_over_time
    data_source: CounterReportDataSource
    error: ('command_manager/command_client.py call|242', "", '', '[database/ReportCatalog.py run_report_queries|234] [reportdatasource/CounterReportDataSource.py query|131] [reportdatasource/CounterReportDataSource.py _parse_api_results|216] [reportdatasource/CounterReportDataSource.py _parse_interval_result_set|251] [reportdatasource/CounterReportDataSource.py _parse_interval_result|317] [reportdatasource/CounterReportDataSource.py _parse_standard_interval_result|326] [query/result.py next|239] [query/client.py _call|212] [command_manager/command_client.py call|242]')
    Version: 5.5.1-011

  • Query Failed: [nQSError: 46036] Internal Assertion ( OBIEE error)

    Hi Friends.
    Did anyone faced this problem. I am using custom filters on reports. The reports work well for 5 filters but start giving error on last filter. As far as I can guess its an internal OBIEE optimizer error. Can anyone faced this problem and help
    A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition pCond, file server\Query\Optimizer\Request\Src\SQORRqList.cpp, line 2604.Please have your System Administrator look at the log for more details on this error. (HY000)

    We faced same problem. There is no clear definition of error even we increase log trace level to 7.
    Query Status: [nQSError: 46036] Internal Assertion: Condition pCond, file server\Query\Optimizer\Request\Src\SQORRqList.cpp, line 2716. [[
    We will open a ticket to Oracle Support.

Maybe you are looking for

  • Rolling back from OIM version 11g to 9.1.0.2

    Experts, OIM version upgrade from 9.1.0.2 to 11g(11.1.1.5) need to be rolled back due to some error. Just wanted to know views of experts. Following steps have been completed so far of the upgrade guide [http://docs.oracle.com/cd/E21764_01/upgrade.11

  • Mail - Deletion of Mail e-mails

    Trying to delete a number of e-mails using delete icon; the e-mails initally clear but on re-use find that the deleted e-mails are still present on the system. Any ideas on how to delete deleted e-mails!!!

  • Cannot open itunes. Alert message says I am missing MSVCR80.dll

    Help. Cannot open ITunes. Alert message says I am missing MSVSCR80.dll

  • Adjust web dynpro buttons based on what iView you are in

    Hi, I have a situation where I am using the same Web Dynpro component / view in two different iViews in portal.  The web dynpro component is /SAPSRM/WDC_UI_SC_DOTC_BD.  This is for displaying / editing a shopping cart in SRM 7.0. When I am in one iVi

  • Inprocess inspection in process industry

    Hai Gurus, I have one scenario. My Final product is Rectified Spirit which follows the following sequence of operation. 1) Milling - Corn is made powder and mixed with water to form slurry 1 2) Cooking - Slurry is mixed with enzymes and sulfuric acid