How do I deal with no records from get data from layer connector?

474
2
Jump to solution
07-07-2022 09:09 AM
GWaltersOZ
New Contributor III

Hi all,

I am trying to run a query to make sure there is no data associated to an ID before I add it to a layer. I am using the get data tool and it is erroring because it finds no result however, this is OK. I want to prove the ID doesn't exist in the target layer.

GWaltersOZ_0-1657209472649.png

Am I missing something with this? The rest API provides the message:

{
  "objectIdFieldName" : "objectid", 
  "uniqueIdField" : 
  {
    "name" : "objectid", 
    "isSystemMaintained" : true
  }, 
  "globalIdFieldName" : "globalid", 
  "serverGens" : {
    "minServerGen" : 505736, 
    "serverGen" : 564265
  }, 
  "features" : []
}

Obviously the response is fine when it finds records but this kills the whole task.

Hopefully someone out there knows something very simple to change.

@Anonymous User @SeanKMcGinnis Any thoughts?

Thanks in advance,

Gareth

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
PhilLarkin1
Occasional Contributor III

Add another task, click on the menu button, choose Configure run after and choose failed

PhilLarkin1_0-1657213988277.png

 

View solution in original post

0 Kudos
2 Replies
PhilLarkin1
Occasional Contributor III

Add another task, click on the menu button, choose Configure run after and choose failed

PhilLarkin1_0-1657213988277.png

 

0 Kudos
GWaltersOZ
New Contributor III

Hi @PhilLarkin1 that was brilliant thanks for that.