Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: SambaDancerDear all,
I am so almightily frustrated with the "Pivot - Data To Names" node. Please could someone help me out?
Please see attached brg. What I would like as the outcome is 1 line for each instance of CODE and 1 column for each instance of PERIOD.
But in my result, the value for field CODE is repeated 38 time (only the last CODE is shown, 38 times).
If I choose CODE as the field in GroupBy, I get the error message as below.
Why is this soooooooooooooooooo difficult?!?!
(I'm using BRE 4.6.0.1 build 457).
Thank you so much in advance!!
Best regards, Bart.
error message:
-- Errors for GroupByPath
-- Errors for DataToNamesWithGroupBy
2013-04-29 13:14:30.796; ERROR: Error on input record 1. Number of field names does not match number of data items to pivot.\r\nReceived 5 names, and 6 data items.\r\nNames Array: 1;2;3;4;5.\r\nData Array: 2.06150000000000010000e+002;/n;/n;/n;/n
id: 5 chain: 0 group: 0
javaDetail: com.lavastorm.brain.node.core.DataToNamesWithGroup By.processRecords(DataToNamesWithGroupBy.java@389)
dataDetail:
GroupedData(in) row: 1
columns: ['CODE', 'java.lang.String'], ['__metadataNames__', 'java.lang.String'], ['__groupedData__', 'java.lang.String']
records:
[Null, 1;2;3;4;5, 2.06150000000000010000e+002;/n;/n;/n;/n]
Metadata(in) row: 1
columns: ['__NamesMetadata__', 'java.lang.String'], ['__DataType__', 'java.lang.String']
records:
[Null, Null]
PivotedData(out) row: 0
columns: ['CODE', 'java.lang.String'], ['1', 'java.lang.Double'], ['2', 'java.lang.Double'], ['3', 'java.lang.Double'], ['4', 'java.lang.Double'], ['5', 'java.lang.Double']
2013-04-29 13:14:30.805; ERROR: Node failed.
id: 7 chain: 6 group: 0
javaDetail: com.lavastorm.brain.execution.java.node.NodeWrappe r.run(NodeWrapper.java@769)
Attachments:
Pivot_Test.brg