how to convert stringtype to int type in adf using variables

Akhil 21 Reputation points
2022-04-12T13:35:37.273+00:00

how to convert stringtype to int type in adf using variables , I have validate the rowcount before doing the copy activity

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2022-04-13T09:28:56.373+00:00

    Thanks @Michael Taylor for helping here.

    Hi @Akhil , Thanks for posting query in Microsoft Q&A Platform. The above function toInteger() shared by @Michael Taylor will be used in Mapping data flows. If you are looking for converting string type value into integer type inside Pipeline expressions then use int() function.

    Click here to know more about int() function.

    Hope this helps. Please let us know if any further queries.

    ------------------

    Please consider hitting Accept Answer button. Accepted answers help community as well.

    1 person found this answer helpful.

  2. Michael Taylor 60,161 Reputation points
    2022-04-12T15:30:25.43+00:00

    Rowcount should already be an integral value. But let's assume you have an existing string and want to convert it. You'll use the toInteger or toLong functions.

       toInteger(rowCountAsString)  
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.