We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

ERROR: {"data":null,"exceptionName":"UnauthorizedException","innerExceptionMessage":"","message":"Timestamp is not close enough to the current server time."}

beccakatzmann
Alteryx
Alteryx
Created

Environment Details

Error "Timestamp is not close enough to the current server time" when running a workflow that contains an Oauth Macro in Alteryx Designer. 
ERROR:{"data":null,"exceptionName":"UnauthorizedException","innerExceptionMessage":"","message":"Timestamp is not close enough to the current server time."
  • Alteryx Designer
    • All


Cause


The Oauth_timestamp value was not close enough to the Server value when the request was submitted. 

Resolution

  1. Add a Batch Macro. This Batch Macro will determine the current date time epoch prior to submitting each request, rather than calculating it once in an initial workflow. This will ensure your Oauth_timestamp is close enough to the server's time.
  2. Place the following in the Batch Macro:
ToString(DATETIMEDIFF(DateTimeToUTC(DateTimeNow()), '1970-01-01 00:00:00', 'seconds'))

 



Additional Resources