Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

Row id function

Avatar

Level 3

Hi , 

In enrichment activity i creating expression as ‘A_’+Rowid() , now when i am running workflow it is giving below error 

OBD-24000 ODBC error : SQL compilation error: Window function type[ROW_NUMBER] requires ORDER BY in window specification. 

 

How to resolve this issue

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi @at7140 ,

 

Try using the expression:

'A_' + CAST(ROW_NUMBER() OVER (ORDER BY creationDate) AS VARCHAR(255))

 

Replace 'creationDate' with the name of a column in your data that guarantees a unique row identifier or provides a meaningful order.

 

Thanks,

Jyoti

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi @at7140 ,

 

Try using the expression:

'A_' + CAST(ROW_NUMBER() OVER (ORDER BY creationDate) AS VARCHAR(255))

 

Replace 'creationDate' with the name of a column in your data that guarantees a unique row identifier or provides a meaningful order.

 

Thanks,

Jyoti

Avatar

Level 2

Hi @at7140 ,

 

Could you please share a snapshot?

'A_' +RowId()

 

Vishwadeep_3-1750667301637.png

 

Vishwadeep_2-1750667276450.png

 

 

Regards,

Vishwadeep

Avatar

Level 1

Try using RowNum( OrderBy(1)). It should work.