[Pushwoosh Plugin] Error in advanced query UpdateDevice in RegisterToken in PushNotificationsApi

[Pushwoosh Plugin] Error in advanced query UpdateDevice in RegisterToken in PushNotificationsApi

  
Forge Component
(8)
Published on 14 Jul by OutSystems R&D
8 votes
Published on 14 Jul by OutSystems R&D

Hello,

When we are calling the  'RegisterToken' we getting this error:


" Error in advanced query UpdateDevice in RegisterToken in PushNotificationsApi (UPDATE {Device}  SET {Device}.[UserId] = @UserId, {Device}.[PushToken] = @PushToken,  {Device}.[DeviceTypeId] = @DeviceTypeId, {Device}.[UpdatedOn] = @UpdatedOn  WHERE {Device}.[HardwareId] = @HardwareId AND {Device}.[ApplicationCode] = @ApplicationCode): The UPDATE statement conflicted with the FOREIGN KEY constraint "OSFRK_OSUSR_U2J_DEVICE_OSSYS_USER_USERID". The conflict occurred in database "osDEV1", table "dbo.ossys_User", column 'ID'."


See attached screenshot

UserId isn't a mandatory input (or table attribute) and in this case also empty. But that shouldn't be the problem right?

Kind regards,
Evert