Process: In Process Model, there is a ui task in which a main record is getting stored, now after this node there is an xorThe problem which I'm getting is in write to Records node after the xor, I have to write related record data of main record, I have configured in the input node and I'm getting the error 'The input “Records” must refer to record types with data sync enabled that use a database as the source. Received (*The record Type Name which is related to the the record given in Input)'the process will repeat based on xor, for 3 times it worked fine, got error in 4th timeThe source is db and is sync enabled.
Discussion posts and replies are publicly visible
There are a few points that need to be considered - - The relationship should be one to many- "Write or delete EMP DATAs (related record) when modifying Resource Details (parent record)" option should be checked while creating the relationship Are you only writing in related record in the 4 iteration?
No, writing in related record in the all iterations,in the 4th it says the The input is receiving 'XXXX' which is 'Many to One' related record to the given record in the input
I just stumbled on the same message (The input "Records" must refer to record types with data sync enabled that use a database as the source. Received: ...). Prior to the actual write record node, I replaced the use of a!update by a constructor (i.e. recordType!whatever(id: value, field1: value)) using only the few fields to update. That fixed the issue for me.
In the Write Records version released in 23.3 (writing records with related records) you would get this error if any records in your variable are of a different data source than your base record, or if your base record is not a record type with data sync enabled from a database source. This constraint will be relaxed in 24.1 to ignore the different data source records, but until then these are the situations where you could expect to receive this error.
Would it be possible to make that error message a bit more expressive? Your explanation is great, but the error message does not point in that direction.
Yes, I can how this could be misleading. It will be applicable in 24.1, but for previous releases we can add more explanation of this error in the Write Records documentation.
Yep, my base record is data sync enabled from a DB source but uses a web service backed record in one of its relations. Thanks for the explanation!
I instead casted the record data to cdt. In this way, I got rid of the related record and used write to dse, that fixed the issue
Hola buen día disculpa molestarte, podrías explicarme que accion colocas antes del nodo, no se si podrías regalarme pantallazos, estoy algo embolatado con eso y tengo una entrega mañana