rename attributes in loop

User: "jaybusiness86"
New Altair Community Member
Updated by Jocelyn

Hi Team,

 

I am looping operator, in the rename operator i set the old name as att2 and new name as text.

 

but while running the process, getting the error as "th attribute att2 specified in the old_name parameter does not exist in the input data."

 

Additionally, attached the screenshot,kindly have a look.

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Thomas_Ott"
    New Altair Community Member

    Is there a specific reason for you to do the renaming inside the Loop? Can you do it outside first?

    User: "jaybusiness86"
    New Altair Community Member
    OP

    Hi Thomas,

     

    I have updated the old name as att2 and new name as text,since the Read CSV operator returns default values for row names, when the first row of the file does not convey names of attributes.

     

    I have attached the flow of connected  operator.

    User: "Thomas_Ott"
    New Altair Community Member

    Ok, so your data file comes in with no header. Putting that Rename outside solves your problem then? 

    User: "jaybusiness86"
    New Altair Community Member
    OP

    Could you please elaborate.

     

    do mean to remove the rename operator?

    User: "Andrew"
    New Altair Community Member

    Help will be easier to provide if you include the xml of your process using the </> button.

     

    Andrew


    @jaybusiness86 wrote:

    Could you please elaborate.

     

    do mean to remove the rename operator?