Replace function in xslt for BPEL 2.0

Hi,
We have a requirement where special characters (e.g. \, ., &, @) will be replaced with ' ' .  As the position of the special characters are not fixed, I believe I won't be able to do it by substring function.
Got some link suggesting this  <xsl:value-of select="replace(description, '\n', '<p/>')" disable-output-escaping="yes" />  with <xsl:stylesheet> ='2.0' but its not working for me. I would appreciate your help .Thanks in advance.
Source: 65\Road No.1,Glasgow,Scotland
Required o/p:  65 Road No 1 Glasgow Scotland
Thanks,
Abhishek

when i test the replace in xmlspy it works, maybe you forgot to escape all the "special" characters which need to be replaced ?
xslt tested in xmlspy
[code]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
  <xsl:template match="/">
  <xsl:variable name="test" select="string('65\Road No.1,Glasgow,Scotland')"/>
  <root>
  <debug1>
  <xsl:value-of select="$test"/>
  </debug1>
  <xsl:variable name="debug2" select="replace($test,'\\',' ')"/>
  <debug2>
  <xsl:value-of select="$debug2"/>
  </debug2>
  <xsl:variable name="debug3" select="replace($debug2,'\.',' ')"/>
  <debug2>
  <xsl:value-of select="$debug3"/>
  </debug2>
  <xsl:variable name="debug4" select="replace($debug3,'\,',' ')"/>
  <debug2>
  <xsl:value-of select="$debug4"/>
  </debug2>
  </root>
  </xsl:template>
</xsl:stylesheet>
[/code]
output
[code]
<root xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <debug1>65\Road No.1,Glasgow,Scotland</debug1>
  <debug2>65 Road No.1,Glasgow,Scotland</debug2>
  <debug2>65 Road No 1,Glasgow,Scotland</debug2>
  <debug2>65 Road No 1 Glasgow Scotland</debug2>
</root>
[/code]

Similar Messages

  • Replacement function modules/method for obsolete Funtion Modules in ECC 6.0

    We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
       1.   GET_FIELDTAB
       2.   WS_EXCEL
       3.  HR_DISPLAY_BASIC_LIST
       4.  LOG_SYSTEM_GET_RFC_DESTINATION
       5.  HELPSCREEN_NA_CREATE
       6. TR_RELEASE_COMM
    Thank in Advance.
    Sarita.
    Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PM

    Hi sarita,
    for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
      CALL FUNCTION 'GET_FIELDTAB'
           EXPORTING
                LANGU               = SY-LANGU
                TABNAME             = C_STRUCTURE_NAME
                WITHTEXT            = ' '
           TABLES
                FIELDTAB            = IDFIES
           EXCEPTIONS
               INTERNAL_ERROR      = 01
                NO_TEXTS_FOUND      = 02
                TABLE_HAS_NO_FIELDS = 03
                TABLE_NOT_ACTIV     = 04.
    Replacement :
    CALL FUNCTION 'DDIF_NAMETAB_GET'
      EXPORTING
        TABNAME           =  C_STRUCTURE_NAME
      ALL_TYPES         = ' '
      LFIELDNAME        = ' '
      GROUP_NAMES       = ' '
      UCLEN             =
    IMPORTING
      X030L_WA          =
      DTELINFO_WA       =
      TTYPINFO_WA       =
      DDOBJTYPE         =
      DFIES_WA          =
      LINES_DESCR       =
    TABLES
      X031L_TAB         =
       DFIES_TAB         = IDFIES
    EXCEPTIONS
       NOT_FOUND         = 1
       OTHERS            = 2
    For WS_EXCEL  use GUI_DOWNLOAD.. here is sample code
    CALL FUNCTION 'WS_EXCEL'
    EXPORTING
       FILENAME            = 'D:\FILE1.xls'
      SYNCHRON            = ' '
      TABLES
        DATA                = itab
    EXCEPTIONS
       UNKNOWN_ERROR       = 1
       OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Repalcement :
    data : l_filename type string.
    l_filename  = 'D:\FILE1.xls'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = l_filename
      FILETYPE                        = 'ASC'
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'D:\FILE1.xls'
       APPLICATION            =
       PARAMETER              =
       DEFAULT_DIRECTORY      =
       MAXIMIZED              =
       MINIMIZED              =
       SYNCHRONOUS            =
        OPERATION              = 'OPEN'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        others                 = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Replace function not working for XML CLOB data

    Hi all,
    I am generating XML using DBMS_XMLGEN in oracle 10g. After generating the XML, I am replacing the ROW tags with appropriate tag name using REPLACE function. Sometimes the tag name is not replaced correctly.
    Eg.I am replacing </Cargo_ROW> with </CargoDetail>. But sometimes in one xml, this tag is coming as </CargoDetROW> or </CargoDetaiW>. The XML size is always huge and the same tag is repeated so many time in the loop and in the same XML, only one tag will be replaced incorrectly. This also not happening for all XMLs.
    If any one knows the cause about this problem or solution, please share the same.
    thanks,

    Yes Anton, you are right..
    It was typecasting problem
    replace supports clob
    Check this out
    SQL> declare
      2  xmldata clob;
      3  Begin
      4  xmldata:='<Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM" versio
      5  <Transaction>
      6  <TransactionType>ORIGINAL</TransactionType>
      7  <ControlNumber>60022449779</ControlNumber>
      8  <BookingHeader>
      9  <PortCodeOriginal>GBSOU</PortCodeOriginal>
    10  <Contact>.</Contact>
    11  <PhoneContact>.</PhoneContact>
    12  </BookingHeader>
    13  <PartyInformation>
    14  <PartyDetails>
    15  <PartyId>10002866</PartyId>
    16  <Type>SHIP</Type>
    17  <Name1>L LTD.</Name1>
    18  </PartyDetails>
    19  </PartyInformation>
    20  <Cargo>
    21  <CargoDetROW>
    22  <CargoHeader>
    23  <CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
    24  <CargoId>RW9330P013948</CargoId>
    25  </CargoHeader>
    26  <CargoDimensions>
    27  <Length>1</Length>
    28  <Width>2</Width>
    29  </CargoDimensions>
    30  </CargoDetail>
    31  <CargoDetROW>
    32  <CargoHeader>
    33  <CargoReceivedSeqNo>600015391791</CargoReceivedSeqNo>
    34  <CargoId>RW9330P01394AA</CargoId>
    35  </CargoHeader>
    36  <CargoDimensions>
    37  <Length>2</Length>
    38  <Width>2</Width>
    39  </CargoDimensions>
    40  </CargoDetail>
    41  <Cargo_ROW>
    42  <CargoHeader>
    43  <CargoReceivedSeqNo>600015391792</CargoReceivedSeqNo>
    44  <CargoId>RW9330P01322</CargoId>
    45  </CargoDetaiW>
    46  <CargoDimensions>
    47  <Length>1</Length>
    48  <Width>2</Width>
    49  </CargoDimensions>
    50  </Cargo_ROW>
    51  </Cargo>
    52  </Transaction>
    53  </Message>';
    54  xmldata:=to_clob(regexp_replac(xmldata,'</Cargo_ROW>|</CargoDetaiW>|</CargoDetROW>','</CargoDetail'));
    55  xmldata:=to_clob(regexp_replace(xmldata,'<Cargo_ROW>|<CargoDetaiW>|<CargoDetROW>','<CargoDetail>'));
    56  dbms_output.put_line(xmldata);
    57  end;
    58  /
    <Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM"
    version="1.0">
    <Transaction>
    <TransactionType>ORIGINAL</TransactionType>
    <Contro
    lNumber>60022449779</ControlNumber>
    <BookingHeader>
    <PortCodeOriginal>GBSOU</Por
    tCodeOriginal>
    <Contact>.</Contact>
    <PhoneContact>.</PhoneContact>
    </BookingHead
    er>
    <PartyInformation>
    <PartyDetails>
    <PartyId>10002866</PartyId>
    <Type>SHIP</Ty
    pe>
    <Name1>L
    LTD.</Name1>
    </PartyDetails>
    </PartyInformation>
    <Cargo>
    <CargoDetail>
    <CargoHea
    der>
    <CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
    <CargoId>RW9330P01394
    8</CargoId>
    </CargoHeader>
    <CargoDimensions>
    <Length>1</Length>
    <Width>2</Width>
    </CargoDimensions>
    </CargoDetail>
    <CargoDetail>
    <CargoHeader>
    <CargoReceivedSeq
    No>600015391791</CargoReceivedSeqNo>
    <CargoId>RW9330P01394AA</CargoId>
    </CargoHe
    ader>
    <CargoDimensions>
    <Length>2</Length>
    <Width>2</Width>
    </CargoDimensions>
    <
    /CargoDetail>
    <CargoDetail>
    <CargoHeader>
    <CargoReceivedSeqNo>600015391792</Carg
    oReceivedSeqNo>
    <CargoId>RW9330P01322</CargoId>
    </CargoDetail>
    <CargoDimensions>
    <Length>1</Length>
    <Width>2</Width>
    </CargoDimensions>
    </CargoDetail>
    </Cargo>
    </Transaction>
    </Message>
    PL/SQL procedure successfully completed.
    SQL> Twinkle
    Edited by: Twinkle on Nov 26, 2009 6:05 PM

  • REPLACE function in PSP for formatting

    Hi everyone,
    <p>I am coding PL/SQL server pages at the moment and am trying to produce an onscreen report.
    <br>I was just wondering if it is possible to use the REPLACE function to replace a part of a string with the same thing but in bold?
    for example, I have tried:
    <p>
    htp.p('<TD WIDTH="43%" valign="top" align="left">'||REPLACE(var_comments,'''TEST''',||'<b>TEST</b>'||')'||'</TD>'); <p>but it isn't working. I just wanted to check it was possible and if so, where am I going wrong??
    <p>
    Thanks in advance!

    This will work:
    htp.p('<TD WIDTH="43%" valign="top" align="left">'||REPLACE(var_comments,'''TEST''',||'&lt;b&gt;TEST&lt;/b&gt;'||')'||'</TD>');I also suggest generating your table HTML using the htp.table... procedures.

  • XSLT and XQuery recommendation for BPEL and OSB

    Hi,
    1. Why is XQuery recommeded for OSB and XSLT for BPEL. Are there any specific performance optimization reason behind this.
    2. Apart from OSB and BPEL, both XSLT and XQuery has xml transformation options and creating HTML. What is the difference between these two.
    Thanks in advance!

    you can create the graphical view of Xquery in Eclipse but not for XSLT
    Xquery is much faster than XSLT in OSB.
    Through XSLT however you can achieve more complex transformation.
    OSB has its historic origins in BEA Aqalogic stable and so Xquery was widely used used even though XSLT is supported. It is a matter of choice(your standards in your organization,your developer skillsets,your re-usable libraries etc )
    In Jdeveloper you can develop xslt in graphical mode though and attain complex transformation

  • What to use for the replace XSLT for  0xA charater?

    We are getting data from a vendor and in some text it has a 0xA hex value (newline) in it. I am looking at using a the replace function to remove this from the string but I was not sure what to tell the replace function what to search for. I am using 11.1.1.6 Jdeveloper
    Sorry if this is not the correct place to post this question and thank you for any assistance.

    Please look at the following link :
    http://stackoverflow.com/questions/552762/removing-all-n-r-characters-from-a-node-xslt
    Basically, use the translate(., '&#xA;', '') function.

  • Xslt transformation rules for BPEL

    Hi there,
    Can anyone advise where I can find the xslt transformation rules for BPEL. I am unable to find the mentioned file "114.XSLTTransformations".
    Best regards!
    Linda

    I installed the BPEL process manager and find the 114.XSLTTransformations tutorial project, but the sample xslt file is for a specific xml file but not for a general bpel file, which doesn't help with my problem.
    For instance, if I want to transform a bpel file to other formats using xslt, how to handle "partner link" structure of bpel?
    Best regards,
    Linda

  • Issue for using replace or substring function in OBIEE for Essbase.

    Hello,
    We are Getting data from essbase cubes. I am trying to take out a part of characters from a data in a column. When i was trying to you replace function directly in a report, if i use the logic for only that column its work well. But when i was trying to add metric column to that report then i am getting this error.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
    SQL Issued: SELECT REPLACE("CLIN OIC"."Gen2,CLIN OIC", '_CLIN_OIC', ' ') saw_0, Revenue."Job Profit" saw_1 FROM RADAR ORDER BY saw_0
    Kindly help me to fix this issue and share you suggestions.

    Hello,
    We are Getting data from essbase cubes. I am trying to take out a part of characters from a data in a column. When i was trying to you replace function directly in a report, if i use the logic for only that column its work well. But when i was trying to add metric column to that report then i am getting this error.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
    SQL Issued: SELECT REPLACE("CLIN OIC"."Gen2,CLIN OIC", '_CLIN_OIC', ' ') saw_0, Revenue."Job Profit" saw_1 FROM RADAR ORDER BY saw_0
    Kindly help me to fix this issue and share you suggestions.

  • Replace function - only for characters?

    When I'm using the replace function below, I get an error message stating:
    replace(char,char) in java.lang.String cannot be applied to (java.lang.String,java.lang.String)
    Does anyone know why this happening? Shouldn't this function work for strings? My JSP is below, thanks in advance!
    <%= request.getParameter("overrides")%>
    <p>
    <% String message = request.getParameter("overrides"); %>
    <%= message %>
    <% message = message.replace("WRKS_FULL_DAY","Full Day Timecode"); %>
    <%= message %>

    Some examples of how to do it:
    import java.util.*;
    public class newT {
         public static void main(String[] args) {
             String targetString = "Hello, Hello, Goodbye,";
             String results = targetString.replaceAll(",", "\n");           
             System.out.println(">>" + results + "<<");
             String x = System.getProperty("line.separator");
             String resultsx = targetString.replaceAll(",", x);           
             System.out.println(">>" + resultsx + "<<");         
                 String[] strArray = targetString.split(",");
                 String results2 = strArray[0];
                  if ( strArray.length > 1) {
                        for (int i =1; i < (strArray.length); i++) {
                             results2 = results2 + "\n" + strArray;
    if (targetString.endsWith(",")) {
         results2 = results2 + "\n";
         System.out.println(">>" + results2 + "<<");

  • Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    No..  You can buy the Compressor (along with Mainstage) via the App Store as a separate download but STP and Waveburner are discontinued products. Some of STP's functionality can now be found in Final Cut Pro X...
    Note: Mainstage, Compressor, Waveburner and STP were part of the full version of Logic Studio 2.0 (which also included Logic Pro 9 ) and sold for $999 compared to Logic Pro X which retails at $200...
    The Apple loops/Jam packs that came as part of Logic Studio 2.0 now come free with Logic Pro X (and did so with the Appe store version of Logic Pro 9) .. as part of the additional downlaod

  • Replace function for HTML tags

    Hie Guys,
    I would like to get rid of the HTML tags from a column/object in my report using the "Replace" function. Basically, I want to replace whatever the content is between "<" & ">" i.e. the opening and closing tags. I know I can use the "Pos" function to identify the position of "<" & ">", but I am not sure exactly how to achieve this in Webi. FYI -  "Read content as HTML" & "Read content as Hyperlink" did not resolve the issue. Can anyone please help? Thanks.

    Hi Jeewan,
    It will be very tedious to do this at Webi level.
    I have tried below example. It might help you to work around your issue; however, not completely:
    1. Created an Excel and inserted single value in first column as:
    <html><b>this is yuvraj</b></html>
    2. Used it as source and created a Webi report in Rich client.
    3. Applied SubStr recursively using Pos function and created below variables:
    test : =Substr([column_1]; Pos([column_1];">")+1;Length([column_1]))
    test1: =Substr([test]; Pos([test];">")+1;Length([test]))
    test2 : =Substr([test1]; 0;Pos([test1];"<")-1)
    The output has been attached.

  • Using Translate() function of XSLT ...

    Hi guys
    I have an xml document that i am converting into an html document using XSLT. I need to replace the XML new lines(&#10) with html new lines (<br>) while the xslt transform takes place on my xml document.
    For this I have found the translate function of XSLT but I need to use it on a specific tag and not all the tags in the xml document.
    <ExampleTag>
    1 first line
    2 second line
    3 third line
    </ExampleTag>
    translate(string, replaced_text, replacement_text)
    so I need to get my tags value in the variable string which is:
    1 first line
    2 second line
    3 third line
    and replaced_text: '&#10' and replacement_text: '<br>'
    but the problem is XSLT syntax is so bad that i just cant devote enough time to learn it. Any suggestions for the syntax guys?? an example would be extremely useful.
    cheers :)

    Hey
    after a bit of struggle came up with this:
    <xsl:template match="ExampleTag">
    <xsl:variable name="string" select="."> </xsl:variable>
    translate(string, "&#10", "</br>" )
    <xsl:value-of select="$string"/>
    </xsl:template>
    but its not working :(
    any suggestions??

  • XSL Replace Function

    Hi all
    I'm trying to convert an xml document from one format to another format.I'm writing a stylesheet for this.I'm kind of new to XSLT.What I want is to replace a string with another only if exact match occurs for eg:
    if i'm looking for the string "input" in the document it should replace only input variable in the following string but not "input_array".
    <function_code>
    y = input_array[0];
    yp = 0;
    time_previous = time_array[0];
    result_array[0] = y;
    for (int i = 1; i < channel_size; ++i) {
         double input = input_array;
         double time = time_array[i];
         double h = time - time_previous;
         double k = h/2.0;
         double A = k*(omega_sq*input - 2*zeta*omega*yp - omega_sq*y); //k*calculate_ypp( time, y, yp, input );
         double Beta = k*(yp + A/2.0);
         double B = k*(omega_sq*input - 2*zeta*omega*(yp+A) - omega_sq*(y+Beta)); //B = k*calculate_ypp(time+k, y+Beta, yp+A, input);
         double C = k*(omega_sq*input - 2*zeta*omega*(yp+B) - omega_sq*(y+Beta)); //C = k*calculate_ypp(time+k, y+Beta, yp+B, input);
         result_array[i] = C;
    } </function__code>
    ,the replace function XSLT provides replaces all occurrences of input i.e input followed by anything.Is there a way to do it??
    thanks for your time and valuable inputs.
    Sree

    Hi
    I wrote my own functions to check for the exact match and replace but i have another issue,since there is no variable reassignment in xslt how should i implement something like this
    replace_code = replace_all_names(oldname,newname,replace_code);
    where replace_code consists my code replaced and once any replacement occurs i have to pass it as an input for the next replacement.
    thanks
    Sree

  • Replace() function doesn't work in Application Designer?

    I'm using PeopleSoft Application Designer 8.51. I'm trying to do a simple Replace function so I can escape single quotes rather than allow them to blow up the sql query.
    &deptid = Replace(&deptid, "'", "''");
    App Designer chokes when I hit Save: "Invalid function parameter type. (2,19)"
    According to the docs I'm using this correctly: http://docs.oracle.com/cd/E26239_01/pt851h3/eng/psbooks/tace/book.htm?File=tace/htm/tace14.htm#H4095
    Even if I try to execute the example right out of the documentation, I get the same error: REPLACE("StringFun", "Fun", "Number");
    Is this a bug in app designer? REPLACE is a super common thing, it's not something obscure. How can this not work?
    Thanks in advance.

    I figured this out. “Replace” is a strange duck function that relies on offsets. “Substitute” is the magic I needed, works just like I was expecting Replace to work. The documentation I was reading on Replace was for “ PeopleSoft Analytic Calculation Engine” rather than peoplecode. I’ll pay closer attention to that next time. Maybe this will help someone else...

  • Will Apple replace my Logic Board for free?

    Sounds crazy I know. But I read a bunch of different threads on many sites saying they replace it for free and some say they don't. Let me explain why I believe I shouldn't pay to get this repaired. Since I bought my MBP I've had problems from it. When I got it I kept getting the message saying...you need to restart your computer...otherwise known as a Kernal Panic. I took it to apple , they couldn't find the problem so they replaced the hard drive for free. This didn't fix the problem but I did not feel like having to continue to take my computer to apple because I do all of my work on my computer so I really didn't the time and I just worked around it. Just recently my computer has began to shut off randomly while using certain programs such as Chrome and Apple Motion. After putting a thread on here I've learned that this is a kernel panic once again but being caused by the logic board. Now I don't know if I received a faulty computer but day one I've been having these problems. Which is the reason I'm asking will Apple repair what wasn't caused by the user?
    I need to add that I love Apple and their products, I've had and have many computers and other devices from them that function flawlessly. This MacBook Pro is the only thing I'm having a problem with.
    Thanks for any help that anyone one can provide.

    Took me a little bit to get this posted becuase i just had another kenrmal panic, but here it is.
    Interval Since Last Panic Report:  98600 sec
    Panics Since Last Report:          4
    Anonymous UUID:                    C77BF78C-FFD1-4EB6-A92F-B6B2D541D97A
    Fri May 17 15:33:10 2013
    panic(cpu 1 caller 0xffffff7f80966007): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff809faaf000 0x0a5480a2, D0, P3/4
    Backtrace (CPU 1), Frame : Return Address
    0xffffff807bbe3290 : 0xffffff8000220792
    0xffffff807bbe3310 : 0xffffff7f80966007
    0xffffff807bbe33a0 : 0xffffff7f80a5eb83
    0xffffff807bbe3400 : 0xffffff7f80a5ebf7
    0xffffff807bbe3470 : 0xffffff7f80d60855
    0xffffff807bbe35b0 : 0xffffff7f80a82ddd
    0xffffff807bbe35e0 : 0xffffff7f8096fd6a
    0xffffff807bbe3690 : 0xffffff7f8096b43c
    0xffffff807bbe3880 : 0xffffff7f8096bebe
    0xffffff807bbe3970 : 0xffffff7f81e97617
    0xffffff807bbe39c0 : 0xffffff7f81e97a90
    0xffffff807bbe3a00 : 0xffffff7f81e96289
    0xffffff807bbe3a30 : 0xffffff7f81e41e70
    0xffffff807bbe3a50 : 0xffffff7f81e62584
    0xffffff807bbe3a80 : 0xffffff7f81e62311
    0xffffff807bbe3ad0 : 0xffffff7f81e622c9
    0xffffff807bbe3b20 : 0xffffff7f81e62646
    0xffffff807bbe3b40 : 0xffffff7f81e849bc
    0xffffff807bbe3b70 : 0xffffff8000656494
    0xffffff807bbe3be0 : 0xffffff80006567fc
    0xffffff807bbe3c40 : 0xffffff8000656fbb
    0xffffff807bbe3d80 : 0xffffff80002a3f08
    0xffffff807bbe3e80 : 0xffffff8000223096
    0xffffff807bbe3eb0 : 0xffffff80002148a9
    0xffffff807bbe3f10 : 0xffffff800021bbd8
    0xffffff807bbe3f70 : 0xffffff80002aef10
    0xffffff807bbe3fb0 : 0xffffff80002daec3
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(7.3.2)[97284661-2629-379E-B86B-D388618E8C30]@0xffffff7f808 ff000->0xffffff7f80bfafff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[5C23D598-58B2-3204-BC03-BC3C0F00BD32]@0xffffff 7f80889000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[7C8672C4-8B0D-3CCF-A79A-23C62E90F895]@0xff ffff7f808ed000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[D0A1F6BD-E66E-3DD8-9913-A3AB8746F422]@0 xffffff7f808b4000
             com.apple.nvidia.nv50hal(7.3.2)[38ACBB3D-4E3C-3883-9A4B-67F15592905F]@0xffffff7 f80bfb000->0xffffff7f80f1dfff
                dependency: com.apple.NVDAResman(7.3.2)[97284661-2629-379E-B86B-D388618E8C30]@0xffffff7f808 ff000
                dependency: com.apple.iokit.IOPCIFamily(2.7)[5C23D598-58B2-3204-BC03-BC3C0F00BD32]@0xffffff 7f80889000
             com.apple.GeForce(7.3.2)[7E1D7726-416F-3716-ACCB-E1E276E35002]@0xffffff7f81e410 00->0xffffff7f81f03fff
                dependency: com.apple.NVDAResman(7.3.2)[97284661-2629-379E-B86B-D388618E8C30]@0xffffff7f808 ff000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[7C8672C4-8B0D-3CCF-A79A-23C62E90F895]@0xff ffff7f808ed000
                dependency: com.apple.iokit.IOPCIFamily(2.7)[5C23D598-58B2-3204-BC03-BC3C0F00BD32]@0xffffff 7f80889000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[D0A1F6BD-E66E-3DD8-9913-A3AB8746F422]@0 xffffff7f808b4000
    BSD process name corresponding to current thread: WindowServer
    Mac OS version:
    11G63b
    Kernel version:
    Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
    Kernel UUID: FF3BB088-60A4-349C-92EA-CA649C698CE5
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 1670784702284
    last loaded kext at 831289902843: com.xvx.XVXDevice          1.5.2 (addr 0xffffff7f80795000, size 65536)
    last unloaded kext at 333662557290: com.apple.driver.AppleUSBUHCI          5.1.0 (addr 0xffffff7f81759000, size 65536)
    loaded kexts:
    com.xvx.XVXDevice          1.5.2
    com.digidesign.iokit.DigiIO          8.0.3f1
    com.digidesign.iokit.DigiDal          8.0.3f1
    com.apple.driver.AppleIntelProfile          85.2
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleHDA          2.2.5a5
    com.apple.driver.AppleMikeyDriver          2.2.5a5
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.AGPM          100.12.75
    com.apple.driver.AppleIntelHDGraphics          7.3.2
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.driver.AppleIntelHDGraphicsFB          7.3.2
    com.apple.driver.AppleSMCPDRC          5.0.0d8
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.8f17
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AudioIPCDriver          1.2.3
    com.apple.GeForce          7.3.2
    com.apple.driver.AppleSMCLMU          2.0.1d2
    com.apple.driver.AppleMuxControl          3.1.33
    com.apple.driver.ApplePolicyControl          3.1.33
    com.apple.driver.ACPI_SMC_PlatformPlugin          5.0.0d8
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.driver.AppleUSBTCButtons          227.6
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.8f17
    com.apple.driver.AppleUSBTCKeyboard          227.6
    com.apple.driver.AppleIRController          312
    com.apple.driver.AppleUSBCardReader          3.0.6
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.iokit.SCSITaskUserClient          3.2.1
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCISerialATAPI          2.0.3
    com.apple.iokit.IOAHCIBlockStorage          2.1.0
    com.apple.driver.AppleUSBHub          5.1.0
    com.apple.driver.AppleFWOHCI          4.9.0
    com.apple.driver.AirPort.Brcm4331          561.7.22
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.iokit.AppleBCM5701Ethernet          3.2.4b8
    com.apple.driver.AppleAHCIPort          2.3.1
    com.apple.driver.AppleUSBEHCI          5.1.0
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          195.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.4
    com.apple.security.TMSafetyNet          8
    com.apple.driver.AppleIntelCPUPowerManagement          195.0.0
    com.apple.driver.AppleProfileTimestampAction          85.2
    com.apple.driver.AppleProfileThreadInfoAction          85.2
    com.apple.driver.AppleProfileRegisterStateAction          85.2
    com.apple.driver.AppleProfileReadCounterAction          85.2
    com.apple.driver.AppleProfileKEventAction          85.2
    com.apple.driver.AppleProfileCallstackAction          85.2
    com.apple.iokit.AppleProfileFamily          85.2
    com.apple.kext.triggers          1.0
    com.apple.driver.DspFuncLib          2.2.5a5
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.iokit.IOAudioFamily          1.8.6fc18
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleHDAController          2.2.5a5
    com.apple.iokit.IOHDAFamily          2.2.5a5
    com.apple.driver.AppleGraphicsControl          3.1.33
    com.apple.driver.AppleSMC          3.1.3d10
    com.apple.driver.IOPlatformPluginLegacy          5.0.0d8
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.nvidia.nv50hal          7.3.2
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.IOPlatformPluginFamily          5.1.1d6
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.NVDAResman          7.3.2
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.8f17
    com.apple.iokit.IOBluetoothFamily          4.0.8f17
    com.apple.driver.AppleUSBMultitouch          230.5
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.2.1
    com.apple.iokit.IOUSBMassStorageClass          3.0.3
    com.apple.driver.AppleUSBMergeNub          5.1.0
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.2.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.1
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.iokit.IOFireWireFamily          4.4.8
    com.apple.iokit.IO80211Family          420.3
    com.apple.iokit.IOEthernetAVBController          1.0.1b1
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.iokit.IOUSBFamily          5.1.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.9
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.driver.DiskImages          331.7
    com.apple.iokit.IOStorageFamily          1.7.2
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4
    Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i5, 2.53 GHz, 4 GB, SMC 1.58f16
    Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 256 MB
    Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533654465238432D47372020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533654465238432D47372020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.198.19.22)
    Bluetooth: Version 4.0.8f17, 2 service, 11 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HTS545050B9SA02, 500.11 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236, 0xfa120000 / 5
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa130000 / 4
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 3
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0xfa113000 / 7
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
    USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0xfd110000 / 3

Maybe you are looking for

  • Video imported from iPhone 4 to iPhoto cuts out

    I had a video I took on my iPhone 4 and watched it several times on the phone and it was fine... Accidentally imported it with some photos and selected delete from phone because I thought it was just the pics... Now when I view the video in iPhoto th

  • Best way to record from analogue camcorder

    I have just purchased a TV@nywhere Master card with MSIPVS.  My main aim is to transfer my analogue 8mm video tapes into digital format.  I am currently running MSIPVS on an 800mhz P3 and the quality is OK but I had hoped for better.  I have chosen t

  • How to enable visio file (.vsd) preview in sharepoint 2013

    I enabled visio service, but when I click a vsd file in document, it is not show online, just download it. Awen

  • Trouble with Zen VPlus softw

    I have a Zen VPlus. I just installed the programs on the installation CD to my laptop, but now I keep getting a "friendly reminder" to register my player. Which I have already done. This reminder will not go away, not even if I hit the (X) button in

  • JCD - making a web service client call from a jcd

    Hi, We would like to make web service client calls from our jcd's in Java CAPS 5.1.2 to an external web services running under a Tomcat 5.5 servlet. What is the recommended method of calling web services from a jcd? We attempted to import a WSDL and