No 'singular identity' found in Implementation

Hi, I used to have the piece of code below without the .'Sales Agreements'* as $ and the necessary changes to add this layer, mostly adding $^. However after adding this layer I got the following error:

no valid 'singular identity' found for 'key separator' option 'no'. Unexpected 'node identity':

    - expected:  'node'

    - but found: 'node hierarchy'

which confuses me as I would argue that I’m still pointing to the same kind of node, just a layer deeper. Why does it now see it as a node hierarchy instead of a node?

'Items': collection = (
		'Sales Orders' = $ .'Sales Orders'* as $ .'Sales Agreements'* as $ ?'Debit Invoice Created'|'Processing' as $ (
			'Template': text -> ^ . 'Templates' -| 'Templates' = $^ $^ $^ $ +'Administration'+'Application Management'>'Document invoices' ( )
			'Set File': command do on $ (
				'Add invoice' with (
					'Invoice file': file = @ /'File'
				)
			)
			'Data': group = (
				'Customer Name': text = $^ $^ $ .'Customer Name'
				'Customer Address': text = $^ $^ $ +'Shipping address'.'Address'
				'Customer Zip Code': text = $^ $^ $ +'Shipping address'.'Zip code'

Platform version: 2022.2

I’ve managed to fix it by adding prepend-branch join : which as I understand it creates one collection form multiple subcollections.

'Items': collection = prepend-branch join : (
		'Sales Orders' = $ .'Sales Orders'* as $ .'Sales Agreements'* as $ ?'Debit Invoice Created'|'Processing' as $ (
1 Like