PSUNX failed to post files to the report repository

Dear All,
i've just faced this issue. Before submitting here, this i've tried various things posted on web but not getting the solution,So posting here.
If someone might have an idea about this...
These are my settings
Report Node Definition URL
http://irshr.irs.co.id:8000/psreports/irshr
URI Host: irshr.irs.co.id
URI Resource:SchedulerTransfer/irshr
Peoplesoft ligin URL :http://irshr.irs.co.id:8000/psp/irshr/EMPLOYEE/HRMS......
and the error
       11:18:07AM      Request is reassigned from server PSNT to server PSUNX      
10      11:18:19AM      Process request completed successfully.      
10      11:18:33AM      Java Exception: Error while wr ite to file:java.lang.StringIn dexOutOfBoundsException: Strin g index out of range: -1  (63, 49)      
10      11:18:33AM      SchedulerTransfer Servlet error.      
       11:18:33AM      PSUNX failed to post files to the report repository.  Server scheduled to try again on 2011-02-07-11.18.47.999881.  See log      
10      11:18:48AM      Java Exception: Error while wr ite to file:java.lang.StringIn dexOutOfBoundsException: Strin g index out of range: -1  (63, 49)      
10      11:18:48AM      SchedulerTransfer Servlet error.      
       11:18:48AM      PSUNX failed to post files to the report repository.  Server scheduled to try again on 2011-02-07-11.19.02.999526.  See log      
10      11:19:03AM      Java Exception: Error while wr ite to file:java.lang.StringIn dexOutOfBoundsException: Strin g index out of range: -1  (63, 49)      
10      11:19:03AM      SchedulerTransfer Servlet error.      
       11:19:03AM      HTTP transfer error.Also have the role "process sheduler admin" assigned to PS.
Standard reports of Peoplsoft are running well but this is a customised SQR report that is giving error.
-Regards

Michel,
This is the SQR code.(My first SQR report) :-)
! IRSEMPCN.sqr: Employee Report                                 *
!  Description:  Employee Report 
!               Confidentiality Information:                           *
! This module contains confidential and proprietary information        *
! of Oracle; it is not to be copied, reproduced, or transmitted        *
! in any form, by any means, in whole or in part, nor is it to         *
! be used for any purpose other than that for which it is              *
! expressly provided under the applicable license agreement.           *
! Copyright (C) 2007 Oracle. All Rights Reserved.                      *
!       Creator     : ****                                    *
!       Date       : 29 Juni 2010                                      *         
#Include 'setenv.sqc'    !Set environment
#Include 'datetime.sqc'  !Routines for date and time formatting
#Include 'number.sqc'    !Routines to format numbers
#Include 'stdapi.sqc' 
#Include 'datetime.sqc'  !Routines for date and time formatting
#Include 'datemath.sqc'  !Routines for date arithmetic
#Include 'number.sqc'    !Routines to format numbers  
begin-report
  do Init-DateTime
  do Init-Number
  do Get-Current-DateTime
  do Init-Report
!  do Reset
  do Stdapi-Term
end-report
begin-setup
declare-variable
    text      $BU
!    text1     $plant
!    text2         $empid
end-declare
end-setup
! Procedure: Init-Report
! Description: Initialise header and run control variables.
begin-procedure Init-Report
  move 'IRSEM1' to $ReportID
  move 'IRS Employee' to $ReportTitle
  do Stdapi-Init
  if $prcs_process_instance = ''
  else
     do Select-Parameters
  end-if
  do Report
end-procedure
! Procedure: Select-Parameters
! Description : Select the parameter values from the run control page
begin-procedure Select-Parameters
begin-select
PARA.IRS_BU
  let $BU    = &PARA.IRS_BU
!  let $plant = &PARA.IRS_DEPT
FROM PS_PRCSRUNCNTL_EMP PARA
WHERE PARA.OPRID       = $prcs_oprid
AND   PARA.RUN_CNTL_ID = $prcs_run_cntl_id
end-select
do Get-OPRCLASS ($prcs_oprid,$oprclass)
do Get-SetId($oprclass, $setid)
!do Process-Get-Employee-Details($emplid)
end-procedure
! Procedure: Get-OPRCLASS                                              !
! Descr:     Get operator class                                        !
BEGIN-PROCEDURE Get-OPRCLASS ($PRCS_OPRID, :$oprclass)
LET $OPRCLASS =''
BEGIN-SELECT
OPRCLASS    &OPRCLASS
   move  &OPRCLASS   to $oprclass
FROM PSOPRDEFN
WHERE OPRID = $PRCS_OPRID  
END-SELECT
END-PROCEDURE Get-OPRCLASS
! Procedure: Get-SetId                                                 !
! Descr:     Get Set ID                                                !
BEGIN-PROCEDURE Get-SetId($OPRCLASS, :$setid)
LET $setid =''
BEGIN-SELECT
SETID    &SETID
   move  &SETID   to $setid
FROM PS_OPR_DEF_TBL_HR
WHERE OPRCLASS = $OPRCLASS  
END-SELECT
END-PROCEDURE Get-SetId
! Procedure: Report
! Description:
begin-procedure Report
    !let $FileName = 'E:\psft\psdmo\sqr\' || 'IRSEM1' || to_char(#prcs_process_instance) || '.csv'
    let $FileName = '{FILEPREFIX}' || '\IRSEM1' || '.csv'
    open $FileName as 1 for-writing record=20000:VARY
    write 1 from 'Business Unit,Department,Grade,Count'
    do Process-Get-Employee-Details($BU)
    close 1  
end-procedure
! Procedure: Process-Get-Employee-Name
! Description: Get Employee Name
begin-procedure Process-Get-Employee-Details($BU)
begin-select
PS_BUSUNIT_HR_VW.DESCR        &BUSINESSUNIT ,
PS_DEPT_TBL.DESCR             &DEPARTMENT ,
PS_JOBCODE_TBL.DESCR          &GRADE ,
COUNT(PS_JOBCODE_TBL.DESCR)   &COUNT
   move &BUSINESSUNIT  to  $BUSINESSUNIT
   move &DEPARTMENT    to  $DEPARTMENT
   move &GRADE         to  $GRADE
   move &COUNT         to  $COUNT
   write 1 from $BUSINESSUNIT ',' $DEPARTMENT ',' $GRADE ',' $COUNT
From PS_JOB,PS_JOBCODE_TBL,PS_BUSUNIT_HR_VW,PS_DEPT_TBL
Where PS_JOB.Jobcode=PS_JOBCODE_TBL.Jobcode
and PS_JOB.BUSINESS_UNIT=PS_BUSUNIT_HR_VW.BUSINESS_UNIT
AND PS_JOB.DEPTID=PS_DEPT_TBL.DEPTID
AND PS_DEPT_TBL.EFF_STATUS='A'
And Rownum<5
Group by PS_BUSUNIT_HR_VW.DESCR,PS_DEPT_TBL.DESCR,PS_JOBCODE_TBL.DESCR
Order by  PS_BUSUNIT_HR_VW.DESCR
end-select
end-procedure          
                      

Similar Messages

  • How to refresh a local file in the Reporting Studio?

    Hello,
    I need to refresh a few local files in the Reporting Studio via script, but obviously command
    ActiveDocument.Sections["Sectionname"].Process()
    does not work, since it's not a query. What else could I use?
    Many thanks for any answer.

    I am confused...How is the solution not exactly what I look for ?
    You asked how to refresh imported data files via script.
    You correctly identified that the Imported file is not a Query.
    However if you look at the Object model closely you will notice properties that if you can think outside the box will allow you to treat the imported file like a query section.
    ActiveDocument.Sections["data.csv"].ProcessSequenceNum
    ActiveDocument.Sections["data.csv"].IncludeInProcessAllBy strategically setting unwanted sections not to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = falseand setting targeted section(s)...imported file(s) to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = trueThen
    ActiveDocument.ProcessAll()Your section(s) will refresh.
    If this is not a satisfactory solution then move the data files to a database or create a DSN entry and OCE to those files instead of importing them.

  • Error while saving model to the reporting repository with logical views

    I have created a view object in the logical model based on objects from the logical model. When I try to save the model to the reporting repository, an error occurs.` If I remove the view object, I can successfully save the model to the reporting repository. Here is the log detail:
    2012-03-01 14:00:50,419 [Thread-71] ERROR ReportsHandler - Error Exporting to Reporting Schema:
    java.lang.ClassCastException: oracle.dbtools.crest.model.design.logical.AttributeView cannot be cast to oracle.dbtools.crest.model.design.logical.Attribute
         at oracle.dbtools.crest.model.design.logical.LogicalDesign.getObjectsWithMeasurements(Unknown Source)
         at oracle.dbtools.crest.exports.reports.RSMeasurements.export(Unknown Source)
         at oracle.dbtools.crest.exports.reports.ReportsHandler.export(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$ExportToReportsSchema$1.run(Unknown Source)
    Any thoughts on what is wrong.
    Thanks

    Hi,
    thanks for feedback.
    Any thoughts on what is wrong.The program code is wrong - I logged bug for that.
    Philip

  • Have been lost, all the properties files in the CM repository (FSDB mode)

    Hi,
    I encountered the following problem: lost all descriptions to folders and files in the CM repository, which is connected to the FSDB mode. This happened as follows. At desired time connection to the server where the repository was broken, after some time the link was restored, but the repository was not available. After this portal has been restarted, and the repository to work, but lost all completed file properties, including the description.
    How do I return all the description files?

    Hi Stanislav,
    Has this issue been resolved?
    If not then the only way to restore this lost metadata would be a be restore, see sap notes 900571 and 737877 for more details.
    Regards,
    Lorcan.

  • No dsn is present in the configuration file in the reporting services 2008

    HI i have found this error in the log file of my reporting services ,
    when i comes to the Configuration file in that
    my DSN path is empty no input code is there in that DSN tags
    <DSN>
    <DSN/>
    it shows the empty tags,
    and my Current Report Server Report Credentials are Windows,Service account credentails
    will it take the problem or what
    We have repair the BIDS setup also still not able to solve my issue.
    once this is  resolved now able to send the emails using subscriptions.
    pls infom abut this , i have sufferd this problem last 20 days.
    Please update the above query with high priority
    TanQ

    Hi Ychinnari,
    According to your description, you found error in log file of reporting services, when you come to rsreportserver.config file, the DSN tag is empty.
    DSN specify the database server that hosts the report server database connection string.  The report server database is created, this value will be encrypted and added to the configuration file. To solve the problem, we need to connect to either an
    existing report server database or create a new one for this instance. For detail information, please refer to the following steps:
    Start the Reporting Services Configuration Manager and connect to the report server instance for which you are creating the database.
    On the Database page, click Change Database.
    We can create a new report server database or select an existing database, then click Next.
    Connect to the instance of the Database Engine that you will use to create and host the report server database.
    Specify properties used to create the database.
    Specify the credentials used by the report server to connect to the report server database.
    Review the information on the Summary page to verify the settings are correct, and then click Next.
    Verify the connection by clicking a URL on the Report Server URL page or Report Manager URL page.
    For detail information about Configure a Report Server Database Connection, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/ms159133.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Can't save a report file in the Reports Builder

    dev environment : w2k, Oracle92iDS(rel 2) and patch set 9.0.2.2.0
    Problem description :
    Saving a report corrupts the report file(jsp, rdf) in the reports builder, when a report has the bind variable used in the functions.
    I can execute the report well, if I don't try to save .
    The moment the file is saved and the report can never be reopened and run.
    Please note it works fine when there is no bind variabled used in the function. Here are the steps to reproduce.
    Can someone verify this, if so is there an workaround for this problem on the Reports Builder?
    ===
    set serveroutput on
    create or replace
    package Q_REP_test
    as
    type drec is record
    sdate date
    type dreccursor is ref cursor return drec;
    Procedure Get_sysdate(retdate out dreccursor);
    procedure add_days_tocurdate(no_of_days in number, retdate out dreccursor);
    end q_rep_test;
    show errors
    create or replace
    package body q_rep_Test
    as
    procedure Get_sysdate(retdate out dreccursor)
    is
    begin
    open retdate for
    select sysdate retdate from dual;
    end;
    procedure add_days_tocurdate(no_of_days in number, retdate out dreccursor)
    is
    begin
    open retdate for
    select sysdate+no_of_days retdate from dual;
    end;
    end q_rep_test;
    show errors
    ===
    Invoke the SP as follows:
    ===
    function QR_1RefCurDS return q_rep_test.dreccursor is
    tempc q_rep_test.dreccursor ;
    begin
    q_rep_test.add_days_tocurdate(:p_1,tempc);
    return tempc;
    end;
    ===
    1. Create a report
    2. create an user parameter(p_1)
    3. add a pl/sql as above
    4. run it(to verify the report works)
    5. save it.
    6. close the report
    7. Open it again, you get an as
    "REP-0002: Unable to retrieve a string from the Report Builder Message file". Now it is corrupted and can't be used at all.

    Mac OS X 10.9.2
    MacBook Pro Retina 15" Late 2013 w/ nVidia GT 750M
    Adobe Audition 6.0 Build 732 (64 bit)
    Downloaded WAV file from internet in a ZIP. Unzipped it. Played it in iTunes. Quit iTunes. Right clicked the file and chose Open With and Adobe Audition CC. I'm pretty sure this is the first time I've opened Audition on this computer, since I just recenly upgraded from an older MacBook. Edited the WAV, had the issue. Read the forums, closed and was prompted to save. Saved and then it finished closing. Right clicked on the file again and chose Open With and Adobe Audition CC. Now the file gave me the option to Save or Save As depending on how much further I edited the file, which was just cutting out more of the track. The razor tool, though, still not available. Had to put the cursor where I wanted, then used the Shift and Home buttons to select the beginning part of the track and the Delete key to remove it.

  • How can I incluce a hyperlink to TDMS file in the report?

    Hi,
    I am storing the measured data in TDMS file in each step. File name is written to the ResultText property so it is visible in the report.
    I would like to have hyperlink in the report that opens this TDMS file automatically either with DIADEM or with the TDMS VIEWER (LabVIEW application)
    Any help in creating hyperlink in the report (XML, HTML) would help.
    Thanks,
    Andras

    Hi Andras,
    you can also write the links within a new step to the report.
    As shown in the attached file.
    Regards
    DianaS
    Attachments:
    Sequence File 2.seq ‏5 KB
    hallo3.vi ‏12 KB

  • How to see the log file on the Reports Application server?

    Hi,
    I am new to this Reports, please correct me if i am wrong or in the wrong forum, we have a java based front-end application which calls oracle reports to display requested reports. We are using oracle reports (9i/10g). I need work on a report, It is working fine if i provide parameters on the report itself, but if i run from the application it is not running properly. I want to see the parameters the application is sending to this report, is there any way that i can some log file or any other one on the report server?
    thanks,

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • Store the video file in the report?

    hi folks,
    I am new in this area, and have one question. Can we embed/store multimedia file e.g. image/video in the BW report, let's say when I open the report, there is hyperlink that will take me to access the multimedia file, or even play it on the web when I view the report?
    Can SAP Business Intelligence support this requirement? How is the mechanism?
    many thanks in advance for your kind answer.
    salomon

    Hi
    First a couple of questions you should think about.
    1) Will you be using Bex or WEB interface?
    2) Should the image/movie be related to the data? I.e. the choise of film should be connected to a specific drill down level?
    If the film is independant of data then you can put any hyper link on either the workbook or the WEB i.e. you can show whatever you want.
    If the film is connected to the data then there is the possibility to use the document storeage in BW (in RSA1 choose the Documents tab to see more). You can attach document to metadat, masterdata or infoprovider data. One of the document types you can choose is AVI so I think that your needs will be covered. I do not have any experience in the area of connecting documents to the data but it's my impression that it's easier and most userfriendly to give access to the documents using the WEB interface.
    With Kind Regards
    Kristian

  • Error / Failed to create file in the network

    I'm using and enjoying the Oracle Data Integrator and created two packages for extraction and loading. But trying to create the file in the directory on the network get an error. I checked the permissions, but without success. Can anyone help me? Thanks.
    The error message is as follows:
    "cp: cannot stat `/mnt/ceaurpasd1-APCEA-output/mfp_pln.csv': No such file or directory
    ls: cannot access ORDWSJ0005_M*: No such file or directory
    cp: missing destination file operand after `ORDWSJ0005.txt'
    Try `cp --help' for more information.
    chmod: cannot access `ORDWSJ0005.txt': No such file or directory"

    Hi ,
    Can you provide with more information on how exactly you are trying to create a file on network driver? Did you create interfaces and call these two in the packages? or are you using OS commands? KM you are using?
    regards
    kk

  • List of reports in the reporting repository

    Hello !
    Some time after upgrading to SP15 I have found that there is no more list of reports in the configuration of reporting repository. Is it really so or it is my local problem, connected maybe with errors during installation of SP15 ?

    Hi!
    It's all ok with your reporting repository configuration, this list was removed. Instead you can activate or deactivate single reports directly in the "Reports" area.
    You find it after you turned on advanced mode within the repository manager area under "Related Areas".
    It is better to have only one place where you configure a report. I always forgot to enable a report in the repository manager after I created it.
    bye, Dirk

  • Conver rdf file to the report in apex

    Hi,
    I have to migrate my report from rdf to apex... Is there any way to do it...
    Thought of doing converion to xml in middle. But perhaps, the form2xml doesn't accepts this xml file...
    any one please help me out on this..
    Thanks,

    There is no equivalent in the APEX environment.
    Classic/Interactive reports use SQL to generate a web page.
    BI Publisher could be used as an alternative reporting mechanism to generate PDF/office documents, but there is no reason why you couldn't call Oracle Reports from APEX - if you retain your application server, of course.
    The statement of direction for oracle development tools provides a good high-level overview of oracle's recommended options.
    http://www.oracle.com/technetwork/issue-archive/2010/toolssod-3-129969.pdf
    Scott

  • How to save to data into another file in the Report Generation Toolkit

    I read a doc template and wirte many data and bmp into it. I want to create a new doc file with my own name,
    But in my test, data will be writen into my template. If user don't notice it, my template will be overriden. Can
    I save to a new file in my program? please help me about it.
    Thanks.
    br

    HI, NIhuyu
    thank your answer.
    I will try it.
    Can you tell me the meaning of star out and end out of vi?
    I am not clear about it.
    Thank your very much.
    br

  • Unable to import source files to the subversion repository

    hey ....
    i'm use jdeveloper 10.1.3.3.0 and i'm want import source files to subversion repository ...
    what this error?
    org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: 'pre-commit' hook failed with error output:
    Associations are required on commits.
    svn: MERGE of '/svn/repos/xxxxxxx': 409 Conflict (http://localhost/)
         at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.doImport(AbstractJhlClientAdapter.java:729)
         at oracle.jdevimpl.vcs.svn.imp.SVNImportWizard.executeImport(SVNImportWizard.java:476)
         at oracle.jdevimpl.vcs.svn.imp.SVNImportWizard.commitWizard(SVNImportWizard.java:204)
         at oracle.jdevimpl.vcs.svn.imp.SVNImportWizard.mav$commitWizard(SVNImportWizard.java:78)
         at oracle.jdevimpl.vcs.svn.imp.SVNImportWizard$3$1.run(SVNImportWizard.java:137)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: org.tigris.subversion.javahl.ClientException: svn: 'pre-commit' hook failed with error output:
    Associations are required on commits.
    svn: MERGE of '/svn/repos/xxxxxxxxx': 409 Conflict (http://localhost/)
         at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:435)
         at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1245)
         at org.tmatesoft.svn.core.javahl.SVNClientImpl.doImport(SVNClientImpl.java:616)
         at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.doImport(AbstractJhlClientAdapter.java:725)
         ... 5 more
    is urgent .... thanks

    Vale,
    org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: 'pre-commit' hook failed with error output:
    Associations are required on commits.Talk to your SVN repository administrator - they have put a pre-commit hook in the repository that is failing.
    John

  • Union All with Linked Servers - Works until loaded on to the report server then fails.

    Hi,
    On our production server I have 2 linked servers.  One that leads to ServiceNow via ODBC and one that leads to an HP Openview database.
    Testing these linked servers works fine.  I have a query that obtains info from each source and 'union all' together.  When i run this query in SQL Server management studio it works fine and I get info from both data sources union-ed together perfectly.
    I transfer this into Visual Studio and create a report, which again runs perfectly.
    I upload this report to the report server and try to run it and get the error: 
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'Dataset1'. (rsErrorExecutingCommand)
    For more information about this error navigate to the report server on the local server machine, or enable remote errors
    When I rummage through the log files for the report server, I find very little helpful errors, basically this:
    ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'Dataset1'. ---> System.Data.SqlClient.SqlException: Cannot
    execute the query.
    I did a test where I created a copy of the report and ran only he Servicenow  section of the report and it works, then ran only the HP section of the report and it works.  It seems the UNION ALL is the problem somehow. 
    Anyone have any ideas??
    Thanks
    Kirsty

    Hi Kirsty,
    As you posted, this issue is caused by the security configuration of Linked Server.
    Generally, in a domain environment, we can specify a domain account as the stored credentials for the report, and then configure the Linked Server to "Be made using the login’s current security context".
    However,if we specify a SQL Server login as the stored credentials for the report, please set the Linked Server security to "By using this security context", and then providing the necessary credentials to authenticate at the linked server.
    Please also add the Reporting Services Security role to the Linked Server Remote Server Login Mappings.
    For more information about Creating Linked Servers, please refer to
    http://msdn.microsoft.com/en-us/library/ff772782.aspx
    About Security for Linked Servers, please refer to
    http://msdn.microsoft.com/en-us/library/ms175537.aspx
    Regards,
    Swallow

Maybe you are looking for

  • How can I purge old supposedly deleted data in iCal?

    I normally keep my Powerbook in sleep mode with iCal running and everything behaves normall except for the usual slowness at times. However if for any reason iCal has to be closed down on restart it always restores data going back as far as May 2006

  • XML Publisher 6.5.2 MS word Template Builder fails

    Dear all, My env is: Oracle DB 10.1.0.5 on redhat Linux, XML publisher 6.5.2 on Windows 2000. While using the XML publisher GUI from the browser, I am able to connect successfully to the database. However, when I try to build a RTF template from MS w

  • What is the exact diff between  At New  and On Chnage

    hello all what is the exact diff between  At New  and On Chnage in control breaks statements. and when  shall we go for At new & when shall we go for On change on events. Plz tell with with some code.

  • My computer is always asking for passwords

    When I turn on my Mac it´s always asking for my iCloud and Keychain password. I don´t know what is happening, even if I introduce my password it will ask me again...

  • Bandwidth Limit based on Source IP?

    Hi I am trying to think of a way to apply a bandwidth limit based upon Source IP subnet. I need to have the ability to limit both the outbound and inbound traffic. So I created the following config: policy-map bw-limit-inbound  class bw-limit-class