Skip to main content
Inspiring
Jul 15, 2025 9:27 AM UTC
Solved

Write Record Error

.

Getting error while executing . Pls advice where i am making mistake configuring

shubhama926776
Brainy
Jul 15, 2025 9:36 AM UTC

Check your pv!record is not null before writeRecord

Add a condition to XOR gateway before your Write Records node with the condition not(isnull(pv!record)). If the process variable record is not null, the flow continues to Write Records. If the record is null or empty, the XOR gateway bypasses the Write Records node entirely, preventing the data type error from occurring.

शुभम्

15 replies

shubhama926776
Brainy
Jul 15, 2025 9:36 AM UTC

Check your pv!record is not null before writeRecord

Add a condition to XOR gateway before your Write Records node with the condition not(isnull(pv!record)). If the process variable record is not null, the flow continues to Write Records. If the record is null or empty, the XOR gateway bypasses the Write Records node entirely, preventing the data type error from occurring.

शुभम्
Inspiring
Jul 15, 2025 10:25 AM UTC

Thanks for the suggestion.

stefanhelzle0001
Brainy
Jul 15, 2025 9:43 AM UTC

Can you share the expression view of the field "Records Input"?

Inspiring
Jul 15, 2025 9:47 AM UTC

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/Screenshot-2025_2D00_07_2D00_15-at-3.16.44_2F20_PM.png

stefanhelzle0001
Brainy
Jul 15, 2025 9:51 AM UTC

The curly brackets are not necessary, but this looks OK.

What data type is the pv!!record, and what is the value in this failing process instance.

harshas2775
Brainy
Jul 15, 2025 9:52 AM UTC

 Can you manually map the ISM Supplier record in the node again and try. Also check the value in the pv in monitoring mode for data accuracy.

Happy to help. Even happier to optimize.
Inspiring
Jul 15, 2025 10:00 AM UTC

Yes I have tried to map it manually , It is giving the same error . there is no value showing in monitoring instance .

harshas2775
Brainy
Jul 15, 2025 10:01 AM UTC

If its null your xor configuration should have catched it. can you share the xor expression? 

Happy to help. Even happier to optimize.