Forum Discussion
Cannot convert value null to text - pivot
- 3 years ago
Hi Anonymous ,
According to your description, I reproduce your problem.
If there is null in the column, after pivot the column, the same error occures.
I think it's because after pivot, values in Column1 will be column names, but the null value cannot be used in column name.
As a workaroud, in the replace value step, replace 0 with text "null" instead of null, directly add Double quotes “” to null in the code.
After pivot, the error disappears.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your description, I reproduce your problem.
If there is null in the column, after pivot the column, the same error occures.
I think it's because after pivot, values in Column1 will be column names, but the null value cannot be used in column name.
As a workaroud, in the replace value step, replace 0 with text "null" instead of null, directly add Double quotes “” to null in the code.
After pivot, the error disappears.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.