Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
deep2021
Creator III
Creator III

Timestamp error while fetching data from Azure Synapse Analytics.

Hi All,

I am fetching data from Azure synapse but I am unable to convert the timestamp for the incremental load.

I am getting an error as per the below,

deep2021_0-1674684428489.png

I am using the below function.to convert the timestamp,

CONVERT(DATETIME, "timestamp_event",104) as timestamp_event,

 

My date in azure is in below format,

deep2021_1-1674684533498.png

 

Could you please suggest on this.

How to move ahead.

I am trying to apply the incremental load.

 

Thanks

 

 

 

 

Labels (4)
4 Replies
vinieme12
Champion III
Champion III

This error is being returned from your database and is not related to Qlik,

https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-...

You would find more information on stackoverflow 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
PrashantSangle

Hi,

 

As Vineeth correctly pointed out that issue is in database query script not related to qlik script.

Just want to know, in which format you are converting timestamp event.

there are 2 possible solution for this.

1: use correct covert() in SQL script.

2: In Qlik:

Use

Load *, Timestamp(Timestamp#(yourdatefield,'YYYY-MM-DD hh:mm:ss.ffff'),'Your_required_format');

Select <you_SQL_script>

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
deep2021
Creator III
Creator III
Author

Hi All,

 

Thanks for the response, My second timestamp is in the below format,

deep2021_0-1674746775110.png

 

Can you please suggest how to compare timestamp for incremental and how to convert them in the desired format?

Thanks

 

 

vinieme12
Champion III
Champion III

Timestamp(Timestamp#(yourdatefield,'YYYY-MM-DDhh:mm:ss.ffff'),'Your_required_format')

 

refer example here

https://help.qlik.com/en-US/sense/November2022/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInte...

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.