Invalid at the top of the document error with fnd output

I am using oracle standard of writing xml to the output directory using fnd_file.put_line(fnd_file.output,'<xxxxxx>'). On a rather random basis I am getting the following error when trying to open the output file. I specified utf8 in the first line of the xml file i produce. The xml is fine but tacks on an invalid character at the end of the file. If I remove the invalid character it can read the xml. The code is definitely not causing this and I can't seem to reproduce it on demand. When I see this happen on the xml outputs I can run a regular text based concurrent program and it too gets the extra invalid character on the end but doesn't affect that type of program.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://testapps01.orangecounty.local:8013/OA_CGI/FNDWR...
</EMP_ROSTER>
Help! We are on 12.0.6 of the EBiz applications and on XML publisher version 5.6.3(XDO A)

are you using DTD or anything else ?
for DTD see last post in Re: how to register the .DTD file in Oracle Apps

Similar Messages

  • "could not get an output file for the document (error RWI 00314)"

    Hi
    We are getting the following error when running the Webi Reports "could not get an output file for the document (error RWI 00314)". The issue seems to be related to Tomcat Memory Heap size, our Tomcat Java heap Size is 1024MB. We were able to resolve  the issue by restarting the Tomcat. We cannot restart the Tomcat in Prod if this is happening frequently.
    Can some one please suggest  any other solution other than restarting the Tomcat frequently, our platform is BOBJ XI 3.1 SP3 with FP 3.1 our Wndows OS is 32 Bit.
    Thank's for your help

    Hi Sreeram,
    Earlier i also faced same kind of problem.
    To solve this kind of problems you need to shutdown the server.
    second thing is when patches missed that time also you will get this kind of problem.
    check j2ee connection is it properly working or not?
    Regards,
    samar reddy.

  • Client wanted  to delete the document created with the wrong GL with the WB

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted  to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards
    Bijudas

    document cannot be deleted in SAP
    reverse the document and then report

  • Client wanted to delete the document created with the wrong GL with the WBS

    Dear All,
    The user had by mistake posted the the document in a wrong GL with with WBS element under the Project.
    We have tried to reverse it through a reversal posting. But it could not be done.
    Client wanted to delete the document created with the wrong GL with the WBS element.
    How this can be set right?
    Please advice.
    Regards

    document cannot be deleted in SAP
    reverse the document and then report

  • When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    I don't use OpenOffice (I have it on my internal just to play around with, but seldom even open it). I do use MS Word and have few problems sharing files - it's usually a font issue so I tend to use MS fonts for documents that I know will need to be shared.
    Unless you need to make collaborative changed to the document, you could always save it as a pdf file. With Acrobat Pro you can even save a pdf file to a Word document with very little change in formatting.
    If I were you - and you have a need for .doc or .docx files to travel and play nicely - I'd just invest in MS Office. If you don't have to send a Word file, try pdf.
    Clinton

  • When printing from Preview, the document prints with large print and many lines added and pages added

    When printing from Preview, the document prints with large print and many lines added and pages added. Why does this happen?

    Thank you!!! That was the problem--scale was set at 200% (don't know why)--when I reduced it to 100% it printed perfectly.
    Thanks again for helping me resolve this problem.

  • I get the following errors with CVI 2010. "sal.h"(17​06,15) Redefiniti​on of macro '__null'.

    A project which was working with CVI 9.0 on XP does not compile with CVI 2010.
     I get the following errors with CVI 2010. "sal.h"(1706,15)   Redefinition of macro '__null'.  
    doesnt work with CVI 2010 on on win 7 too.  
    Could some one provide some insight into this please?  
    Thanks
    performance

    You wild guess is correct.
    The version of the Microsoft SDK that shipped with CVI 9.0 included a definition of __null that matched the definition that is in sal.h. You can find this definition in line 448 of CVI90\sdk\include\specstrings.h.
    The version of the Microsoft SDK that shipped with CVI 2010 included a definition of __null that no longer matches the definition that is in sal.h. You can find this definition in line 575 of CVI2010\sdk\include\spectstrings_strict.h. This is why the CVI compiler complains when it finds the sal.h definition.
    The SDK that ships with CVI has been customized to make sure that it works with the CVI compiler. But this does not include making sure that it also works with VC headers. In general, there's no way to guarantee that VC headers can be compiled in CVI, since these headers don't ship with CVI and cannot be customized.
    In this particular case, you might get it work if you include sal.h before you include windows.h. But there are no guarantees.
    Luis

  • CS5 Error with Animation Output

    Running CS5 on a Mac 10.6.4
    Every time I render, it gives the following error message:
    An output module failed. The file may be damaged or corrupted. (-1610153464)
    I've tested the files on a different machine and they open and render out fine.
    I did some searches and for some it was the dreaded Optical Flares plugin from Video CoPilot causing this same problem.
    I'm having these issues and I don't have any plugins installed.
    Re-Installed everything 3 times, trashed preferences, removed plugins from the Application support and still no luck.
    The only thing that works for me is outputting to a PNG or JPEG sequence.
    If I try to render using the Animation preset, It gives the error message.
    I also have been getting a weird "MooV" error message when I try to import certain types of quicktime files. Not all just a few random ones.
    All of this leads me to believe it may be an issue with 32 bit Quicktime.
    Any suggests on how I can get the Animation preset working again?
    Thanks.
    It gives an error message

    Sure, I had the exact problem posted at the top of this thread. Spent two days reading all the posts regarding anything that had to do with this Output Module error. I finally came upon a post of someone who was having a similar issue as I with the hang at start up. However, the post was replied to by a guy who said "Repeat the hang with only AE running,  then go to the Activity Monitor and select the QT32 Server process.   Then press the "Sample Process" button at the top of the window...It looks like both of you are having a similar problem with a third party AVI codec.  Please remove or uninstall any third party AVI codecs such as DivX,  XVid, etc. from your system and try AE again."
    "You can also temporarily disable these components by closing any QT related apps and then dragging components out of the Library/QuickTime folder on your boot drive.   If that works, try adding them back one by one until it fails again.  That is the problem codec."
    So I removed AviImporter.component from Library/Quicktime on the boot drive and these two problems were solved.
    Here is the link to the post where I found this info.
    http://forums.adobe.com/thread/634237?start=0&tstart=0

  • WCF OData Service stored procedure call generates "Operation could destabilize the runtime" error with $select option

    I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web, I came up with this code inside my service:
    [WebGet]
    public IQueryable<Entity> GetEntitiesByParameterId(int parameterId)
    return CurrentDataSource.GetEntitiesByParameterId(parameterId).AsQueryable();
    Calling the proc this way: ~WcfService.svc/GetEntitiesByParameterId?parameterId=1 executes
    the stored procedure and returns entities that should be returned. No problem there.
    Everything works well until I try to use $select OData option ie. ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name.
    Upon debugging, the method above runs without any error but it returns an Operation could destabilize the runtime error upon reaching the
    client. After so much research, apparently it is a very general error pointing to a lot of different causes. I haven't found one that really matches my particular problem. Closest are 
    http://stackoverflow.com/questions/378895/operation-could-destabilize-the-runtime
    https://social.msdn.microsoft.com/Forums/en-US/d2fb4767-dc09-4879-a62a-5b2ce96c4465/for-some-columns-entity-properties-executestorequery-failed-with-error-operation-could?forum=adodotnetdataservices 
    but none of the solutions worked on my end.
    Also, from the second article above:
    This is a known limitation of WCF DS. ...
    Second is that some of the queries won't work correctly because LINQ to EF needs little different LINQ expressions than LINQ to Objects in some cases. Which is the problem you're seeing.
    It has been posted on 2012. If it its true, are there still no updates on this? And is there any other workaround to get the $select working on the stored proc call?
    What works:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$top=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$skip-5
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$filter={filter query}
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$expand=SomeNavigationProperty
    What doesn't work:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name
    Tech details:
    EntityFramework 5, WCF Data Service 5.0, OData V3
    *I've also tried upgrading to EF6 and WCF 5.6.2 and it still didn't work.
    Any help would be appreciated. Thanks!

    Someone from SO replied to my question there and said that $select is still not supported though I couldn't find any definitive documentation about it.
    From what I gather and observed, $select breaks the stored procedure call because it tries to alter the data shape already gotten from the database and attempts to return a dynamic entity instead. Something about the stored proc returning an ObjectResult might
    be messing it up. As I have said, these are merely my observations.
    Workaround: I found a simple and elegant workaround for it though. Since my stored procedures are only getting data from the database and does
    not alter data in any way (INSERT, UPDATE, DELETE), I tried using table-valued functions that returns a table equivalent to the entity on my EF. I've found that calling this function on the Service Operation method returns an IQueryable<Entity> which
    is basically what is needed. $select also works now and so does other OData query options.
    Steps:
    Create a function on the database
    Update EDMX -> Add function
    Add new Function Import with Entity return type
    Create service operation in WCF Data Service that calls CurrentDataSource.<FunctionName>()
    Test in fiddler.
    CODES
    Database Function:
    CREATE FUNCTION GetEntities(@parameter)
    RETURN @entites TABLE(
    [Id] [int],
    [Name] [nvarchar](100),
    AS
    BEGIN
    INSERT INTO @entities
    SELECT [Id], [Name], ... FROM [EntityTable]
    RETURN
    END
    WCF:
    [WebGet]
    public IQueryable<Entity> GetEntity(int parameter)
    return CurrentDataSource.GetEntity(parameter);
    It doesn't really solve the stored procedure problem but I'm marking this as answer until someone can provide a better one as it does solve what I'm trying to do.
    Hope this helps others too. :)

  • This month I downloaded the newest version of PAGES.  Now when I try to open the documents made with this program it says "You need a newer version of PAGES to open this document."  I go to the App Store and says it has downloaded.  What to do?

    This month I downloaded the newest version of PAGES.  The documents I have typed using this App will now not open and the message says-"You need a newer version of PAGES to open this document.  Could anyone help me with this please.  Thanks.

    You have 2 versions of Pages on your Mac.
    Pages 5.2.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 110 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    You can add the icon of the missing Pages on your Dock or open Pages from the Apple menu > Recent Items list.
    Or you can archive Pages 5 so that it doesn't automatically open.
    If you are unhappy about this review/rate Pages 5 in the App Store.
    Peter

  • About updating  long text  in the document item  with bdc of fb02

    HI,
    I have a question about updating  long text  in the document item of sap:
    Can I directly updating the long text information with the fuction save_text?
    The long text is in :
    tcode: fb02 -->input document no ... --> Document overview --> select one document
    long text --> updating the value.
    Becaust I want to update some items in a G/L Account with bdc or other technique, but I found I can't   choose the items in the G/L Account with bdc automatically .That means I can't get the selected items and update them.So I try to update them with the function save_text  directly (I know the doc no,bukrs,fiscal year ,item no which will decide the long text item).
    Who can help me ?Or is there any way to solve the problem? Thanks very much.

    Yes, you can update directly using SAVE_TEXT.
    Check this for the same.
    [update long text in FB02|https://forums.sdn.sap.com/click.jspa?searchID=22194840&messageID=5418662]

  • How to get the document structure with the document number"?"

    Hello experts,
    I have now a big trouble. There is a document with the number '?' in our syste. And for this document a document structure was builded. Now I can't acess the document structure, because the system doesn't accept '?' as a document number...
    Can you help me?
    Thanks a lot!
    best regards,
    Ying

    Hi Sarita,
    thank you very much! My problem is now solved, and the documents in the structure are free again _
    best regards,
    Ying

  • The document associated with a query is not showing on the query

    I've created a document in the document tab and assigned the multi-provider and query to it.  when I run the query I don't see it anywhere and when I go to documents nothing happens.  Am I missing a step somewhere?

    HI Antony Jerald J,
    Do you have variables in your Bex Query.
    Please check the pre requisites in the following link:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/b6/53d6c4e26a4504b8971c6e690d2105/frameset.htm
    BR
    Prabhith

  • Express Document Error with PO

    Hi,
       I have one problem with PO modification.I am using me22n transaction code.
    I am modifying any information related to a PO like tax code and then saving it.After this I come out of transaction while comming back follwing error message comes-
    "Express document "Update was terminated" received from author is comming.
    Can anybody help me out for why this is happening ,plz it's very urgent.
    Thanks in advance.

    Ya I have already checked.there it is showing that following function module "MEDCM_UPDATE_REVISION" raising the error.It's not showing the exact error.
        What I am thingking is why it is happening with only few POs.I there is any error in program then it should give for all.
       I think there might be problem with PO.
       Have u come across suchkind of  problems of express document error.

  • PO output type to send a mail  to the user along with PO output as PDF file

    Hi Friends,
    I have one requirement from client.
    Client wants the PO output to be converted to PDF format and sent to User while doing the PO release through e-mail. Can anybody guide me how to Configure a New Output Type and convert the PO output into PDF and send to User through e-mail.
    Thanks
    Nazer

    This can be done with the standard form itself.
    first find out the output type u r using.
    Then goto T-code NACE and then choose EF- purchase order and then select the output type u r using.
    Then goto the 'processing Routines' at the lefe side of the screen.
    There u can find out the output forms for this output typr u r using. Here add 'Simple mail-7' in the list and then give the program name and the smartform or the script u r using.
    We can also give the mail texts for this output form.
    After that goto ME22N and then choose the 'Messages' tab and then click the simple mail and in the 'communication method' kindly provide the mail id for which the PO mail has to be sent.
    And then the mail can be viewed in the inbox of the recipient.
    in this way we can sent the PO mail to the corresponding mail address,.
    I guess this will solve ur issue.
    Thanks and Regards
    Siva
    Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM
    Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM

Maybe you are looking for

  • Problem with batch in inprocess lot

    Hi this is sathish, we have in process inspection .. In UD, batch is mandatory... if we enter new no,, it is saying that batch no not exists... we will have multiple batches in one production order, so not possible to give one batch in prod order.\ h

  • Question about shipment

    I ordered an Ipod classic and an Ipod case. The Ipod came to me with no problem. But the case, which was shipped separately has yet to get to me and it;s been almost 2 weeks. The FedEx guy claims to have come by three times but nobody was home. First

  • ADAPTER_NAME_INVALID

    HI, We are doing a JDBC-XI-RFC scenario and when we send a test message in SXMB_MONI on the receiver side we see the following error <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="INTERNAL">ADAPTER_NAME_INVALID</SAP:Code>   <SAP:P1 />   <SAP

  • Regarding screen flow logic

    The modules that we write either in PBO or PAI block , are called by the run time environment on the basis of user action or whether they are called in a order in which we have written these modules ?

  • PSS query - GRC 10

    Hi Experts, I have a query regarding PSS in GRC 10.0. 1. Is it possible to restrict the number of questions user can register in PSS? 2. Is it possible to allow user to register for PSS using only Admin Defined questions and not user defined question