Skip to main content
Level 2
Sep 27, 2019 12:09 PM UTC
Solved

Not able to convert Float to Integer

Hi,

We are downloading a file from SFTP and Updating data in Adobe Campaign Standard (ACS), here for some fields data in the file is floating the data type in ACS is Integer so while uploading the data that field is updated to '0' say for example the value is file is "123.0" ACS is updating as "0" but I want it to update as "123"

Can someone please help me on this

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
prasannakumarmarru
prasannakumarmarruAccepted solution
Level 4
Sep 27, 2019 3:11 PM UTC

Hi Chaitanya,

Try casting the "source expression" on the update data activity to integer by using advanced functions-

Hope this helps, Thanks!

4 replies

Level 2
Oct 11, 2019 6:23 AM UTC

Hi Prasanna,

I am able to convert floating number to integer now

Thanks you for the help

Translate
prasannakumarmarru
Level 4
Oct 9, 2019 4:43 PM UTC

Chaitanya,

May I know if you are seeing 125.0 in the transition coming into update data activity(to view data in transition, you have to go to workflow properties and select 'keep interim population' and run the workflow, select the transition and open transition)?

if you are not seeing it, then probably the issue is in data loading activity, could also be an issue with delimiters in the file.

Thanks!

Translate
Level 2
Sep 30, 2019 4:20 AM UTC

Hi Prasanna,

I have tried with ToInteger()but still it is updating as "0".

Translate
prasannakumarmarru
prasannakumarmarruAccepted solution
Level 4
Sep 27, 2019 3:11 PM UTC

Hi Chaitanya,

Try casting the "source expression" on the update data activity to integer by using advanced functions-

Hope this helps, Thanks!

Translate