XMLQuery fails when executed as a job

Hi all,
I build a query that checks the data server connections, using the string
server://XMII/Illuminator?Service=SystemInfo&Mode=Status&Content-Type=text/xml
The query works fine by itself and executed in a BLS. However, when I schedule the BLS, NetWeaver Log shows an error:
Error Processing XMLQuery A remote host refused an attempted connect operation
...ACTION FAILED: End Action XML_listConnectStatus : (XML Query)
I tried to supply user and pw to the job, or pass it as parameter to the query, but the error remains. I also tried to use the "http...<server>:<port>" prefix instead of "server", but the error does not disappear. What is the difference when calling it from workbench or as a job?
Michael

Rick,
that solved it.
I used the following:
- TAG query
- Simulator as Data Server
- save query without further settings
- define a BLS with this TAG query
- Link Mode=Status and Service=SystemInfo
The result set is a XML which can be processed.
Thanks and Merry Christmas.
Michael

Similar Messages

  • Fails when executing job called syspolicy_purge_history (SQL Server 2012)

    Hi friends i have the following  problem
    The job syspolicy_purge_history  of my database engine failed, specifically on the third step called "Erase Phantom System Health Records" that executes a powershell.  This is the sentence that executes (All job syspolicy_purge_history
    on any SQL 2012 has the same code):
    if ('$(ESCAPE_SQUOTE(INST))' -eq 'MSSQLSERVER') {$a = '\DEFAULT'} ELSE {$a = ''};
    (Get-Item SQLSERVER:\SQLPolicy\$(ESCAPE_NONE(SRVR))$a).EraseSystemHealthPhantomRecords()
    .  When i see the job history i get the following:
    Message
    Executed as user: NT Service\SQLSERVERAGENT. The job script encountered the following errors. These errors did not stop the script:  A job step received an error at line 1 in a PowerShell script. The corresponding line is 'import-module SQLPS  -DisableNameChecking'.
    Correct the script and reschedule the job. The error information returned by PowerShell is: 'The specified module 'SQLPS' was not loaded because no valid module file was found in any module directory.  '  A job step received an error at line 2 in
    a PowerShell script. The corresponding line is '(Get-Item SQLSERVER:\SQLPolicy\SRV01236$a).EraseSystemHealthPhantomRecords()'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Cannot find drive. A drive with the
    name 'SQLSERVER' does not exist.  '  A job step received an error at line 2 in a PowerShell script. The corresponding line is '(Get-Item SQLSERVER:\SQLPolicy\SRV01236$a).EraseSystemHealthPhantomRecords()'. Correct the script and reschedule the job.
    The error information returned by PowerShell is: 'You cannot call a method on a null-valued expression.  '.  Process Exit Code -1.  The step failed.
    Aditionally i tested putting the policies in powershell like unrestricted (like i see on a blog). but it didn't work.
    My SQL version is 2012 Standard SP1 X64
    Please help me with this
    Thanks for your help
    Greetings
    Aleds

    Thanks for your help princekumar8 and gona_david
    Hello Gona_david,  You are right, when i execute the powershell sentence Get-Module -ListAvailable
    the SQLPS module doesn't appear. 
    Look i have another SQL Server 2012 in another server, but this is patched on SP2 and the syspolicy_purge_history here runs OK.  Also when i execute the powershell, the SQLPS appears in the list.
    So, my question is: If i patch my server SQL Server 2012 with the error from SP1 to SP2, is Possible that the error will get away? In fact, Wouldn't be yet necessary runs the SQL install? 
    Basically what you recommend me in this case?
    Thanks in advance 
    Greetings 
    Aleds

  • SXPG_COMMAND_EXECUTE failed when executing cleanuplogs in TR DB13

    Hi,
    I am getting SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: x_error when executing cleanuplogs program in DB13. I have the correct DBHOSTNAME configured in profiles, my SAPXPG rfc  is pointing correctly to the database. Also I have the required authorizations to execute SAPXPG program.Could you pls let me know what is the cause of this error and steps to resolve it.
    Thanks,
    Clarence

    Hi Sharath
          Have you solved your problem? i have the same situation with you,  i am very appreciate it if you can reply me
    BS
    Jon

  • Process flow failes when executing a mapping by error ......

    hi all,
    When we executes a mapping through owb normally it works fine.
    But the same when executes throgh a process flow it get falies with the f/w error.
    *"Set based mode not supported ORA-06512"*
    The operating mode is "set based fali over to row based"
    In the mapping we are doing some transforamtion and putting the data in a flat file.
    Please help in this reagrd.
    Regards
    ashok

    Hi,
    change in processflow configuration property OPERATING_MODE for this mapping to ROW_BASED or ROW_BASED_TARGET_ONLY
    Hope this helps!

  • Maintenance Cleanup Task fails when executed with SQL Agent but dont if executed manually

    Hello,
    I have a job that fails with the following error if exectued via the SQL Server Agent but not if executed manually.
    The error is:
     Error: 2014-03-31 21:30:14.89     Code: 0xC002F210     Source: Maintenance Cleanup Task Execute SQL Task     Description: Executing the query "EXECUTE master.dbo.xp_delete_file 0,N'\\erpfiles\b..."
    failed with the following error: "xp_delete_file() returned error 2, 'The system cannot find the file specified.'". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly,
    or connection not established correctly.  End Error
    I have checked and the user configured to run the SQL Agent has all needed accesses to the folder \\erpfiles\b....
    Have you an idea to help me go further in my troubleshooting ? Or have you an idea to solve my problem ?
    Thanks in advance

    I think reason for this is the service account having no permissions on the specified folder path. Thats when you get this error most of the times. The user logged in might have access but please keep in mind that sql agent job makes use of service account
    to execute the job which would still need access to the pat to delete the files
    What you can do is add a proxy account and give it access to folder path and use it to execute the job
    http://www.databasejournal.com/features/mssql/article.php/3789881/Proxy-Accounts-in-SQL-Server.htm
    Alternatively you can give the service account access to the folder path.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem in BDC program when executed using scheduled job

    I have developed a BDC program for J1I5 T-code whcih updates RG1 Register. This is working as expected when run in foreground as well as in background. But it is not giving expected results when scheduled in Job. It is not giving any error message, job is executed without error.
    What can be the problem? pls. help.
    Thanks!
    Prakash

    Hi,
    Thanks for reply.
    I have checked log using SM37, it is not showing any error.
    Log details are as follows...
    Date       Time     Message text                                                                             Message class Message no. Messag
    08.05.2010 11:47:10 Job started                                                                                00           516          S
    08.05.2010 11:47:10 Step 001 started (program ZSDB_J1I5_REG_UPDATE_BDC, variant 1101_1_RMA, user ID STK)      00           550          S
    08.05.2010 11:47:20 Job finished                                                                                00           517          S

  • SGE - Failed To Execute openmp parallel job

    Hi, I'm having problems executing a simple parallel openmp job.
    The job is scheduled and gets stuck in the 't' state, afterwards the sgeexecd falls. I already tried changing the allocation_rule but nothing chaged.
    I have no idea what could be, i google it but couldn't find anything, even reinstalled everything.
    Here is the exec messages:
    09/28/2009 13:43:57|  main|node10|I|starting up SGE 6.2u3 (lx24-amd64)Here is the qmaster messages:
    09/28/2009 13:46:28| timer|node10|W|failed to deliver job 24.1 to queue "all.q@node10"
    09/28/2009 13:46:28|listen|node10|E|commlib error: got read error (closing "node10/execd/1")Any help is very appreciated!.
    Thanks in advance.
    Here is may PE:
    # Version: 6.2u3
    # DO NOT MODIFY THIS FILE MANUALLY!
    pe_name            smp
    slots              4
    user_lists         NONE
    xuser_lists        NONE
    start_proc_args    NONE
    stop_proc_args     NONE
    allocation_rule    $pe_slots
    control_slaves     TRUE
    job_is_first_task  FALSE
    urgency_slots      min
    accounting_summary TRUEAnd here is my script
    #$ -N dotPRODUCT
    #$ -S /bin/bash
    #$ -o ~
    #$ -e ~
    #$ -q all.q
    #$ -pe smp 2
    #$ -v OMP_NUM_THREADS=$NSLOTS
    cd /tmp
    gcc -fopenmp dot_product.c -lm
    mv a.out dot_product
    ./dot_product > dot_product_output_nt2.txt
    echo "Program output written to dot_product_output_nt2.txt"
    rm dot_productMarcos.

    You'll probably find the GridEngine mailing lists more responsive: [http://gridengine.sunsource.net/ds/viewForums.do|http://gridengine.sunsource.net/ds/viewForums.do]

  • Setting default date range in selection screen when executing as batch job.

    Hi Guys,
    I have one report to be scheduled as weekly batch job and one of the selection screen field is date range. If i set this report to run today then the date range will be from one week back date(Lower value) to today date(Higher value). When it runs for next week(Already scheduled as weekly batch job) the date range should be like this
    Lower value = today date
    higher value= next week run date.
    How can i achieve this functionality. Is it possible through Dynamic variant concept?. Rest of the selection screen fields have some default values and should not change.
    <REMOVED BY MODERATOR>
    Thanks in advance,
    Vinod.
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:52 PM

    Hi Vinod,
    Would suggest you to this.
    Create two parameters : p_start_date and p_end_date of type sy-datum on your selection screen , instead of a range.
    Now goto create a variant from SE38 for the report.
    While creating the variant, mark the "Selection Variable" checkbox for the two parameters and click on "Selection Variables".
    Select the option "D: Dynamic date calculation" for both the date fields.
    For p_start_date - select the option "Current Date"
    For p_end_date  - select the option "Current date +/- ??? days" and put 7 in the pop up.
    Hence what you have done now is, set up a dynamic variant, where p_start_date will have sy-datum and p_end_date will have sy-datum + 7, everytime the job runs.
    Now, in the program, first step after START-OF-SELECTION code the following:
    RANGES: r_date FOR sy-datum.
    start-of-selection.
    refresh r_date.
    r_date-sign = 'I'. r_date-option = 'BT'.
    r_date-low = p_start_date. r_date-high = p_end_date.
    append r_date.
    Hence this way, you would have built your range and use it as needed.
    Cheers,
    Aditya

  • Program fails when execute two or more DSUnbind

    Hello.
    My program has five numeric controls which take data from a lookout server by datasocket. I link the controls with DSBindCtrl. The application runs correctly but when I try unlink these controls by DSUnbind to exit , it becames blocked and I must kill it by task manager whith control+Alt+Supr.  I tried whith DS_Open and DS_DiscardCtrl and the behaviour is the same.
    Can anyone suggest anything?
    Thanks.

    Thanks fot you reply,
    I try to create another "EXECUTE FORMULA" inside of package but i dont have access to reply that task, because when i was create a package i copy and paste from another package wich already exists on the "SYSTEM FILE" folder.
    If i create a new "EXECUTE PACKAGE" task and try to add the same "expression"s  that "EXECUTE FORMULA" dont have the all of that only some.
    What ii have to configured to execute a new "execute package" task?
    About the scrip, i dont know what i have to change, maybe USERDIM1 who have to change the hardcording value is a "ACCOUNT" dim in my Destination App. Thats dimension, doesnt exists in my destination app, therefore i have to use *ADD_DIM and then *PUT, but i think doesnt work that way.
    Any sugestion?
    thanks in advance

  • Failed to execute program in job

    Hi,
    I am trying to run a Job but i get the following error
    Function call .
    I run md
    192.168.142.72XSIGACREJ20100902 directly and it let me create the directory.
    What is wrong with this? Can someone help me?
                  Best Regards
                          João Fernandes

    Normally the program objects will run on the BOBJ server at OS level using the same credentials that are used to run the BOBJ services. You can find out which user is used in WIndows if you start the Central COnfiguration Manager utility on the BOBJ server and heck the Log on as area in the properties of your SIA (assuming you are using BO XI 3.1)
    From the log information it seems BOBJ services run using the local system account. THis account probably does not have access to the remote directory. You have to try schedule this object in the CMC. YOu provide there a username and password of an OS user, who has access to the remote directory.
    Regards,
    Stratos

  • Select from a linked server fails when executed as a join to database tables

    Hi
    I have been using the following TSQL to update a results table for several years it is currently running on SQL Express version 11.0.2100.60 (I have successfully run this on various versions and editions from 2005 onwards)
    select c.Race_id , r.Runner_id , i.Time_secs
      from CHAMPS INPUT]...Results I
      join  [dbo].[Race] c
      on rtrim(I.Race)COLLATE SQL_Latin1_General_CP1_CI_AS
      = rtrim(c.Race_name)COLLATE SQL_Latin1_General_CP1_CI_AS
      join  [dbo].[Runner] r
      on rtrim(I.[Name]) COLLATE SQL_Latin1_General_CP1_CI_AS
      = rtrim(r.First_Name)COLLATE SQL_Latin1_General_CP1_CI_AS + ' '
      + rtrim(r.Surname)COLLATE SQL_Latin1_General_CP1_CI_AS
     where i.Time_secs > 0
    This worked earlier today then with no obvious change stopped working
    No error is given but no rows are returned
    running select * from [CHAMPS INPUT]...Results where Time_secs > 0 returns the expected rows
    Any ideas where to look for the problem

    Erland thanks for your reply. I have resolved the issue, it was caused by an error in updating the joined race table. I was looking for a problem with the linked server and missing the obvious.
    Hi philpits,
    You can try to use SQL Profiler to capture some events while run your query.
    In addition, can you get expected result while run the query on remote server? Please also check your underlying tables.
    Regards,
    Elvis Long
    TechNet Community Support

  • R30RBE32.EXE failed when executing GDI.EXE. Rpts 5 runtime.

    One of my customers is getting the above error whenever they try
    starting a report. This had been working fine on their machine
    for about 6 months and suddenly this started. Many other
    clients are accessing these same files and not getting any
    errors...
    I tried reinstalling Forms 5.0 runtime without any luck. It
    starts accessing the server and client with activity like it is
    going to create the report, then this happens.
    Has anyone seen anything like this before?? Have any ideas
    whats causing it??
    Thanks,
    Jeff.
    null

    http://onesearch.sun.com/search/developers/index.jsp?charset=UTF-8&qt=%22EXCEPTION_FLT_STACK_CHECK%22&col=javadoc&col=devforums&col=javabugs&col=javatecharticles&col=javatutorials&col=devarchive&col=javasc&col=devall

  • Insufficient priv error when executing DBMS_ERRLOG through PLSQL

    Hi,
    I shall be grateful if any one of you give me the solution at the earliest.
    I have 2 schemas like A & B those are running on Oracle 10g rel2.
    As per my buz req' I need to create DML Error log table for 'A.T1' table in B schema using DBMS_ERRORLOG package.
    I have granted direct SELECT on A.T1 to B (...not through ROLE as it doesn't work in plsql)
    The problem is when i'm running the procedure,
    DBMS_ERRLOG.CREATE_ERROR_LOG('A.T1', 'err_T1', 'B');
    in SQL*Plus of B schema, it's creating the error log table successfully.
    But the same will get failed when i run this error log procedure with in a procedure owned by B schema.
    It throws 'ORA-01031: insufficient privileges'...
    I hope this is related to privilege issue which is working fine in SQL*Plus but NOT in PLSQL stored procedure.
    Awaiting your earliest reply.
    Thanks.
    - Ela

    >I dont think it's an issue with direct privilege. Actually the
    package is working when i execute it with in a ananymous block,
    but the same get fails when execute it through procedures...
    Role privs work with anonymous PL/SQL blocks. Does not work with stored PL/SQL code.
    SQL> create user user1 identified by user1 default tablespace users quota 2M on users;
    User created.
    SQL> grant create session to user1;
    Grant succeeded.
    SQL> create role user1_role;
    Role created.
    SQL> grant create table, create procedure to user1_role;
    Grant succeeded.
    SQL> grant user1_role to user1;
    Grant succeeded.
    SQL> connect user1/user1
    Connected.
    PL/SQL procedure successfully completed.
    SQL> create table x( n number );
    Table created.
    SQL> begin
    2 execute immediate 'create table y( n number )';
    3* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> create or replace procedure CreateTable is
    2 begin
    3 execute immediate 'create table z( n number )';
    4* end;
    SQL> /
    Procedure created.
    SQL> exec CreateTable
    BEGIN CreateTable; END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "USER1.CREATETABLE", line 3
    ORA-06512: at line 1
    SQL>

  • Insufficient privilege error when executing DBMS_ERRLOG through PLSQL

    Hi,
    I shall be grateful if any one of you give me the solution at the earliest.
    I have 2 schemas like A & B those are running on Oracle 10g rel2.
    As per my buz req' I need to create DML Error log table for 'A.T1' table in B schema using DBMS_ERRORLOG package.
    I have granted direct SELECT on A.T1 to B (...not through ROLE as it doesn't work in plsql)
    The problem is when i'm running the procedure,
    DBMS_ERRLOG.CREATE_ERROR_LOG('A.T1', 'err_T1', 'B');
    in SQL*Plus of B schema, it's creating the error log table successfully.
    But the same will get failed when i run this error log procedure with in a procedure owned by B schema.
    It throws 'ORA-01031: insufficient privileges'...
    I hope this is related to privilege issue which is working fine in SQL*Plus but NOT in PLSQL stored procedure.
    Awaiting your earliest reply.
    Thanks.
    - Ela

    Hi,
    It's not an issue with direct privilege. Actually the package is working when i execute it with in a ananymous block, but the same get fails when execute it through procedures...
    Even we have given COMMENT ANY TABLE priv to the schema and that too didn't work out.
    awaiting your reply.
    -Saravanan

  • Admin Task 2008 fails while executing from BIDS environment

    Hello,
    we developed a custom SSIS pcakge for automating master data load in BPC 7.5 MS.
    The packages works fine when running form Data Managaer.
    When executing the package from Business Intelligense development studio environement, only Admin Task 2008 with Create Dimension based on the SQL table option fails.
    The user id has full authrozation in BPC.
    Another information is that even this works fine when executing the package inside the server network.
    But fails when executing this by logging to application server remotely.
    Note that Run32bit property is already set to false.
    Error message it gives is : The Task Create Dimension Fails
    any expert thoughts are welcome.

    0x80070047 = "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept."
    You must have some non-standard policy or restriction applied to the system hosting the share.
    Jason | http://blog.configmgrftw.com

Maybe you are looking for

  • How to add folder name to document library view

    Using Project Server 2010. We have a set of standard folders on each of our project sites for Requirements, Development, Testing, etc.  Currently, we display this library like you would see in File Explorer - you see a list of folders at the top, dou

  • Reports on Middle Tier

    the folling 2 files are located in ORACLE_HOME\NET80\ADMIN 1) tnsnames.ora 2) sqlnet.ora Though the following changes have been made in the below 2 file tnsnames.ora Changes - Rep60_Engine.world = (ADDRESS=(PROTOCOL=tcp) (HOST=80.1.0.88)(PORT=1949))

  • Chaining firewire drives

    Ok not sure where to ask this so I'll start here. My Mac mini has the "square" firewire port which I connected that to a small "MiniMax" external. All is well, I see the MiniMax on my desktop. But how do I "chain" from the MiniMax now? I've plugged w

  • Cannot open anything in my evay watch list since update

    When I go to my watch list in Ebay and click on an item it give me an error message to check item location. If I add something new to watch list I can open it until I have left this page and then it doesn't work again. This works in other browser.

  • Error_bad_netpath

    Hello colleagues, SAP server doesn't started. It was happened after one of windows restarts. And this error arises: "Unable to change to directory stg-sam\saploc\DMI\JC00\work. {Error 53 ERROR_BAD_NETPATH: the network path was not found}[ntservstart.