Forum Discussion

Srinivas_BI's avatar
Srinivas_BI
Regular Visitor
1 year ago

Dataflow failing to refresh

My Dataflow is failing to refresh again and again. I am getting this error please help me to reslove this.

Error: PipelineException: Oracle: ORA-01722: invalid number. RootActivityId = f9ccd029-9005-480b-bb91-10ba2c7ba570.Param1 = PipelineException: Oracle: ORA-01722: invalid number Request ID: 9b8dd861-11a5-c605-dd5a-4c59fde66a5c.

2 Replies

  • Hello Srinivas_BI ,

     

    An ORA-01722 error occurs when an attempt is made to convert a character string into a number, and the string cannot be converted into a number.
    oracle database - SQL error "ORA-01722: invalid number" - Stack Overflow

     

    Kind Regards,
    Gรถkberk UzuntaลŸ

    ๐Ÿ“Œ If this post helps, then please consider Accepting it as a solution and giving Kudos โ€” it helps other members find answers faster!

    ๐Ÿ”— Stay Connected:
    ๐Ÿ“˜ Medium |
    ๐Ÿ“บ YouTube |
    ๐Ÿ’ผ LinkedIn |
    ๐Ÿ“ท Instagram |
    ๐Ÿฆ X |
    ๐Ÿ‘ฝ Reddit |
    ๐ŸŒ Website |
    ๐ŸŽต TikTok |

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Srinivas_BI 

    The "ORA-01722: invalid number" error typically occurs when Oracle encounters non-numeric data in a column where a numeric value is expected. Here are steps to help troubleshoot and resolve this in your Power BI Dataflow:

    1. Identify the Column with Mixed Data Types:
    Look at the columns involved in your query, particularly those expected to be numeric. Check if any of them contain text or other non-numeric data that could cause this error.


    2. Use the 'TO_NUMBER' or 'CASE WHEN' Statements in SQL :
    Wrap potentially problematic columns in a 'TO_NUMBER' function or a 'CASE WHEN' statement to handle non-numeric values, e.g.:

    CASE WHEN REGEXP_LIKE(column_name, '^[0-9]+$') THEN TO_NUMBER(column_name) ELSE NULL END


    This will replace non-numeric values with NULL or another default numeric value, preventing the error.

     

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.